Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Whats the best place to store local scripts?

Asked by 6 years ago

I always use StarterGui.

2 answers

Log in to vote
3
Answered by 6 years ago

The main containers that should be used for different scripts are:

  • ServerScriptService
  • ReplicatedStorage
  • StarterPlayer > StarterCharacter | StarterPlayerScripts

In the case of Local Scripts I usually store them in StarterCharacter / StarterPlayerScripts

  • The StarterPlayerScripts runs the local script once for each player.
  • The StarterCharacter each adds the local script to each player's character every time they spawn.

When we go more specific, let's say we are going to make our game Filtering Enabled I start using:

  • ServerScriptService : Server-sided & Can only be seen by the server.
  • ReplicatedStorage : Client-sided & Server-sided, can be seen by both and replicates to both.

Take care that most of the people have obnoxious way of placing their scripts / remotes, this is just my way of doing things.

When we are talking about GUI-wise work, I usually store the scripts on StarterGui most of the times, so they get replicated along the GUI I make.

0
Thanks! Revisedy 23 — 6y
0
No problem. iDarkGames 483 — 6y
Ad
Log in to vote
0
Answered by
Felktor -8
6 years ago

I use ServerScripts

0
I thought that was only used for server side scripts, not local? Revisedy 23 — 6y
0
You can only use that for server scripts and server-referenced modules. Aresko 53 — 6y

Answer this question