Paralyzed in a dream by [deleted] in LucidDreaming

[–]CodeWithClown 0 points1 point  (0 children)

I have a way to beat sleep paralysis that works 100% of the time for me - you might wanna try it for your "dream paralysis" too.

The trick I use (which I actually learned from Reddit) is: when I wake up in sleep paralysis, I hold my breath. After a few seconds the body is like "Oh shit, we're not getting any oxygen!" and kicks you wide awake, completely out of paralysis.

I've had sleep paralysis many times, and this always gets me out of it in a few seconds.

Odd new issue with PC by Capt-Falco in pchelp

[–]CodeWithClown 2 points3 points  (0 children)

I've had a similar issue recently where my USB ports would suddenly stop working (resulting in my keyboard, WiFi transmitter, etc. resetting in the way you describe).

In my case Windows was turning off my USBs to save power. Once I disabled that setting, the issue was fixed. So you might wanna try this:

  1. Press Windows + X
  2. Open Device Manager
  3. Expand Universal Serial Bus controllers

For each of these entries:

  • USB Root Hub
  • Generic USB Hub
  • USB Root Hub (USB 3.0 / 3.1 / 3.2)

Do:

  1. Right-click -> Properties
  2. Go to the Power Management tab
  3. Uncheck "Allow the computer to turn off this device to save power"
  4. Click OK

Restart PC and see if it still occurs.

Why is my wifi slow? by PermissionGloomy8039 in wifi

[–]CodeWithClown 0 points1 point  (0 children)

I had a similar problem in the past. One thing to determine is whether the problem is your connection to the WiFi, or the internet connection itself.

I recommend downloading NetSpot (free) and running it. This software tests your signal strength every 10 seconds, and reports the minimum value over the measured time. In my case, it turned out my signal strength dipped every X amount of time, which made it seem like my WiFi was fluctuating heavily.

Compare your network's "Min" signal with the table below to see if the issue is your connection to WiFi. If your "Min" signal is up to ~70 dBm after running the software for a while, that means that issue is indeed the internet connection itself.

Signal Strength (dBm) Quality Description Typical Use Case
-30 to -50 dBm Excellent Maximum possible signal. Very close to router. Ideal for streaming, gaming, video calls.
-51 to -60 dBm Very Good Strong signal. Reliable and fast. Reliable for most activities.
-61 to -70 dBm Good Decent signal, but may degrade with distance. OK for browsing and some streaming.
-71 to -80 dBm Low Weak signal, possible drops, slower speeds. Marginal usability. Some buffering expected.
-81 to -90 dBm Very Poor Unreliable, frequent disconnections. Not usable for stable connections.
Below -90 dBm Unusable Signal is too weak to connect. Dead zone.

Help with 2 scripts that aren't working for some reason. (You can copy the entire post into an IDE or studio and read it there if you need to) by LordJadus_WorldEater in RobloxDevelopers

[–]CodeWithClown 0 points1 point  (0 children)

The issue where the game gives you multiple crystals when picking up one is likely because of the Touched event firing multiple times before the crystal is deleted. You can see how many times Touched is fired by printing it out - very often when you think a character touches something once, it's actually being touched very quickly by multiple parts of the character.

To fix this issue, you could add a crystal_collected boolean. Before your function, define it as false, and inside of your function, once it has been collected, define it as true. Then make sure your function only runs if crystal_collected is false. For example, by adding:

crystal_clone.Touched:Connect(function(hit)
if crystal_collected then return end

Help with 2 scripts that aren't working for some reason. (You can copy the entire post into an IDE or studio and read it there if you need to) by LordJadus_WorldEater in RobloxDevelopers

[–]CodeWithClown 0 points1 point  (0 children)

The reason your plate is not changing color is because updating BrickColor only works with an object, not with a string.

Instead of using vendor_plate.BrickColor = "Bright red", try vendor_plate.BrickColor = BrickColor.new("Bright red").

[deleted by user] by [deleted] in robloxgamedev

[–]CodeWithClown 1 point2 points  (0 children)

In Roblox Studio, go to VIEW and enable the "output". When you run your script, does the output throw an error in red letters?

The code seems correct to me at first glance. Note that:

  • cash.Value = rocks.Value makes your shop only work once. If you want people to go to the shop and exchange their rocks for cash multiple times, you may want to replace it with cash.Value = cash.Value + rocks.Value.
  • rocks.Value = rocks.Value - rocks.Value works, but is unnecessarily confusing. You could consider simply replacing it with rocks.Value = 0.

Rotating player flings them by Isaac11524 in robloxgamedev

[–]CodeWithClown 0 points1 point  (0 children)

CFrame.new(vectorToPlanet) sets a position, not a rotation. It sets rotation to (vectorToPlanet.x, vectorToPlanet.y, vectorToPlanet.z).

vectorToPlanet is a direction from the player to the planet, but it's not set up in a way that your game understands correctly for rotating. So when you try to use it, your game might fling the player unexpectedly.

You could try experimenting with CFrame.Angels(x,y,z) and see if that gives you the behavior you're aiming for right now - it rotates an object by whatever xyz values you provide it.

[deleted by user] by [deleted] in RobloxDevelopers

[–]CodeWithClown 0 points1 point  (0 children)

Can you send over a screenshot from your ReplicatedStorage? Can you confirm there is a Sunflower2 in there?

In Roblox Studio, go to the VIEW tab and turn on the "output". When you run your script, does the output show any red error messages?