Character Variable on Server-Sided Script

(For context, I know that this is local as it is currently!)

What do I want to achieve?
I want to be able to convert this script with a function that is fired from a Remote Event to be server-sided where referencing the character won’t give me an error:

What is the issue?
I’m unsure of what to configure in this script to change it from local to server-sided. I don’t want to sound like I’m plain out asking for the solution, but I’d really appreciate if someone could rewrite the script/explain in depth of how this works so I can understand it in my future of learning scripting.

What solutions have you tried so far?
I have found indirect answers but can’t seem to find how to figure out how to configure my script to actually work with it.

1 Like

Nevermind, I figured it out now!

1 Like

Yeah so you can’t get the local player from a server script you have too use the player paramater that comes with the OnServerEvent, good luck with your project! :grinning:

Thanks! In fact, thanks to your help, I figured everything out and actually finished the scripting portion of it!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.