Advertisement
Finnegan5

Trail

Sep 6th, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.32 KB | None | 0 0
  1. Character = game.Players.LocalPlayer.Character
  2. Head = Character.Head
  3.  
  4. CV="Blue"
  5. p = game.Players.LocalPlayer
  6. char = p.Character
  7. local txt = Instance.new("BillboardGui", char)
  8. txt.Adornee = char .Head
  9. txt.Name = "_status"
  10. txt.Size = UDim2.new(2, 0, 1.2, 0)
  11. txt.StudsOffset = Vector3.new(-9, 8, 0)
  12. local text = Instance.new("TextLabel", txt)
  13. text.Size = UDim2.new(10, 0, 7, 0)
  14. text.FontSize = "Size24"
  15. text.TextScaled = true
  16. text.TextTransparency = 0
  17. text.BackgroundTransparency = 1
  18. text.TextTransparency = 0
  19. text.TextStrokeTransparency = 0
  20. text.Font = "Cartoon"
  21. text.TextStrokeColor3 = Color3.new(0,255,0)
  22.  
  23. v=Instance.new("Part")
  24. v.Name = "ColorBrick"
  25. v.Parent=p.Character
  26. v.FormFactor="Symmetric"
  27. v.Anchored=true
  28. v.CanCollide=false
  29. v.BottomSurface="Smooth"
  30. v.TopSurface="Smooth"
  31. v.Size=Vector3.new(10,5,3)
  32. v.Transparency=1
  33. v.CFrame=char.UpperTorso.CFrame
  34. v.BrickColor=BrickColor.new(CV)
  35. v.Transparency=1
  36. text.TextColor3 = Color3.new(0,0,255)
  37. v.Shape="Block"
  38. text.Text = "RUNNING IN THE 90's!"
  39.  
  40. local s = Instance.new("Sound",char)
  41. s.Name = "BGMusic"
  42. s.SoundId = "rbxassetid://918984470"
  43. s.Pitch = 1
  44. s.Volume = 900
  45. s.Looped = true
  46. s.archivable = false
  47. s.Parent = char.Head
  48. wait(0.1)
  49. s:play()
  50.  
  51. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=260569492"
  52.  
  53. char.Humanoid.WalkSpeed = 999999999
  54.  
  55. wait(1 / 60)
  56. -- Trail Made by WitherBlazestorm2
  57. --R15 Compatible in TrailSettings
  58. local Player = game:GetService('Players').LocalPlayer
  59. repeat wait() until Player.Character
  60. local Character = Player.Character
  61.  
  62. --All The Settings for Trails in this Script
  63. TrailSettings = {
  64. Lifetime = 0.5,
  65. Texture = 'rbxassetid://31270182',
  66. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  67. Color1 = ColorSequence.new(BrickColor.new('Really red').Color,BrickColor.new('Royal purple').Color),
  68. Color2 = ColorSequence.new(BrickColor.new('Really blue').Color,BrickColor.new('Lime green').Color),
  69. AllBody = true,
  70. UpperBodyOnly = false,
  71. LowerBodyOnly = false,
  72. Accessories = false,
  73. Extras = true,
  74. R15 = true, --Change to true if you're using R15
  75. R15Parts = {
  76. 'UpperTorso',
  77. 'LowerTorso',
  78. }
  79. }
  80.  
  81. local Trail; --Making other Trails uses this in this Script
  82.  
  83. --UpperBody Function
  84. UpperBody = function()
  85. if TrailSettings.R15 == false then
  86. A0 = Instance.new('Attachment',Character.Torso)
  87. A1 = Instance.new('Attachment',Character.Head)
  88. A2 = Instance.new('Attachment',Character['Right Arm'])
  89. A3 = Instance.new('Attachment',Character['Left Arm'])
  90. Trail = Instance.new('Trail',Character)
  91. Trail.Attachment0 = A0
  92. Trail.Attachment1 = A1
  93. Trail.Texture = TrailSettings.Texture
  94. Trail.Color = TrailSettings.Color1
  95. Trail.Lifetime = TrailSettings.Lifetime
  96. local Trail2 = Trail:Clone()
  97. Trail2.Parent = Character
  98. Trail2.Attachment1 = A2
  99. local Trail3 = Trail:Clone()
  100. Trail3.Parent = Character
  101. Trail3.Attachment1 = A3
  102. local Trail6 = Trail:Clone()
  103. Trail6.Parent = Character
  104. Trail6.Attachment0 = A1
  105. Trail6.Attachment1 = A2
  106. local Trail7 = Trail:Clone()
  107. Trail7.Parent = Character
  108. Trail7.Attachment0 = A1
  109. Trail7.Attachment1 = A3
  110. else
  111. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  112. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  113. A1 = Instance.new('Attachment',Character.Head)
  114. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  115. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  116. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  117. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  118. Trail = Instance.new('Trail',Character)
  119. Trail.Attachment0 = A0
  120. Trail.Attachment1 = A1
  121. Trail.Texture = TrailSettings.Texture
  122. Trail.Color = TrailSettings.Color1
  123. Trail.Lifetime = TrailSettings.Lifetime
  124. local Trail2 = Trail:Clone()
  125. Trail2.Parent = Character
  126. Trail2.Attachment1 = A2
  127. local Trail3 = Trail:Clone()
  128. Trail3.Parent = Character
  129. Trail3.Attachment1 = A3
  130. local Trail6 = Trail:Clone()
  131. Trail6.Parent = Character
  132. Trail6.Attachment0 = A1
  133. Trail6.Attachment1 = A2
  134. local Trail7 = Trail:Clone()
  135. Trail7.Parent = Character
  136. Trail7.Attachment0 = A1
  137. Trail7.Attachment1 = A3
  138. --R15 Trails
  139. local Trail1R = Trail:Clone()
  140. Trail1R.Parent = Character
  141. Trail1R.Attachment1 = A2R
  142. local Trail2R = Trail:Clone()
  143. Trail2R.Parent = Character
  144. Trail2R.Attachment1 = A3R
  145. local Trail6R = Trail:Clone()
  146. Trail6.Parent = Character
  147. Trail6.Attachment0 = A1
  148. Trail6.Attachment1 = A2R
  149. local Trail7R = Trail:Clone()
  150. Trail7.Parent = Character
  151. Trail7.Attachment0 = A1
  152. Trail7.Attachment1 = A3R
  153. end
  154. end
  155.  
  156. --Lower Body Function
  157. LowerBody = function()
  158. if TrailSettings.R15 == false then
  159. A4 = Instance.new('Attachment',Character['Right Leg'])
  160. A5 = Instance.new('Attachment',Character['Left Leg'])
  161. local Trail4 = Trail:Clone()
  162. Trail4.Parent = Character
  163. Trail4.Attachment1 = A4
  164. local Trail5 = Trail:Clone()
  165. Trail5.Parent = Character
  166. Trail5.Attachment1 = A5
  167. local Trail8 = Trail:Clone()
  168. Trail8.Parent = Character
  169. Trail8.Attachment0 = A2
  170. Trail8.Attachment1 = A4
  171. Trail8.Color = TrailSettings.Color2
  172. local Trail9 = Trail:Clone()
  173. Trail9.Parent = Character
  174. Trail9.Attachment0 = A3
  175. Trail9.Attachment1 = A5
  176. Trail9.Color = TrailSettings.Color2
  177. local FT = Trail:Clone()
  178. FT.Parent = Character
  179. FT.Attachment0 = A4
  180. FT.Attachment1 = A5
  181. FT.Color = TrailSettings.Color2
  182. else
  183. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  184. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  185. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  186. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  187. local Trail4 = Trail:Clone()
  188. Trail4.Parent = Character
  189. Trail4.Attachment1 = A4
  190. local Trail5 = Trail:Clone()
  191. Trail5.Parent = Character
  192. Trail5.Attachment1 = A5
  193. local Trail8 = Trail:Clone()
  194. Trail8.Parent = Character
  195. Trail8.Attachment0 = A2
  196. Trail8.Attachment1 = A4
  197. Trail8.Color = TrailSettings.Color2
  198. local Trail9 = Trail:Clone()
  199. Trail9.Parent = Character
  200. Trail9.Attachment0 = A3
  201. Trail9.Attachment1 = A5
  202. Trail9.Color = TrailSettings.Color2
  203. local FT = Trail:Clone()
  204. FT.Parent = Character
  205. FT.Attachment0 = A4
  206. FT.Attachment1 = A5
  207. FT.Color = TrailSettings.Color2
  208. --R15 Trails
  209. local Trail3R = Trail:Clone()
  210. Trail3R.Parent = Character
  211. Trail3R.Attachment1 = A4R
  212. local Trail4R = Trail:Clone()
  213. Trail4R.Parent = Character
  214. Trail4R.Attachment1 = A5R
  215. local Trail8 = Trail:Clone()
  216. Trail8.Parent = Character
  217. Trail8.Attachment0 = A2R
  218. Trail8.Attachment1 = A4R
  219. Trail8.Color = TrailSettings.Color2
  220. local Trail9 = Trail:Clone()
  221. Trail9.Parent = Character
  222. Trail9.Attachment0 = A3R
  223. Trail9.Attachment1 = A5R
  224. Trail9.Color = TrailSettings.Color2
  225. local FT2R = Trail:Clone()
  226. FT2R.Parent = Character
  227. FT2R.Attachment0 = A4R
  228. FT2R.Attachment1 = A5R
  229. FT2R.Color = TrailSettings.Color2
  230. end
  231. end
  232.  
  233. --All Body Function calling Both Functions
  234. AllBody = function()
  235. UpperBody()
  236. LowerBody()
  237. end
  238.  
  239. --Checking to make sure that Only some Variables are Selected else do All Body
  240. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  241. TrailSettings.UpperBodyOnly = false
  242. TrailSettings.LowerBodyOnly = false
  243. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  244. TrailSettings.UpperBodyOnly = false
  245. TrailSettings.LowerBodyOnly = false
  246. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  247. TrailSettings.UpperBodyOnly = false
  248. TrailSettings.LowerBodyOnly = false
  249. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  250. TrailSettings.AllBody = true
  251. TrailSettings.UpperBodyOnly = false
  252. TrailSettings.LowerBodyOnly = false
  253. end
  254.  
  255. --Call Trail Functions
  256. if TrailSettings.UpperBodyOnly == true then
  257. UpperBody()
  258. print('Called Upper Body Trail')
  259. elseif TrailSettings.LowerBodyOnly == true then
  260. LowerBody()
  261. print('Called Lower Body Trail')
  262. elseif TrailSettings.AllBody == true then
  263. AllBody()
  264. print('Called Full Body Trail')
  265. end
  266.  
  267. --Trails for Accessories
  268. if TrailSettings.Accessories == true then
  269. for Index,Item in pairs(Character:GetChildren()) do
  270. if Item:IsA'Accessory' then
  271. local AA = Instance.new('Attachment',Item.Handle)
  272. local ATrail = Trail:Clone()
  273. ATrail.Parent = Character
  274. ATrail.Attachment1 = AA
  275. end
  276. end
  277. end
  278.  
  279. --Extras
  280. if TrailSettings.Extras == true then
  281. --Making an Invisible Platform Part
  282. local a = Instance.new('Part',Character)
  283. a.CanCollide = false
  284. a.Size = Vector3.new(2,.2,2)
  285. a.Transparency = 1
  286.  
  287. --Constantly putting it under your feet
  288. if TrailSettings.R15 == false then
  289. spawn(function()
  290. game:GetService('RunService').RenderStepped:connect(function()
  291. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  292. end)
  293. end)
  294. else
  295. spawn(function()
  296. game:GetService('RunService').RenderStepped:connect(function()
  297. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  298. end)
  299. end)
  300. end
  301.  
  302. --Make a Trail from both feet to the Platform
  303. spawn(function()
  304. repeat wait() until Trail
  305. local AB = Instance.new('Attachment',a)
  306. local ABT = Trail:Clone()
  307. ABT.Parent = Character
  308. ABT.Attachment0 = A4
  309. ABT.Attachment1 = AB
  310. ABT.Color = TrailSettings.Color2
  311. local ABT2 = Trail:Clone()
  312. ABT2.Parent = Character
  313. ABT2.Attachment0 = A5
  314. ABT2.Attachment1 = AB
  315. ABT2.Color = TrailSettings.Color2
  316. end)
  317. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement