Advertisement
EmeraldIT

Actual tail

Sep 5th, 2021 (edited)
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. --Made by PhoenixClockworks
  2. --Hey, dont delete this one, please and thank you. >B^(
  3. --MY TAIL IS STILL HERE
  4. print("Tail script - Made by PhoenixClockworks")
  5. print("(Note: The tail will reload whenever your character loads, though it will get laggier each time, so eventually the script may appear slower).")
  6.  
  7.  
  8. local ch = owner.Character
  9. function swait(num)
  10. if num==0 or num==nil then
  11. game:service'RunService'.Heartbeat:wait(0)
  12. else
  13. for i=0,num do
  14. game:service'RunService'.Heartbeat:wait(0)
  15. end
  16. end
  17. end
  18.  
  19. function tail()
  20. local specs = {PhoenixClockworks = {Color = Color3.new(1,1,1), segdetail = {Clone = {CloneCol = {Color3.new(1,0.5,1), Color3.new(0.5,1,1)}, CloneMat = "ForceField"}}, lastpfunc = function(th)
  21. local CF = CFrame.new
  22. local ANG = CFrame.Angles
  23. local RAN = math.random
  24. local C3 = Color3.new
  25. local RGB = Color3.fromRGB
  26. local VT = Vector3.new
  27. local UD = UDim2.new
  28. local SEQ = NumberSequence.new
  29. local CSEQ = ColorSequence.new
  30. local NKEY = NumberSequenceKeypoint.new
  31. local RANGE = NumberRange.new
  32.  
  33. local pte = function(parent, lightemission, lightinfluence, color, transparency, drag, locked, accel, rate, lifetime, rotspeed, rotation, spread, speed, size, texture, z, direction, enabled)
  34. local pe = Instance.new("ParticleEmitter")
  35. pe.LightEmission = lightemission
  36. pe.LightInfluence = lightinfluence
  37. pe.Color = color
  38. pe.Size = size
  39. pe.Transparency = transparency
  40. pe.ZOffset = z
  41. pe.EmissionDirection = direction
  42. pe.Rate = rate
  43. pe.LockedToPart = locked
  44. pe.Acceleration = accel or Vector3.new(0,0,0)
  45. pe.Lifetime = lifetime
  46. pe.RotSpeed = rotspeed
  47. pe.Rotation = rotation
  48. pe.SpreadAngle = spread
  49. pe.Speed = speed
  50. pe.Texture = texture
  51. pe.Enabled = enabled
  52. pe.Drag = drag
  53. pe.Parent = parent
  54. return pe
  55. end
  56.  
  57. --local pt = pte(th, 1, 0, CSEQ(RGB(255, 125, 255)), SEQ({NKEY(0,1),NKEY(0.2,0), NKEY(0.8,0), NKEY(1,1)}), 0, false, nil, 100, NumberRange.new(0.1,1), NumberRange.new(-180,180), NumberRange.new(-180,180), Vector2.new(0), NumberRange.new(1,2), SEQ({NKEY(0,0),NKEY(1,1)}), "rbxassetid://2273224484", 3, "Top", true)
  58.  
  59. --[[local fi = Instance.new("Fire", th)
  60. fi.Color = Color3.new(1,0.5,1)
  61. fi.Size = 0.5
  62. fi.Heat = 0
  63. fi.SecondaryColor = Color3.new(0.2,1,1)]]
  64.  
  65. local li = Instance.new("PointLight", th)
  66. li.Color = Color3.new(255, 85, 255)
  67.  
  68. local trail = Instance.new("Trail")
  69. trail.FaceCamera = true
  70. trail.LightEmission = 1
  71. trail.Color = CSEQ(RGB(255, 125, 255), RGB(125,255,255))
  72. trail.Transparency = SEQ({NKEY(0,0), NKEY(0.8,0), NKEY(1,1)})
  73. trail.Lifetime = 1
  74. trail.Parent = th
  75. att = Instance.new("Attachment", th)
  76. att.Position = Vector3.new(0,th.Size.Y/2,0)
  77. att2 = Instance.new("Attachment", th)
  78. att2.Position = Vector3.new(0,-th.Size.Y/2,0)
  79. trail.Attachment0 = att
  80. trail.Attachment1 = att2
  81. end}, PhoenixsFirstOmen = {Color = Color3.new(0,0,0), segdetail = {Clone = {CloneCol = {Color3.new(1,0.5,0), Color3.new(1, 0.9, 0)}, CloneMat = "ForceField"}}, lastpfunc = function(th)
  82. local CF = CFrame.new
  83. local ANG = CFrame.Angles
  84. local RAN = math.random
  85. local C3 = Color3.new
  86. local RGB = Color3.fromRGB
  87. local VT = Vector3.new
  88. local UD = UDim2.new
  89. local SEQ = NumberSequence.new
  90. local CSEQ = ColorSequence.new
  91. local NKEY = NumberSequenceKeypoint.new
  92. local RANGE = NumberRange.new
  93.  
  94. local pte = function(parent, lightemission, lightinfluence, color, transparency, drag, locked, accel, rate, lifetime, rotspeed, rotation, spread, speed, size, texture, z, direction, enabled)
  95. local pe = Instance.new("ParticleEmitter")
  96. pe.LightEmission = lightemission
  97. pe.LightInfluence = lightinfluence
  98. pe.Color = color
  99. pe.Size = size
  100. pe.Transparency = transparency
  101. pe.ZOffset = z
  102. pe.EmissionDirection = direction
  103. pe.Rate = rate
  104. pe.LockedToPart = locked
  105. pe.Acceleration = accel or Vector3.new(0,0,0)
  106. pe.Lifetime = lifetime
  107. pe.RotSpeed = rotspeed
  108. pe.Rotation = rotation
  109. pe.SpreadAngle = spread
  110. pe.Speed = speed
  111. pe.Texture = texture
  112. pe.Enabled = enabled
  113. pe.Drag = drag
  114. pe.Parent = parent
  115. return pe
  116. end
  117.  
  118. --local pt = pte(th, 1, 0, CSEQ(RGB(255, 125, 255)), SEQ({NKEY(0,1),NKEY(0.2,0), NKEY(0.8,0), NKEY(1,1)}), 0, false, nil, 100, NumberRange.new(0.1,1), NumberRange.new(-180,180), NumberRange.new(-180,180), Vector2.new(0), NumberRange.new(1,2), SEQ({NKEY(0,0),NKEY(1,1)}), "rbxassetid://2273224484", 3, "Top", true)
  119.  
  120. local fi = Instance.new("Fire", th)
  121. fi.Color = Color3.new(1,0.5,0)
  122. fi.Size = 0.5
  123. fi.Heat = 0
  124. fi.SecondaryColor = Color3.new(0, 0, 0)
  125.  
  126. local li = Instance.new("PointLight", th)
  127. li.Color = Color3.new(1, 0.5, 0)
  128.  
  129. local trail = Instance.new("Trail")
  130. trail.FaceCamera = true
  131. trail.LightEmission = 1
  132. trail.Color = CSEQ(RGB(255, 125, 0), RGB(255, 230, 0))
  133. trail.Transparency = SEQ({NKEY(0,0), NKEY(0.8,0), NKEY(1,1)})
  134. trail.Lifetime = 1
  135. trail.Parent = th
  136. att = Instance.new("Attachment", th)
  137. att.Position = Vector3.new(0,th.Size.Y/2,0)
  138. att2 = Instance.new("Attachment", th)
  139. att2.Position = Vector3.new(0,-th.Size.Y/2,0)
  140. trail.Attachment0 = att
  141. trail.Attachment1 = att2
  142. end}}
  143.  
  144. local tab = {}
  145. Instance.new("ForceField", ch).Visible = false
  146. mainp = Instance.new("FlagStand", ch)
  147. mainp.Material = "Glass"
  148. mainp.Size = Vector3.new(0.5,0.5,0.5)
  149. mainp.Anchored = false
  150. mainp.CanCollide = false
  151. mainp.Color = ch:WaitForChild("Body Colors").TorsoColor3
  152. table.insert(tab, mainp)
  153. pcall(function()
  154. mainp.Color = specs[owner.Name].Color
  155. end)
  156.  
  157. w = Instance.new("Weld", mainp)
  158. if ch:FindFirstChild("Torso") then
  159. w.Part0 = ch.Torso
  160. w.Part1 = mainp
  161. w.C0 = CFrame.new(0,-0.7,0.5)
  162. elseif ch:FindFirstChild("LowerTorso") then
  163. w.Part0 = ch.LowerTorso
  164. w.Part1 = mainp
  165. w.C0 = CFrame.new(0,-0.25,0.5)
  166. else
  167. error("LowerTorso/Torso not found (Rig needs to be R15 or R6).")
  168. end
  169.  
  170. local lastp = mainp
  171. for i = 1,25 do
  172. local p = Instance.new("FlagStand", ch)
  173. p.Material = "Glass"
  174. p.Size = Vector3.new(0.5-(i/50),0.5-(i/50),0.5-(i/50))
  175. p.Anchored = false
  176. p.CanCollide = false
  177. p.Color = lastp.Color
  178. table.insert(tab, p)
  179. local w = Instance.new("Weld", p)
  180. w.Part0 = lastp
  181. w.Part1 = p
  182. w.C0 = CFrame.new(0,0,((0.5-(i/50))/10*9)) * CFrame.Angles(-math.rad(0.2*i),0,0)
  183. local sine = 0
  184. spawn(function()
  185. while true do
  186. if p ~= nil then
  187. sine = sine + 1
  188. w.C0 = w.C0:Lerp(w.C0 * CFrame.Angles(0, math.rad(5)*math.cos(-sine/20), 0), 0.05)
  189. else
  190. return
  191. end
  192. swait()
  193. end
  194. end)
  195. lastp = p
  196. end
  197. pcall(function()
  198. for i,v in pairs(tab) do
  199. mat = specs[owner.Name].segdetail.Clone.CloneMat
  200. a = v:Clone()
  201. a:ClearAllChildren()
  202. a.Size = v.Size + Vector3.new(0.01,0.01,0.01)
  203. a.Material = mat
  204. a.Parent = v
  205. a.Color = specs[owner.Name].segdetail.Clone.CloneCol[1]
  206. wel = Instance.new("Weld", a)
  207. wel.Part0 = v
  208. wel.Part1 = a
  209. wel.C0 = CFrame.new(0,0,0)
  210. specs[owner.Name].segdetail.Clone.CloneCol[1] = specs[owner.Name].segdetail.Clone.CloneCol[1]:Lerp(specs[owner.Name].segdetail.Clone.CloneCol[2], 0.1)
  211. end
  212. end)
  213. pcall(function()
  214. specs[owner.Name].lastpfunc(lastp)
  215. end)
  216. end
  217.  
  218. tail()
  219. owner.CharacterAdded:Connect(function()
  220. ch = owner.Character
  221. tail()
  222. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement