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

3 comments
Where is your script located
ServerScriptService.
Don't use ServerScriptService for storage!