Local script:
local TeleportService = game:GetService("TeleportService")
local plrs = game.ServerScriptService.Add.Players --numbervalue
local place = 1011676824
local plr = game.Players.LocalPlayer
text = script.Parent.Display
if plrs.Value >= 5 then
text.Text = "The game is about to start!"
text.TextColor3 = Color3.new(255,0,0)
wait(3)
TeleportService:Teleport(place,plr)
end
I have another script that adds to plrs.Value once a player joins the game. My script waits until there are 5 players then teleports them to another game. The problem is that this script works fine in studio but doesn't work in game. The error that only shows up in game is "ServerScriptService is not a valid member of DataModel." I don't understand this error since I defined ServerScriptService through the game.

2 comments
localscripts do not have access to serverstorage nor serverscriptservice
ServerscriptStorage should also be used to house scripts, not values