teotv202

Untitled

Apr 1st, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 KB | None | 0 0
  1. plr = owner
  2. char = plr.Character
  3.  
  4. tool1 = Instance.new("Tool",plr.Backpack)
  5. tool1.Name = "Parent to a Tool"
  6. h = Instance.new("Part",tool1)
  7. h.Name = "Handle"
  8. h.Size = Vector3.new(1,1,1)
  9.  
  10. tool = Instance.new("Tool",plr.Backpack)
  11. tool.Name = "Handle Tool"
  12.  
  13. h.Touched:connect(function(handle)
  14. handle:BreakJoints()
  15. handle.Name = "Handle"
  16. handle.Parent = tool
  17. handle.Anchored = false
  18. handle.CanCollide = false
  19. end)
  20.  
  21. tool.Activated:connect(function()
  22. tool:FindFirstChildOfClass("Part").CanCollide = true
  23. tool:FindFirstChildOfClass("Part").Name = math.random(1,9999999)
  24. tool:FindFirstChildOfClass("Part").Anchored = false
  25. tool:FindFirstChildOfClass("Part").Parent = script
  26. end)
  27.  
  28. tool3 = Instance.new("Tool",plr.Backpack)
  29. tool3.Name = "Parent to a Tool v2"
  30. h1 = Instance.new("Part",tool3)
  31. h1.Name = "Handle"
  32. h1.Size = Vector3.new(1,1,1)
  33.  
  34. tool5 = Instance.new("Tool",plr.Backpack)
  35. tool5.Name = "Handle Tool v2"
  36.  
  37. h1.Touched:connect(function(handle)
  38. handle:BreakJoints()
  39. handle.Name = "Handle"
  40. handle.Parent = tool5
  41. handle.Anchored = false
  42. handle.CanCollide = false
  43. end)
  44.  
  45. tool5.Activated:connect(function()
  46. tool5:FindFirstChildOfClass("Part").CanCollide = true
  47. tool5:FindFirstChildOfClass("Part").Name = math.random(1,9999999)
  48. tool5:FindFirstChildOfClass("Part").Anchored = true
  49. tool5:FindFirstChildOfClass("Part").Parent = script
  50. end)
Add Comment
Please, Sign In to add comment