Advertisement
MandB

Weight Script

Aug 17th, 2022
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local tool = script.Parent
  2. local event = game.ReplicatedStorage.Remotes.AddStrength
  3. local add = script.Parent:WaitForChild("Add")
  4.  
  5. local debounce = false
  6.  
  7. tool.Activated:Connect(function()
  8.    
  9.     if debounce == true then return end
  10.     debounce = true
  11.     event:FireServer(add.Value)
  12.    
  13.     wait(1)
  14.    
  15.     debounce = false
  16.    
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement