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

What are possibilities with ServerScriptService? (Plus A Question)

Asked by 9 years ago

I am currently working on learning about Developer Products and it turns out in a page, there's a spot about putting the script inside of ServerScriptService. Now, I went to a page of ServerScriptService and a part kind of confused me. It's this:

A semantic, organized place to put your server-sided game logic, which does not interfere with the world. Scripts will run inside this service, and will not replicate to game clients, allowing for secure storage of your scripts.

Due to the part "which does not interfere with the world" , doesn't this mean that it cannot do anything because it will be causing something to happen? I'd like to be filled in some thing please, obviously I don't know that much with those two topics.

2
I am kind of puzzled with the does not interfere with the world as well. A server side script will run just fine in ServerScriptService, and to prevent exploitation, local scripts (the client) will not be able to touch it except through Remote Event or Function usage. M39a9am3R 3210 — 9y
1
Okay, thanks. So only server sided scripts work in ServerScriptService? So, scripts that will do something like: game.Workspace.RandomPart.BrickColor = BrickColor.new("Really red") wouldn't work inside of it? alphawolvess 1784 — 9y
1
Those will work. Server-side Scripts are the Script objects. Client-side are LocalScript objects. adark 5487 — 9y

1 answer

Log in to vote
2
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

They "don't interfere with the world" in that they aren't in the Workspace.

Image you're making a game with hundred of individual scripts. Even if you organize them with Models (Folders didn't exist at the time) or Configurations, the actual objects (not the code) are replicated to the client, and are a bit of an eyesore to look at.

Scripts parented to ServerScriptService work identically to scripts parented to Workspace, except that they have a different Parent. LocalScript still don't run there, but you get the security of hackers not being able to actually see what your game is using, and how you have it organized.

For instance, an exploit to Kohl's Admin could make hundreds of thousands of games vulnerable to exploits, but only if the exploiter knows you have it. Hiding the script takes away that knowledge.

Ad

Answer this question