Advertisement
SourceYT

Button Script

Apr 11th, 2020
4,632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Value = Player:WaitForChild("leaderstats").Points -- Change Points to the name of your Value
  3. local button = script.Parent
  4.  
  5. button.MouseButton1Click:Connect(function()
  6.     Value.Value = Value.Value + 1 -- Change 1 to the value per click
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement