Help with my buggy script

Hey devs! I need help with a script today. I have two errors in the script and since I am pretty new at scripting I would really like some help. Help me know if you know what to fix. The images are in order with the mistake. And my cursor is on the line with the mistake.

\

2 Likes

If you didn’t know, Lua is actually case-sensitive when writing your code :thinking:

Since the script detects the parent and Script are unknown & global, it’s resulting in that error since there’s no variable defined as Script or parent

If you just refer to them as script or Parent, you should be all set!

You need to be parenting this Value to the Player Instance btw, not a string as that won’t work

Thanks this helped a lot! I’ll put it as solution!