AndyWolf6610

Tail (Made By Some cool Stranger)

Oct 8th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. local function Tail_1(char)
  2. --// lol
  3. local Torso,mr,CFrame_2,model =
  4. char:WaitForChild'Torso',math.rad,{}
  5. CFrame_2.Angles = function(x,y,z)return CFrame.Angles(mr(x),mr(y),mr(z))end
  6. CFrame_2.Angles2 = function(x,y,z)return CFrame.Angles(mr(x),mr(z),mr(y))end
  7.  
  8. local function New_Instance(Classname,props)
  9. local a = Instance.new(Classname)
  10. for i,v in pairs(props)do
  11. local _,e = pcall(function()
  12. a[i] = v
  13. end)if e then print(e)end
  14. end return a
  15. end
  16. local function Get_Part(Props)
  17. local p = Instance.new("Part")
  18. p.CanCollide = false
  19. p.Massless = true
  20. p.Color = Torso.Color
  21. p.Material = Enum.Material.SmoothPlastic
  22. p.Parent = Torso
  23. for i,v in pairs(Props)do
  24. local _,e = pcall(function()
  25. p[i] = v
  26. end)if e then print(e)end
  27. end
  28.  
  29. return p
  30. end
  31. local function Get_SM(Part_Props,SM_Props)
  32. local p = Get_Part(Part_Props)
  33. local sm = Instance.new("SpecialMesh")
  34. sm.MeshType = 'FileMesh'
  35. for i,v in pairs(SM_Props)do
  36. local _,e = pcall(function()
  37. sm[i] = v
  38. end)if e then print(e)end
  39. end
  40. sm.Parent = p
  41. return p
  42. end
  43. local function Weldc(a,b)
  44. local w = Instance.new("WeldConstraint",a)
  45. w.Part0 = a;w.Part1 = b;return w
  46. end
  47. local function Get_CM(Props,Props2)
  48. local a = Get_Part(Props)
  49. local cm = Instance.new('CylinderMesh')
  50.  
  51. for i,v in pairs(Props2)do
  52. local _,e = pcall(function()
  53. cm[i] = v
  54. end)if e then print(e)end
  55. end;cm.Parent = a;return a
  56. end
  57. local function Get_Union(Primary_Part,table_of_obj,is_negated)
  58. local parts = {Primary_Part}
  59. Primary_Part.Parent = workspace
  60. for _,v in pairs(table_of_obj)do
  61. table.insert(parts,v)
  62. v.Anchored = true
  63. v.CanCollide = false
  64. v.Color = Primary_Part.Color
  65. v.Transparency = Primary_Part.Transparency
  66. v.Material = Primary_Part.Material
  67. end
  68. local union
  69.  
  70. if not is_negated then
  71. union = Primary_Part:UnionAsync(table_of_obj)
  72. else
  73. union = Primary_Part:SubtractAsync(table_of_obj)
  74. end
  75. for _,v in pairs(parts)do
  76. v:Destroy()
  77. end
  78. union.Parent = workspace
  79. union.CanCollide = false
  80.  
  81. return union
  82. end
  83. local function M_Weld(props)
  84. return New_Instance('Weld',props)
  85. end
  86.  
  87. for _,v in pairs(char:GetChildren())do
  88. if v and v:IsA'Accessory'and v:FindFirstChild('WaistBackAttachment',true)then
  89. v:Destroy()
  90. end
  91. end
  92.  
  93. local Z_Thing_1 = 1.5
  94. local p = Get_SM({CFrame = Torso.CFrame*CFrame.new(0, -0.5, -1.75)*
  95. CFrame_2.Angles(0, 180, 180),Size = Vector3.new(2, 1, 2.5)},{
  96. TextureId = 'rbxassetid://188539332',MeshId = 'rbxassetid://188539404'})
  97. local m6_1 = Instance.new("Weld",Torso)
  98. m6_1.Part0 = Torso
  99. m6_1.Part1 = p
  100. m6_1.C0 = CFrame.new(0,-1,Z_Thing_1)
  101.  
  102. local Gravity_Y_Speed = 1/5
  103. local Gravity_Y_Range = 15
  104.  
  105. local afk_time = 0
  106. spawn(function()
  107. while true do
  108. if Torso and m6_1 then
  109. if Torso.Velocity.Y<-.35 then
  110. m6_1.C0 = m6_1.C0:Lerp(CFrame_2.Angles(-Gravity_Y_Range,0,0)*
  111. CFrame.new(0,-1,Z_Thing_1),Gravity_Y_Speed)
  112. elseif Torso.Velocity.Y>.35 then
  113. m6_1.C0 = m6_1.C0:Lerp(CFrame_2.Angles(Gravity_Y_Range,0,0)*
  114. CFrame.new(0,-1,Z_Thing_1),Gravity_Y_Speed)
  115. else
  116. m6_1.C0 = m6_1.C0:Lerp(CFrame.new(0,-1,Z_Thing_1),Gravity_Y_Speed)
  117. end
  118. if afk_time>=2.5*60 then
  119. local num = afk_time % 30
  120. if num < 15 then
  121. m6_1.C0 = m6_1.C0:Lerp(CFrame_2.Angles(0,20,0)*
  122. CFrame.new(0,-1,Z_Thing_1),Gravity_Y_Speed)
  123. else
  124. m6_1.C0 = m6_1.C0:Lerp(CFrame_2.Angles(0,-20,0)*
  125. CFrame.new(0,-1,Z_Thing_1),Gravity_Y_Speed)
  126. end
  127. end
  128. if
  129. Torso.Velocity.X>-.35 and Torso.Velocity.X<.35 and
  130. Torso.Velocity.Y>-.35 and Torso.Velocity.Y<.35 and
  131. Torso.Velocity.Z>-.35 and Torso.Velocity.Z<.35
  132. then
  133. afk_time = afk_time + 1
  134. else
  135. afk_time = 0
  136. end
  137.  
  138. else
  139. break
  140. end
  141. wait()
  142. end
  143. end)
  144. end
  145. wait(2)
  146. Tail_1(owner.Character)
Add Comment
Please, Sign In to add comment