213blood

Untitled

May 19th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  2. local plr = game.Players.LocalPlayer
  3. repeat wait() until plr.Character
  4. wait(0)
  5. local Parts = {
  6. game.Players.LocalPlayer.Character.Torso
  7. }
  8.  
  9. local w = {}
  10. for i = 2, 24 do
  11. Parts[i] = Instance.new("Part", game.Players.LocalPlayer.Character)
  12. Parts[i].BrickColor = BrickColor.new("Crimson")
  13. Parts[i].Material = "Granite"
  14. Parts[i].CanCollide = false
  15. Parts[i].Locked = false
  16. Parts[i].formFactor = "Symmetric"
  17. Parts[i].Size = Vector3.new(1.5, 3, 3)
  18. local con = Parts[i].Touched:connect(function(hit)
  19. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  20. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
  21. else
  22. return
  23. end
  24. end)
  25. --con:disconnect()
  26. Mesh = Instance.new("BlockMesh", Parts[i])
  27. Mesh.Name = "Mesh"
  28. if i > 75 then
  29. mult = (i - 25) / 1
  30. else
  31. mult = 0
  32. end
  33. Mesh.Scale = Vector3.new(math.abs(0.5 - (i - 0) / 50) + 0 + mult, 0.3 - (i - 0.15) / 69, 0.6)
  34. w[i - 1] = Instance.new("Weld", Parts[i])
  35. w[i - 1].Part0 = Parts[i - 1]
  36. w[i - 1].Part1 = Parts[i]
  37. w[i - 1].C0 = CFrame.new(0, 0, 0.75)
  38. w[i - 1].C1 = CFrame.new(0, 0, -0.75)
  39. end
  40. w[1].C0 = CFrame.new(0, -0.35, 0)
  41. function Smooth(WhereTo0, Welds)
  42. local CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  43. local CR1 = CFrame.new(WhereTo0).p
  44. local AddTo0 = (CR1 - CR0) / 6.9
  45. for a = 1, #Welds do
  46. Welds[a].C1 = Welds[a].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y, AddTo0.z)
  47. end
  48. end
  49. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  50. local absx = scr.AbsoluteSize.X
  51. local absy = scr.AbsoluteSize.Y
  52. scr:Destroy()
  53. local mouse = game.Players.LocalPlayer:GetMouse()
  54. game:GetService("RunService").RenderStepped:connect(function()
  55. local r = CFrame.new(Vector3.new((mouse.Y - absy / 2) / absy, (mouse.X - absx / 2) / absx, 0.025)).p
  56. local y = r.y
  57. local x = r.x
  58. local z = r.z
  59. Smooth(Vector3.new(y, x, -z), w)
  60. end)
  61. wait(0)
  62. local Parts = {
  63. game.Players.LocalPlayer.Character.Torso
  64. }
  65. local w = {}
  66. for i = 2, 24 do
  67. Parts[i] = Instance.new("Part", game.Players.LocalPlayer.Character)
  68. Parts[i].BrickColor = BrickColor.new("Cocoa")
  69. Parts[i].Material = "Granite"
  70. Parts[i].CanCollide = false
  71. Parts[i].Locked = false
  72. Parts[i].formFactor = "Symmetric"
  73. Parts[i].Size = Vector3.new(1.1, 0.9, 2.5)
  74. function onTouched(part)
  75. local h = Parts[i].Parent:findFirstChild("Humanoid")
  76. if h ~= nil then
  77. h.Health = h.Health - 0
  78. wait(0)
  79. end
  80. end
  81. Parts[i].Touched:connect(onTouched)
  82. Mesh = Instance.new("BlockMesh", Parts[i])
  83. Mesh.Name = "Mesh"
  84. if i > 75 then
  85. mult = (i - 25) / 1
  86. else
  87. mult = 0
  88. end
  89. Mesh.Scale = Vector3.new(math.abs(0.5 - (i - 0) / 50) + 0 + mult, 0.3 - (i - 0.15) / 99, 0.6)
  90. w[i - 1] = Instance.new("Weld", Parts[i])
  91. w[i - 1].Part0 = Parts[i - 1]
  92. w[i - 1].Part1 = Parts[i]
  93. w[i - 1].C0 = CFrame.new(0, 0, 0.69)
  94. w[i - 1].C1 = CFrame.new(0, 0, -0.69)
  95. end
  96. w[1].C0 = CFrame.new(0, -0.35, 0)
  97. function Smooth(WhereTo0, Welds)
  98. local CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  99. local CR1 = CFrame.new(WhereTo0).p
  100. local AddTo0 = (CR1 - CR0) / 6.9
  101. for a = 1, #Welds do
  102. Welds[a].C1 = Welds[a].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y, AddTo0.z)
  103. end
  104. end
  105. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  106. local absx = scr.AbsoluteSize.X
  107. local absy = scr.AbsoluteSize.Y
  108. scr:Destroy()
  109.  
  110. local mouse = game.Players.LocalPlayer:GetMouse()
  111. game:GetService("RunService").RenderStepped:connect(function()
  112. local r = CFrame.new(Vector3.new((mouse.Y - absy / 2) / absy, (mouse.X - absx / 2) / absx, 0.025)).p
  113. local y = r.y
  114. local x = r.x
  115. local z = r.z
  116. Smooth(Vector3.new(y, x, -z), w)
  117. end)
Add Comment
Please, Sign In to add comment