Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local repStorage = game:GetService("ReplicatedStorage")
- local remote = repStorage:FindFirstChild("ButtonClick")
- local button = script.Parent
- local debounce = false
- button.MouseButton1Click:Connect(function()
- if not debounce then
- debounce = true
- local playerCash = game.Players.LocalPlayer.leaderstats.Cash
- remote:FireServer(playerCash)
- wait(0)
- debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement