How To Check For A Value In The Player

Don’t tell me the script is on the Server as well

That might be it… If it runs on server alone…

Which one the checking for value?

Yeah that one, is that on a Server or Local Script?

its on the sever not on the client

I think it should be on the client and what defines the player for your code?

oop ik my mistake lol omg im so

yeah it runs with local player…

image

It’s fine lol

Just a reminder here, but Server Scripts cannot access the Local Player no matter where you put it
You can easily fix this by replacing it with a LocalScript instead, then I think you can fire a RemoteEvent from the client to the server that way?

2 Likes

So now for the bigger question… Who gets the solution :rofl:

1 Like

Just try our possible answers and see what results you get, then afterwards you can mark the most helpful one as a solution :sweat_smile:
I also need to save my Funni GIF memes at the most random times

2 Likes

No clue… I’d say Jack though he brought up the script types first

1 Like

Ok ill see what happens :grin:

1 Like

Ok ill see what happens :slight_smile:

you know we both see that you replied to us you only need to write it once

1 Like

If you want to use a server script, you can use PlayerAdded to get the player object, or if its in StarterPlayerScripts or StarterCharacterScripts, using .Parent and :WaitForChild to get a Player/Character object never failed me before. From there you can go crazy with the rest of your code.

1 Like

Yup these type of things usually used to work for me so I didn’t now why It wasn’t working.
But I found out that I was confusing the script because I didnt give it any information about when to start the script. I quickly fixed it by makng a touched event.

1 Like