0

# Roblox spawn points and leaderboard not working? (with script)

Hi I was testing out a leaderboard thingy and basically if its set to 1 then you go to one spawn point but if its set to 2 then you go to another here is the script lmk if I did something wrong I need help :(

local players = game:GetService("Players")

if player then
local folder = Instance.new('Folder')
folder.Parent = player
local level = Instance.new('IntValue')
level.Name = "levelstage"
level.Parent = folder
level.Value = 2
end
end)
wait(1)