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

What is ReplicatedScriptService? New feature?

So I just opened studio, and I was going to insert the Teams service, and another item in the menu was there called "ReplicatedScriptService". Is this a new feature? Is this a safe alternative and/or better than ReplicatedFirst? I have so many questions, if someone cloud link me an article, that would be great.

3 comments

0

This is a Service that may be used internally. However, I'd assume it's responsible for running code for the Server & Client under a single container.

0

Could you give more context? This still doesn't tell me what it does, and if I should move my scripts over to it.

1 answer

✓ Accepted answer

ReplicatedScriptService allows for both ServerScripts and LocalScripts to be ran under the same container. It does nothing more than that, however general instances that have an influence on physics cannot be inserted as it's not a WorldModel/WorldRoot. Both scripts will still have their rules and all that goodness. Modulescripts still will only run when required.

tl;dr: ReplicatedStorage but for scripts

4 comments

0

so basically ServerScriptService and ReplicatedStorage had a baby it would be that

0

weird way to put it but yes although the genetics would be quite weird because RS can hold non-script instances and sss can't

0

since it has both client and server scripts, how exploitable do you think it is?

0

Not very. If memory serves me right, you can't read the bytecode of a server script. Only thing that would be exploitable is the client scripts, which the client can read in the first place, no matter where you have it.

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