I have been trying to make a obby and have run into a problem with stages, when i touch the block and move around the value goes up instead of adding just one (stage one). I appreciate the help!
script.Parent.Touched:connect(function()
for _,Player in pairs(game.Players:GetPlayers()) do
if Player:FindFirstChild("leaderstats") then
Player.leaderstats.Stage.Value = Player.leaderstats.Stage.Value +1
end
end
end)
thx

1 comment
You can use a debounce or use a more elaborate method of making sure the player doesn't get another level by adding a string value with the players name, and using an if statement (just my idea though)