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

Why doesn't the server recognize the ServerScriptService?

Asked by 7 years ago
Edited 7 years ago

Whenever I play the game in Roblox (not studio), the client always pops up an error message.

Error message: ServerScriptService is not a valid member of DataModel

Script:

wait(10)
print("LoadMapScript activated")
ReplicatedStorage = game:GetService("ReplicatedStorage")
ServerScriptService = game:GetService("ServerScriptService")
win = game.ServerScriptService.values:WaitForChild("win")
mapvalue = game.ServerScriptService.values:WaitForChild("mapvalue")
win.Value = 2
0
Where is your script located hellmatic 1523 — 7y
0
ServerScriptService. chatiii 6 — 7y
0
Don't use ServerScriptService for storage! Programical 653 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

The client cannot access server script service nor server storage. Put any content that the client needs access to in game.ReplicatedStorage

I suggest trying remote events though if you want a non-experimental mode (filtering enabled) game.

0
Although It's done, I appreciate your answer. chatiii 6 — 7y
Ad

Answer this question