Advertisement
Gokussjg

Untitled

May 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. wait(0)
  2.  
  3. local Parts = {
  4.  
  5. game.Players.LocalPlayer.Character.Torso
  6.  
  7. }
  8.  
  9. local w = {}
  10.  
  11. for i = 2, 24 do
  12.  
  13. Parts[i] = Instance.new("Part", game.Players.LocalPlayer.Character)
  14.  
  15. Parts[i].BrickColor = BrickColor.Black()
  16.  
  17. Parts[i].Material = "Granite"
  18.  
  19. Parts[i].CanCollide = false
  20.  
  21. Parts[i].Locked = false
  22.  
  23. Parts[i].formFactor = "Symmetric"
  24.  
  25. Parts[i].Size = Vector3.new(1.5, 3, 3)
  26.  
  27. function onTouched(part)
  28.  
  29. local h = Parts[i].Parent:findFirstChild("Humanoid")
  30.  
  31. if h ~= nil then
  32.  
  33. h.Health = h.Health - 0
  34.  
  35. wait(0)
  36.  
  37. end
  38.  
  39. end
  40.  
  41. Parts[i].Touched:connect(onTouched)
  42.  
  43. Mesh = Instance.new("BlockMesh", Parts[i])
  44.  
  45. Mesh.Name = "Mesh"
  46.  
  47. if i > 75 then
  48.  
  49. mult = (i - 25) / 1
  50.  
  51. else
  52.  
  53. mult = 0
  54.  
  55. end
  56.  
  57. Mesh.Scale = Vector3.new(math.abs(0.5 - (i - 0) / 50) + 0 + mult, 0.3 - (i - 0.15) / 69, 0.6)
  58.  
  59. w[i - 1] = Instance.new("Weld", Parts[i])
  60.  
  61. w[i - 1].Part0 = Parts[i - 1]
  62.  
  63. w[i - 1].Part1 = Parts[i]
  64.  
  65. w[i - 1].C0 = CFrame.new(0, 0, 0.75)
  66.  
  67. w[i - 1].C1 = CFrame.new(0, 0, -0.75)
  68.  
  69. end
  70.  
  71. w[1].C0 = CFrame.new(0, -0.35, 0)
  72.  
  73. function Smooth(WhereTo0, Welds)
  74.  
  75. local CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  76.  
  77. local CR1 = CFrame.new(WhereTo0).p
  78.  
  79. local AddTo0 = (CR1 - CR0) / 6.9
  80.  
  81. for a = 1, #Welds do
  82.  
  83. Welds[a].C1 = Welds[a].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y, AddTo0.z)
  84.  
  85. end
  86.  
  87. end
  88.  
  89. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  90.  
  91. local absx = scr.AbsoluteSize.X
  92.  
  93. local absy = scr.AbsoluteSize.Y
  94.  
  95. scr:Destroy()
  96.  
  97. local mouse = game.Players.LocalPlayer:GetMouse()
  98.  
  99. game:GetService("RunService").RenderStepped:connect(function()
  100.  
  101. local r = CFrame.new(Vector3.new((mouse.Y - absy / 2) / absy, (mouse.X - absx / 2) / absx, 0.025)).p
  102.  
  103. local y = r.y
  104.  
  105. local x = r.x
  106.  
  107. local z = r.z
  108.  
  109. Smooth(Vector3.new(y, x, -z), w)
  110.  
  111. end)
  112.  
  113. wait(0)
  114.  
  115. local Parts = {
  116.  
  117. game.Players.LocalPlayer.Character.Torso
  118.  
  119. }
  120.  
  121. local w = {}
  122.  
  123. for i = 2, 24 do
  124.  
  125. Parts[i] = Instance.new("Part", game.Players.LocalPlayer.Character)
  126.  
  127. Parts[i].BrickColor = BrickColor.Black()
  128.  
  129. Parts[i].Material = "Granite"
  130.  
  131. Parts[i].CanCollide = false
  132.  
  133. Parts[i].Locked = false
  134.  
  135. Parts[i].formFactor = "Symmetric"
  136.  
  137. Parts[i].Size = Vector3.new(1.1, 0.9, 2.5)
  138.  
  139. function onTouched(part)
  140.  
  141. local h = Parts[i].Parent:findFirstChild("Humanoid")
  142.  
  143. if h ~= nil then
  144.  
  145. h.Health = h.Health - 0
  146.  
  147. wait(0)
  148.  
  149. end
  150.  
  151. end
  152.  
  153. Parts[i].Touched:connect(onTouched)
  154.  
  155. Mesh = Instance.new("BlockMesh", Parts[i])
  156.  
  157. Mesh.Name = "Mesh"
  158.  
  159. if i > 75 then
  160.  
  161. mult = (i - 25) / 1
  162.  
  163. else
  164.  
  165. mult = 0
  166.  
  167. end
  168.  
  169. Mesh.Scale = Vector3.new(math.abs(0.5 - (i - 0) / 50) + 0 + mult, 0.3 - (i - 0.15) / 99, 0.6)
  170.  
  171. w[i - 1] = Instance.new("Weld", Parts[i])
  172.  
  173. w[i - 1].Part0 = Parts[i - 1]
  174.  
  175. w[i - 1].Part1 = Parts[i]
  176.  
  177. w[i - 1].C0 = CFrame.new(0, 0, 0.69)
  178.  
  179. w[i - 1].C1 = CFrame.new(0, 0, -0.69)
  180.  
  181. end
  182.  
  183. w[1].C0 = CFrame.new(0, -0.35, 0)
  184.  
  185. function Smooth(WhereTo0, Welds)
  186.  
  187. local CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  188.  
  189. local CR1 = CFrame.new(WhereTo0).p
  190.  
  191. local AddTo0 = (CR1 - CR0) / 6.9
  192.  
  193. for a = 1, #Welds do
  194.  
  195. Welds[a].C1 = Welds[a].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y, AddTo0.z)
  196.  
  197. end
  198.  
  199. end
  200.  
  201. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  202.  
  203. local absx = scr.AbsoluteSize.X
  204.  
  205. local absy = scr.AbsoluteSize.Y
  206.  
  207. scr:Destroy()
  208.  
  209. local mouse = game.Players.LocalPlayer:GetMouse()
  210.  
  211. game:GetService("RunService").RenderStepped:connect(function()
  212.  
  213. local r = CFrame.new(Vector3.new((mouse.Y - absy / 2) / absy, (mouse.X - absx / 2) / absx, 0.025)).p
  214.  
  215. local y = r.y
  216.  
  217. local x = r.x
  218.  
  219. local z = r.z
  220.  
  221. Smooth(Vector3.new(y, x, -z), w)
  222.  
  223. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement