I work on a game and I made a LocalScript in the StarterPlayerScripts folder and in the line game:GetService("ServerScriptService").GameScript:GetChildren()[i].Player.Value == nil
it says that GameScript is not a member of ServerScriptService .
Why?
The whole point of ServerScriptService
is for server scripts.
The client cannot, and does not, need to access the contents of these services.
They will see the service, just not the children of it.
Move the children of GameScript
to ReplicatedStorage
, a service whose contents are replicated to the server and client, or handle the logic concerning these children on the server side.