Advertisement
Friaza

Scriptbuilder Tool template

Jul 2nd, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. p = game.Players.YOURNAMEHERE
  2. c = p.Character
  3. ToolName = "ATTACKNAMEHERE"
  4. local enabled = true
  5.  
  6. if p.Backpack:FindFirstChild(ToolName) then p.Backpack[ToolName]:Destroy() end
  7. if p.StarterGear:FindFirstChild(ToolName) == nil then if p.StarterGear:FindFirstChild(ToolName) then p[ToolName]:Destroy() end script:clone().Parent = p.StarterGear end
  8. if c:FindFirstChild(ToolName) then c[ToolName]:Destroy() end
  9. x = Instance.new("Tool", c) x.Name = ToolName x.RequiresHandle = false x.CanBeDropped = false
  10.  
  11. function Attack()
  12. if enabled == true then
  13. enabled = false
  14. print("used")
  15. wait()
  16. enabled = true
  17. end
  18. end
  19.  
  20. x.Activated:connect(Attack)
  21. --Friaza
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement