1 | script.Parent.MouseButton 1 Down:Connect( function () |
2 | local plr = game.Players.LocalPlayer.leaderstats |
3 | local curStage = plr.leaderstats.Stage.Value |
4 | if plr.Skips.Value > = 1 then |
5 | plr.Skips.Value = plr.Skips.Value - 1 |
6 | wait(. 5 ) |
7 | workspace [ plr.Name ] .HumanoidRootPart.CFrame = workspace.Spawns [ curStage + 1 ] .CFrame |
8 | end |
9 | end ) |
On line 2 you are referring to leaderstats as the player. The line should be:
1 | local plr = game.Players.LocalPlayer |