Help with a script

Hey guys!
I’ve been working on some scripts lately and I got into some problems that I don’t know how to fix.

Problem:
enough

weurddzde

Does anyone know how to fix this?
Thank you,
Denk0.

Sometimes you cannot find the reference. Try using FindFirstChild() to match the name of the script. Might be something else such as weird whitespaces after the script’s name.

3 Likes

I would utilize the WaitForChild() function instead of having the script automatically assume that the ScreenShake option is there, or as Operatik said, utilize FindFirstChild(). Check for when exactly this ScreenShake option is being created; I’d probably have a print statement occur after it is made to ensure it’s there before this script goes off.

2 Likes