Advertisement
rorty2914_YT

Untitled

Sep 22nd, 2018
2,422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local repStorage = game:GetService("ReplicatedStorage")
  2. local remote = repStorage:FindFirstChild("ButtonClick")
  3.  
  4. local button = script.Parent
  5.  
  6. local debounce = false
  7.  
  8. button.MouseButton1Click:Connect(function()
  9. if not debounce then
  10. debounce = true
  11. local playerCash = game.Players.LocalPlayer.leaderstats.Cash
  12. remote:FireServer(playerCash)
  13. wait(0)
  14. debounce = false
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement