Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

it says leaderstats is not a valid member of Folder?

script.Parent.MouseButton1Down:Connect(function()
	local plr = game.Players.LocalPlayer.leaderstats
	local curStage = plr.leaderstats.Stage.Value
	if plr.Skips.Value >= 1 then
		plr.Skips.Value = plr.Skips.Value - 1 
		wait(.5)
		workspace[plr.Name].HumanoidRootPart.CFrame = workspace.Spawns[curStage + 1].CFrame 
	end
end)

1 answer

✓ Accepted answer

On line 2 you are referring to leaderstats as the player. The line should be:

local plr = game.Players.LocalPlayer

1 comment

0

Yes, it works now. Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.