Advertisement
Guest User

Untitled

a guest
Aug 16th, 2022
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. wait(1.6)
  2.  
  3. local multiplier = 2.5
  4.  
  5. local Tool = script.Parent
  6. local players = game:GetService("Players")
  7. Tool.Touched:Connect(function(e)
  8. if e:FindFirstChild("Value") and script.Parent.Debounce.Value == false then
  9. local plr = players:GetPlayerFromCharacter(Tool.Parent.Parent)
  10. plr:WaitForChild("leaderstats"):WaitForChild("Bag").Value += e.Value.Value
  11. script.Parent:FindFirstChild("Debounce").Value = true
  12. wait(1)
  13. script.Parent:FindFirstChild("Debounce").Value = false
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement