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

Local Script in Service?

Asked by 8 years ago

I wanted to know why we can't stick a local script in ServerScriptService, I understand its for player input and updates faster, However I have some current scripts that display players ranks but it doesn't update fast enough, is there another script I can use? Or do I just make a local script and cut and paste it into the ServerScriptService.

1 answer

Log in to vote
2
Answered by
Pyrondon 2089 Game Jam Winner Moderation Voter Community Moderator
8 years ago

You can easily add a LocalScript to ServerScriptService by running this line of code in the command bar,

Instance.new("LocalScript", game.ServerScriptService)

Though, I don't see why you would want to. A local script won't run in ServerScriptService, as it's, well, for server scripts. In fact, ServerScriptService doesn't even exist on the client; it's only visible to the server. So, if you put a LocalScript there, it won't run. You could always put a LocalScript inside of a script and clone it to the client, but I don't see the point in that either.

Really, it probably has to do with whatever script you're using; perhaps there's a more efficient way to do it. Either way, hope this helped.

Ad

Answer this question