Advertisement
vendaskOfficial

PointButton

Dec 15th, 2018
8,735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. --i hope ur happy
  2. local repStorage = game:GetService("ReplicatedStorage")
  3. local remote = repStorage:FindFirstChild("ButtonClick")
  4.  
  5. local button = script.Parent
  6.  
  7. local debounce = false
  8.  
  9. button.MouseButton1Click:Connect(function()
  10.     if not debounce then
  11.         debounce = true
  12.         local playerPoint = game.Players.LocalPlayer.leaderstats.Points
  13.         remote:FireServer(playerPoint)
  14.         wait(0.01)
  15.         debounce = false
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement