Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. User = script.Parent.Parent.Character
  2. if User.Name == "Jakraisai" then
  3. TailParts = {User.Torso}
  4. Welds = {}
  5. for i = 2, 13 do
  6. TailParts[i] = Instance.new("Part", User)
  7. TailParts[i].Name = "TailPart"
  8. TailParts[i].CanCollide = false
  9. TailParts[i].Locked = true
  10. TailParts[i].formFactor = "Symmetric"
  11. TailParts[i].Size = Vector3.new(1, 1, 1)
  12. TailMesh = Instance.new("BlockMesh", TailParts[i])
  13. TailMesh.Name = "TailMesh"
  14. TailMesh.Scale = Vector3.new(0.3 - (i - 1) / 80, 0.3 - (i - 1) / 80, 0.25)
  15. Welds[i - 1] = Instance.new("Weld", TailParts[i])
  16. Welds[i - 1].Part0 = TailParts[i - 1]
  17. Welds[i - 1].Part1 = TailParts[i]
  18. Welds[i - 1].C0 = CFrame.new(0, 0, 0.125)
  19. Welds[i - 1].C1 = CFrame.new(0, 0, -0.125)
  20. if i ~= 13 then
  21. TailDecoration = Instance.new("Part", User)
  22. TailDecoration.Name = "TailPart"
  23. TailDecoration.CanCollide = false
  24. TailDecoration.Locked = true
  25. TailDecoration.formFactor = "Symmetric"
  26. TailDecoration.Size = Vector3.new(1, 1, 1)
  27. TailDecoration.BrickColor = BrickColor.new("Light stone grey")
  28. TailMesh = Instance.new("BlockMesh", TailDecoration)
  29. TailMesh.Name = "TailMesh"
  30. TailMesh.Scale = Vector3.new(0.305 - (i - 1) / 80, 0.1, 0.255)
  31. Weld = Instance.new("Weld", TailDecoration)
  32. Weld.Part0 = TailParts[i]
  33. Weld.Part1 = TailDecoration
  34. Weld.C0 = CFrame.new(0, -0.1, 0)
  35. Weld.C1 = CFrame.new(0, 0, 0)
  36. for e = 1, math.random(0, 1) do
  37. TailStrype = Instance.new("Part", User)
  38. TailStrype.Name = "TailPart"
  39. TailStrype.CanCollide = false
  40. TailStrype.Locked = true
  41. TailStrype.formFactor = "Symmetric"
  42. TailStrype.Size = Vector3.new(1, 1, 1)
  43. TailStrype.BrickColor = BrickColor.new("Dark stone grey")
  44. TailMesh = Instance.new("BlockMesh", TailStrype)
  45. TailMesh.Name = "TailMesh"
  46. TailMesh.Scale = Vector3.new(0.33 - (i - 1) / 80, 0.33 - (i - 1) / 80, 0.05)
  47. Weld = Instance.new("Weld", TailStrype)
  48. Weld.Part0 = TailParts[i]
  49. Weld.Part1 = TailStrype
  50. Weld.C0 = CFrame.new(0, 0, math.random(-10, 10) / 80)
  51. Weld.C1 = CFrame.new(0, 0, 0)
  52. end
  53. end
  54. end
  55. Welds[1].C0 = CFrame.new(0, -1, 0.5)
  56. for i = 2, 12 do
  57. TailParts[i].BrickColor = BrickColor.new("Light stone grey")
  58. end
  59. TailParts[13].BrickColor = BrickColor.new("Dark stone grey")
  60. function TailSmooth(WhereTo0, WhereTo1)
  61. CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  62. CR1 = CFrame.new(WhereTo0).p
  63. AddTo0 = (CR1 - CR0) / 20
  64. CR2 = CFrame.new(Welds[7].C1:toEulerAnglesXYZ()).p
  65. CR3 = CFrame.new(WhereTo1).p
  66. AddTo1 = (CR3 - CR2) / 20
  67. for a = 1, 10 do
  68. wait(0.025)
  69. for b = 1, 6 do
  70. Welds[b].C1 = Welds[b].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y + User.Torso.RotVelocity.y / 128, AddTo0.z)
  71. end
  72. for c = 7, 12 do
  73. Welds[c].C1 = Welds[c].C1 * CFrame.fromEulerAnglesXYZ(AddTo1.x, AddTo1.y + User.Torso.RotVelocity.y / 128, AddTo1.z)
  74. end
  75. end
  76. end
  77. Variation = math.random(-5, 5) / 80
  78. while true do
  79. wait()
  80. Variation = (Variation + math.random(-5, 5) / 80) / 2
  81. if User.Torso.Velocity.magnitude > 8 then
  82. TailSmooth(Vector3.new(-math.pi / 12 + Variation, math.pi / 9, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, -math.pi / 6, 0))
  83. TailSmooth(Vector3.new(-math.pi / 12 + Variation, math.pi / 6, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, -math.pi / 12, 0))
  84. TailSmooth(Vector3.new(-math.pi / 12 + Variation, math.pi / 9, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, math.pi / 12, 0))
  85. TailSmooth(Vector3.new(-math.pi / 12 + Variation, -math.pi / 9, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, math.pi / 6, 0))
  86. TailSmooth(Vector3.new(-math.pi / 12 + Variation, -math.pi / 6, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, math.pi / 12, 0))
  87. TailSmooth(Vector3.new(-math.pi / 12 + Variation, -math.pi / 9, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, -math.pi / 12, 0))
  88. else
  89. TailSmooth(Vector3.new(-math.pi / 24 + Variation, math.pi / 18, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, -math.pi / 12, 0))
  90. TailSmooth(Vector3.new(-math.pi / 24 + Variation, math.pi / 12, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, -math.pi / 24, 0))
  91. TailSmooth(Vector3.new(-math.pi / 24 + Variation, math.pi / 18, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, math.pi / 24, 0))
  92. TailSmooth(Vector3.new(-math.pi / 24 + Variation, -math.pi / 18, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, math.pi / 12, 0))
  93. TailSmooth(Vector3.new(-math.pi / 24 + Variation, -math.pi / 12, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, math.pi / 24, 0))
  94. TailSmooth(Vector3.new(-math.pi / 24 + Variation, -math.pi / 18, 0), Vector3.new(math.pi / 9 + math.random(-5, 5) / 20, -math.pi / 24, 0))
  95. end
  96. end
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement