Advertisement
vendaskOfficial

ItemButton w/ IDSystem

Dec 15th, 2018
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. --will show how to save in the subseries
  2. local repStorage = game:GetService("ReplicatedStorage")
  3. local remote = repStorage:FindFirstChild("BuyItem")
  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 Id = 0
  13.         remote:FireServer(Id)
  14.         wait(0.01)
  15.         debounce = false
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement