Help with remote event script

Im currently making a customer food ordering system. Basically, what i mean is, a proximity prompt is triggered from an npc,

When the Proximity Prompt is triggered, a script in ServerScriptService will Trigger a remote event in Replicated Storage.

When the remote event will be triggered, a cash register in workspace will receive the triggered event (a script in the cash register)

When the remote event is received, the script will randomly choose a button on the cash register and will make it become neon. (after that im not done doing the script, but thats isnt important)

So, my problem is the following, when the proximity prompt is triggered, a remote event is fired. but i dont know what to type in the parenthesis ()

So far, i’ve tried typing different things in the parenthesis , but they end up has errors.

if you know a solution to this problem is please tell me. If needed i could provide more screenshots.

Thank You

I’m confused, why are you doing Player:FindFirstChild("anything") in the first place (“anything” is just a placeholder). The first parameter you pass into FireClient is the Player itself. So you should be doing


i got this error
not working.PNG

You used this line? If so, run this right before that line:
print(Player, typeof(Player))

like this?

oops, add another parenthesis after typeof(Player) it should be:
print(Player, typeof(Player))
My bad.

1 Like

add an extra bracket to close it, print(Player, typeof(Player))

1 Like

no problem, ok ill try it
ill tell if works

still having an error

Well I just noticed the error is caused because you ran

You should run this:

1 Like

Don’t type that, type the other one where you fired your client remote

1 Like

You could do :FireAllClient() if youre doing all players

1 Like

its just for the player who triggered it not, not all the players

Did you try the script with the line I gave you?

still doesnt work

You still ran it with the FindFirstChild. Please run the following:

Only the above quote, don’t add the find first child

Youre doing the same thing over and over again, you need to read what people give you

1 Like

so if i understood, i run this:

Yes, only that in place of your current line.


Thank You, it worked and im not getting any errors. But the only thing is that the OnClient script isnt doing anything