Advertisement
avivavivb

t

Jan 21st, 2018
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. me = game.Players.ththth00
  2.  
  3. if script.Parent.className ~= "HopperBin" then
  4. h = Instance.new("HopperBin")
  5. h.Parent = me.Backpack
  6. h.Name = "Earthbending tool"
  7. script.Parent = h
  8. end
  9.  
  10. local p = Instance.new("Part")
  11. p.Name = "Bending Rock"
  12. local bp = Instance.new("BodyPosition")
  13. local v = Instance.new("BodyVelocity")
  14. mesh = "http://www.roblox.com/asset/?id=1290033"
  15. tex = "http://www.roblox.com/asset/?id=1290030"
  16.  
  17. function key(key)
  18.  
  19. if key == "r" then
  20. script.Parent.Name = "Rock spawn"
  21. wait(5)
  22. script.Parent.Name = "Earthbending Tool"
  23. end
  24. end
  25.  
  26. function OB1D(mouse)
  27. local a = p:clone()
  28. a.Parent = Workspace
  29. a.Size = Vector3.new(1,1,1)
  30. a.Position = mouse.Hit.p
  31. m = Instance.new("SpecialMesh")
  32. m.Parent = a
  33. m.TextureId = tex
  34. m.MeshType = "FileMesh"
  35. m.MeshId = mesh
  36. m.Scale = Vector3.new(3,3,3)
  37. end
  38.  
  39. function S(mouse)
  40. mouse.Button1Down:connect(function() OB1D(mouse) end)
  41. mouse.KeyDown:connect(key)
  42. end
  43.  
  44. script.Parent.Selected:connect(S)
  45.  
  46. local p = Instance.new("Part")
  47. local bp = Instance.new("BodyPosition")
  48. local v = Instance.new("BodyVelocity")
  49. mesh = "http://www.roblox.com/asset/?id=1290033"
  50. tex = "http://www.roblox.com/asset/?id=1290030"
  51.  
  52. function key(key)
  53.  
  54. if key == "z" then
  55. g = Workspace:children()
  56. for i = 1, #g do
  57. if g[i].Name == "Bending Rock" then
  58. g[i]:Remove()
  59. end
  60. end
  61. end
  62. end
  63.  
  64. function S(mouse)
  65. mouse.KeyDown:connect(key)
  66. end
  67.  
  68. function key(key)
  69.  
  70. if key == "b" then
  71. script.Parent.Name = "Earth Bending"
  72. wait(5)
  73. script.Parent.Name = "Earthbending Tool"
  74.  
  75. function B1D(mouse)
  76. bp.Parent = p
  77. bp.maxForce = Vector3.new(20000,20000,20000)
  78. bp.position = script.Parent.Parent.Parent.Character.Torso.Position + Vector3.new(4,4.5,0)
  79. wait(2)
  80. v.Parent = p
  81. v.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  82. v.velocity = Vector3.new(10000,0,0)
  83. end
  84. end
  85. end
  86.  
  87. function S(mouse)
  88. mouse.Button1Down:connect(function() B1D(mouse) end)
  89. mouse.KeyDown:connect(key)
  90.  
  91. script.Parent.Selected:connect(S)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement