I want it so when they join if their Level is something then the spawnpoint moves to that position but it doesn't move
level = game.Players.LocalPlayer.Level
sloc = game.Workspace.SpawnLocation
function onPlayerEntered(newPlayer)
if level.Value == 1 then
if newPlayer.Parent ~= nil then
local h = newPlayer.Character:findFirstChild("Humanoid")
wait(1)
sloc.Position = Vector3.new(98.8, 234.6, 116)
game.Players.PlayerAdded:connect(onPlayerEntered)
end
end
end

1 comment
move game.Players.PlayerAdded:connect(onPlayerEntered) outside of the function