game.Players.PlayerAdded:Connect(function(Player) local Ls = Instance.new('IntValue',Player) Ls.Name = 'leaderstats' local Level = Instance.new('IntValue',Ls) Level.Name = 'Level' Level.Value = 1 Player.CharacterAdded:Connect(function(Character) repeat wait() until Character ~= nil local Stage = game.Workspace.Stages:FindFirstChild(Level.Value) Character:WaitForChild('HumanoidRootPart').CFrame = Stage.CFrame + Vector3.new(0,5,0) end) end)
Will this 2018 code work?
Yes that’s exactly how you could do it goodlead.
Here
game.Players.PlayerAdded:Connect(function(Player) local Ls = Instance.new('IntValue',Player) Ls.Name = 'leaderstats' local Level = Instance.new('IntValue',Ls) Level.Name = 'Level' Level.Value = 1 Player.CharacterAdded:Connect(function(Character) repeat wait() until Character ~= nil local Stage = game.Workspace.Stages:FindFirstChild(Level.Value) Character:WaitForChild('HumanoidRootPart').CFrame = Stage.CFrame + Vector3.new(0,5,0) end) end)