Advertisement
KeroroGunso0

Flamethower reupload

Jul 15th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. player = game.Players.KeroroGunso2016
  2. char = player.Character
  3. if script.Parent.className == "HopperBin" then return end
  4. tool = Instance.new("HopperBin")
  5. script.Parent = char
  6. tool.Parent = player.Backpack
  7. tool.Name = "Flamethrowa"
  8. wr = char.Torso["Right Shoulder"].C1
  9. handle = Instance.new("Part")
  10. handle.Parent = game.Lighting
  11. handle.Name = "Handle"
  12. handle.Size = Vector3.new(1,4,1)
  13. handle.TopSurface = 0
  14. handle.BottomSurface = 0
  15. handle.BrickColor = BrickColor.new("Black")
  16. handle.Anchored = false
  17. handle.Position = char["Right Arm"].Position
  18. handle.CanCollide = false
  19. weld = Instance.new("Weld")
  20. weld.Parent = char["Right Arm"]
  21. weld.Part0 = weld.Parent
  22. weld.Part1 = handle
  23. weld.C1 = CFrame.new(-0.5, 0, 0)
  24. weld2 = char.Torso["Right Shoulder"]
  25. weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,-1.6) * CFrame.new(-0.5,0,-0.4)
  26. click = false
  27.  
  28. tool.Selected:connect(function(mouse)
  29. click = false
  30. handle.Parent = char
  31. weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,-1.6) * CFrame.new(-0.5,0,-0.4)
  32. weld.Parent = char["Right Arm"]
  33. weld.Part0 = weld.Parent
  34. weld.Part1 = handle
  35. weld.C1 = CFrame.new(-0.5, 0, 0)
  36.  
  37. mouse.Button1Down:connect(function()
  38. click = true
  39. while click == true do
  40. wall = Instance.new("Part")
  41. wall.Parent = workspace
  42. wall.Size = Vector3.new(4, 4, 4)
  43. wall.Locked = true
  44. wall.Position = Vector3.new(0, 40, 0)
  45. wall.Anchored = false
  46. wait(0.1)
  47. end
  48. end)
  49. mouse.Button1Up:connect(function()
  50. click = false
  51. end)
  52. end)
  53.  
  54.  
  55. function unEquipped()
  56. handle.Parent = game.Lighting
  57. weld2.C1 = wr
  58. click = false
  59. end
  60.  
  61. tool.Deselected:connect(unEquipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement