What is the point of the starterplayerscripts?

I had some help with a problem I was having where a GUI would not appear when hovering over an object. It was solved by moving it to starterplayerscripts and not being a child of the button.

What I want to know is why it worked in sps but not in the part?

Local scripts are unable to run in the workspace. People might say “But they can run in tools and those are in the workspace when they are equipped”, yes they can run in tools but not in the workspace.

And for the title of this post, StarterPlayerScripts exists because it can be used to run local scripts for the player or other things, you can even run regular scripts in it (I am unsure about this).

So localscripts cannot run in the workspace AT ALL?

Nope, not at all.
Can work in:

Source:
https://developer.roblox.com/en-us/api-reference/class/LocalScript

1 Like

I literally did not know that local scripts didn’t run in the workspace. That solves so many of my errors.

localscripts can run localscript at StarterPlayerScripts, PlayerGui, etc but you cant run it in workspace only regular scripts can

1 Like