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.
✓ ANSWER ACCEPTED
Why can't a LocalScript access the Replicated Storage?
1 answer
✓ Accepted answer
###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.
1 comment
0
Oh ok, I never knew that :D. Thanks mate.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
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.