Fissetty

Untitled

Aug 30th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. i˜tool = Instance.new("Tool")
  2. Handle = Instance.new("Part")
  3.  
  4. Handle.Shape = "Ball"
  5. Handle.formFactor = 0
  6. Handle.TopSurface = 0
  7. Handle.BottomSurface = 0
  8. Handle.Locked = true
  9. Handle.Transparency = 0
  10. Handle.Reflectance = 1
  11. Handle.Name = "Handle"
  12. Handle.BrickColor = BrickColor.new("Really red")
  13. Handle.Transparency = 0.3
  14. Handle.Size = Vector3.new(1,1,1)
  15. Handle.Parent = tool
  16.  
  17. RockFolder = Instance.new("Model")
  18. RockFolder.Name = "Rocks"
  19. RockFolder.Parent = Workspace
  20.  
  21.  
  22. function Sound(SoundId)
  23. s = Instance.new("Sound")
  24. s.SoundId = SoundId
  25. s.Name = "ToolSound"
  26. s.Parent = Handle
  27. s.Pitch = 1
  28. s.Volume = 1
  29. return s
  30. end
  31.  
  32. Engage = Sound("http://www.roblox.com/asset/?id=11450310")
  33.  
  34. RockFolder.ChildAdded:connect(function(Stone)
  35. Stone.Touched:connect(function (hit)
  36. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= tool.Parent.Name then
  37. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-100
  38. hit.Parent.Humanoid.Sit = true
  39. hit.Parent.Torso.Velocity = Vector3.new(math.random(-0,00),math.random(125,150),math.random(-00,00))
  40. end
  41. end)
  42. Stone.CFrame = Stone.CFrame*CFrame.new(0,0,0)
  43. for i=1,25 do
  44. Stone.CFrame = Stone.CFrame*CFrame.new(0,0.8,0)
  45. wait()
  46. end
  47. wait(0.05)
  48. for i=1,25 do
  49. Stone.CFrame = Stone.CFrame*CFrame.new(0,-0.8,0)
  50. wait()
  51. end
  52. Stone:remove()
  53. end)
  54.  
  55.  
  56.  
  57. function Stone(CFRAME,Number)
  58. S = Instance.new("Part")
  59. S.Name = "Rock"
  60. S.formFactor = 0
  61. S.Anchored = true
  62. S.TopSurface = "Smooth"
  63. S.BottomSurface = "Smooth"
  64. S.Locked = true
  65. S.Transparency = 0.3
  66. S.Reflectance = 1
  67. S.CanCollide = true
  68. S.Size = Vector3.new(math.random(02,07),math.random(20,25),math.random(02,07))
  69. S.BrickColor = BrickColor.new("Really red")
  70. S.CFrame = CFRAME*CFrame.new(0,0,Number*10)*CFrame.fromEulerAnglesXYZ(2*math.pi/760*math.random(-20,20),2*math.pi/760*math.random(-
  71.  
  72. 500,500),2*math.pi/360*math.random(-20,20))
  73. S.Parent = RockFolder
  74.  
  75. end
  76.  
  77.  
  78. D = false
  79.  
  80. tool.Activated:connect(function()
  81. if D == true then return end
  82. Engage:play()
  83. D = true
  84. Dir = tool.Parent.Torso.CFrame
  85. print(Dir)
  86. for i=1,100 do
  87. Stone(Dir,i*-1)
  88. wait(0.05)
  89. end
  90. D = false
  91. end)
  92.  
  93. Player = game.Players.olefson
  94. tool.Parent = Player.Backpack
  95. RockFolder.Parent = Player.Character
  96. tool.Name = "Crystal Wave"
  97. --[[p = Instance.new("Part")
  98. p.Parent = Workspace
  99. p.Anchored = true
  100. p.BottomSurface = "Smooth"
  101. p.Position = Vector3.new(10, 50, 20)
  102. p2 = p:clone()
  103. p2.Parent = Workspace
  104. p2.Position = Vector3.new(20, 15, 2)
  105. a = Instance.new("Part")
  106. a.Parent = Workspace
  107. a.Anchored = true
  108. a.TopSurface = "Smooth"
  109. a.BottomSurface = "Smooth"
  110. a.BrickColor = BrickColor.new("Really red")
  111. a.Size = Vector3.new(1,((p.Position - p2.Position).magnitude),1)
  112. a.CFrame = CFrame.new((p1.Position+ p2.Position)/2, p1.Position)*CFrame.fromEulerAnglesXYZ(math.pi/7, 0, 0)
  113.  
  114.  
  115.  
  116. ]]
Add Comment
Please, Sign In to add comment