So I was making a script for my custom character. What the script does is that if an enemy comes too close to the player, the enemy would freeze in place. Now all I needed to do is to insert in into a part of the character but then it just hit me:Do you need to add a server script or a local script? It really confuses me so I’ve just came here to ask for help.
If you want the server to see the changes, then you would use a ServerScript
. LocalScripts
run only on the client’s computer.
1 Like
Keep in mind that localscripts can’t run in the workspace.
1 Like
LocalScripts can’t run in Workspace… with the exception that they will run within a player’s character.
For this implementation though I would also recommend a server script.
2 Likes
For what you’re describing, a server script is needed.