01 | game.Players.PlayerAdded:Connect( function (Player) |
02 | local Ls = Instance.new( 'IntValue' ,Player) |
03 | Ls.Name = 'leaderstats' |
04 | local Level = Instance.new( 'IntValue' ,Ls) |
05 | Level.Name = 'Level' |
06 | Level.Value = 1 |
07 | Player.CharacterAdded:Connect( function (Character) |
08 | repeat wait() until Character ~ = nil |
09 | local Stage = game.Workspace.Stages:FindFirstChild(Level.Value) |
10 | Character:WaitForChild( 'HumanoidRootPart' ).CFrame = Stage.CFrame + Vector 3. new( 0 , 5 , 0 ) |
11 | end ) |
12 | end ) |
Will this 2018 code work?
Yes that’s exactly how you could do it goodlead.
Here
01 | game.Players.PlayerAdded:Connect( function (Player) |
02 | local Ls = Instance.new( 'IntValue' ,Player) |
03 | Ls.Name = 'leaderstats' |
04 | local Level = Instance.new( 'IntValue' ,Ls) |
05 | Level.Name = 'Level' |
06 | Level.Value = 1 |
07 | Player.CharacterAdded:Connect( function (Character) |
08 | repeat wait() until Character ~ = nil |
09 | local Stage = game.Workspace.Stages:FindFirstChild(Level.Value) |
10 | Character:WaitForChild( 'HumanoidRootPart' ).CFrame = Stage.CFrame + Vector 3. new( 0 , 5 , 0 ) |
11 | end ) |
12 | end ) |