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

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

Asked by 5 years ago

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
Serverscriptservice is server only, put it in replicatedstorage instead User#20388 0 — 5y

1 answer

Log in to vote
2
Answered by
mattscy 3725 Moderation Voter Community Moderator
5 years ago

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)

0
SO I put the scripts in rep storage but scripts dont run in it. Ind1v1duals 43 — 5y
1
NO, put the remote in rep storage! User#20388 0 — 5y
1
Put the script into ServerScriptService but place the remote in ReplicatedStorage Amiaa16 3227 — 5y
0
Ok Ind1v1duals 43 — 5y
View all comments (2 more)
1
server script --> serverscriptservice/workspace, remote --> rep storage, local script --> starterpack/startergui/starterplayerscripts User#20388 0 — 5y
0
Thanks Ind1v1duals 43 — 5y
Ad

Answer this question