So I wanna award someone 1 skill every time they press a TextButton. How would this work? Here is my script
game.Players:WaitForChild(game.Players.LocalPlayer, 10)
--References
local player = game.Players.LocalPlayer
local mSkill = player.leaderstats.Skill
local rebirths = player.leaderstats.Rebirths
local button = player.PlayerGui.Button.Music
--Values
local mSkillAdd = 1
--ClickScript
button.MouseButton1Click:Connect(function()
if rebirths.Value == 0 then
mSkill.Value = mSkill.Value + 1
print(mSkill.Value)
wait(1)
end
end)

1 comment
Thank you I'm new and have not learned about Debouces