Scriptus_Infinitus

Tokyo ghoul tail script.

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