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

Why can't a LocalScript access the Replicated Storage?

Asked by
Roox4 21
5 years ago

Hey guys. I have some problems that I never thought I would have. The first problem is why a LocalScript can't Invoke a bindable function in my replicated storage, and the second problem is why my LocalScript can Invoke bindable function in ServerScriptService but ONLY in studio, not in actual game. I don't know if I am missing something or I just don't understand. Thanks.

0
Invoking a BindableFunction in the ReplicatedStorage should work. The reason that a LocalScript cannot invoke a BindableFunction in the ServerScriptService is because the LocalScript has no visibility on the ServerScriptService or children inside of it (such as your BindableFunction) since Roblox does not tell clients what is in the ServerScriptService. Overscores 381 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

A local script can access ReplicatedStorage, what are you on about. You most likely did something wrong, and local scripts can't access ServerScriptService. ServerScriptService. It may be accessible on the client and "works" in studio because you used Play Solo mode.

Play Solo is the client and server together, they are one, there is no separation. This is why your local script accessed ServerScriptService. But when the client and server are separated, local scripts can't access ServerScriptService. You shouldn't use ServerScriptServicefor storage though, stay with ReplicatedStorage.

0
Oh ok, I never knew that :D. Thanks mate. Roox4 21 — 5y
Ad

Answer this question