Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Does a script in a player's backpack run on the client or the server?

A simple question really.

Thanks.

1 answer

It's neither actually.

To determine if a script runs on the client or on the server purely depends on the type of script that is being used.

LocalScripts will run on the client side; however, these scripts can only be ran in Backpack, PlayerGui, PlayerScripts, or inside the Player's character in order for them to work. These scripts can be determined in studio if they have a little person icon on top of the script in explorer. LocalScripts can not affect the server if FilteringEnabled is on, any changes you make to the server through a LocalScript become invisible to other players.

Scripts will run in Workspace, a Player's Backpack, or ServerScriptService ideally. These scripts just have a script icon on them in Studio. These scripts run for the Server and can change the server in FilteringEnabled environments.

######Have any questions? Go ahead and leave a comment on this answer. If this question helped, do not forget to hit upvote. And if this answered your question, hit the accept answer button.

This discussion is preserved as it was. New answers, comments, and votes are closed.