I know this is kind of a nooby question, but I wanted to know if there was someone who could give me a script that increased a leaderstat. Thanks!

2 comments

0

I have a script in a brick that gives you +1 level when you walk on it, but im having trouble with this. This Is the one for the brick:

0

script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild('Humanoid') then -- Make sure humanoid is a player game.Players[hit.Parent.Name].leaderstats.PowerLevel.Value = game.Players[hit.Parent.Name].leaderstats.PowerLevel.Value + 2 end end)