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

My script works and is FE compatible but doesnt work in server..?

Ok so I have a localscript in starterpack which then fires a remote event inside a serverscript in

serverscriptservice, my game is FE, ok so and when it fires it in the server it prints that the script

the remote event is in isn't a valid member of serverscriptservice, is it normal to have things not

showing in serverscriptservice.. maybe i should parent this scripts somewhere else?

If you wish to see the script please ask

1 comment

1

Serverscriptservice is server only, put it in replicatedstorage instead

1 answer

✓ Accepted answer

Anything in ServerScriptService or ServerStorage cannot be viewed by the client in a server environment (hence the name). The best place to put your remote events and functions, along with anything else you want to store that both the client and server can see, is ReplicatedStorage.

ServerStorage- Store models/objects only server can see (scripts don't run here) ReplicatedStorage- Store models/objects both server & client can see (scripts don't run) ServerScriptService- Store server scripts for your game (scripts run)

6 comments

0

SO I put the scripts in rep storage but scripts dont run in it.

1

NO, put the remote in rep storage!

1

Put the script into ServerScriptService but place the remote in ReplicatedStorage

0

Ok

1

server script --> serverscriptservice/workspace, remote --> rep storage, local script --> starterpack/startergui/starterplayerscripts

0

Thanks

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