Hello, I'm not sure how to resolve this error. I've been trying for some time, is there something wrong with the script?
Thanks, Azure.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
local Leaderstats = Instance.new("Folder")
Leaderstats.Name = "leaderstats"
Leaderstats.Parent = Player
local Stage = Instance.new("IntValue")
Stage.Name = "Stage"
Stage.Value = 1
Stage.Parent = Leaderstats
Player.CharacterAdded:Connect(function(Characer)
local Leaderstats = Player:FindFirstChild("leaderstats")
if (Leaderstats and Leaderstats.Stage) then
local Stage = workspace:FindFirstChild(tostring(Stage.Value))
if (Stage) then
Character:MoveTo(Stage.Position + Vector3.new(0,3,0)
end
end
end)
end)
