Advertisement
TheClassicMeme

Trail test 3,0

May 29th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game:GetService("Players").LocalPlayer
  2. repeat
  3. wait()
  4. until player.Character
  5. local char = player.Character
  6. local torso = char:WaitForChild("Torso")
  7. local mouse = player:GetMouse()
  8. local color = BrickColor.new("Really black")
  9. local material = "Neon"
  10. local trans = 0.5
  11. local debounce = false
  12. for u,c in pairs(player.Character:GetChildren()) do
  13. if c.className == "Hat" and c.Name ~= "Hybrid Goggles" then
  14. c.Handle.BrickColor = BrickColor.new("Really black")
  15. c.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  16. end
  17. end
  18. blast = function()
  19.  
  20. local b = Instance.new("Part", workspace)
  21. game.Debris:AddItem(b, 2)
  22. b.Size = Vector3.new(5, 5, 5)
  23. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  24. b.TopSurface = "Smooth"
  25. b.BottomSurface = "Smooth"
  26. b.CanCollide = false
  27. b.BrickColor = color
  28. b.Transparency = trans
  29. b.Material = material
  30. local v = Instance.new("BodyVelocity", b)
  31. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  32. v.Velocity = torso.CFrame.lookVector * 50
  33. r = Instance.new("BodyAngularVelocity", b)
  34. r.AngularVelocity = Vector3.new(25, 25, 25)
  35. b.Touched:connect(function(hit)
  36.  
  37. p = hit.Parent
  38. if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
  39. b:Remove()
  40. p.Humanoid:TakeDamage(35)
  41. end
  42. end
  43. )
  44. end
  45.  
  46. death = function()
  47.  
  48. local b = Instance.new("Part", workspace)
  49. game.Debris:AddItem(b, 2)
  50. b.Size = Vector3.new(5, 5, 5)
  51. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  52. b.TopSurface = "Smooth"
  53. b.BottomSurface = "Smooth"
  54. b.CanCollide = false
  55. b.BrickColor = color
  56. b.Transparency = trans
  57. b.Material = material
  58. local v = Instance.new("BodyVelocity", b)
  59. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  60. v.Velocity = torso.CFrame.lookVector * 50
  61. r = Instance.new("BodyAngularVelocity", b)
  62. r.AngularVelocity = Vector3.new(25, 25, 25)
  63. b.Touched:connect(function(hit)
  64.  
  65. p = hit
  66. if p and p.Name ~= "Base" and p.Name ~= player.Name then
  67. p:Remove()
  68. end
  69. end
  70. )
  71. end
  72.  
  73. wall = function()
  74.  
  75. local b = Instance.new("Part", workspace)
  76. game.Debris:AddItem(b, 5)
  77. b.Size = Vector3.new(1, 1, 1)
  78. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  79. b.TopSurface = "Smooth"
  80. b.BottomSurface = "Smooth"
  81. b.CanCollide = false
  82. b.Anchored = true
  83. b.BrickColor = color
  84. b.Transparency = trans
  85. b.Material = material
  86. for i = 1, 50 do
  87. wait()
  88. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  89. b.Size = b.Size + Vector3.new(0.5, 0.5, 0)
  90. end
  91. b.CanCollide = true
  92. b.Touched:connect(function(hit)
  93.  
  94. p = hit.Parent
  95. if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
  96. p.Humanoid:TakeDamage(5)
  97. end
  98. end
  99. )
  100. end
  101.  
  102. fade = function()
  103.  
  104. for i,v in pairs(char:GetChildren()) do
  105. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  106. v.Transparency = 0.5
  107. end
  108. end
  109. for i,v in pairs(char:GetChildren()) do
  110. if v.className == "Hat" then
  111. v.Handle.Transparency = 0.5
  112. end
  113. end
  114. end
  115.  
  116. unfade = function()
  117.  
  118. for i,v in pairs(char:GetChildren()) do
  119. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  120. v.Transparency = 0
  121. end
  122. end
  123. for i,v in pairs(char:GetChildren()) do
  124. if v.className == "Hat" then
  125. v.Handle.Transparency = 0
  126. end
  127. end
  128. end
  129.  
  130. dash = function(x)
  131.  
  132. b = Instance.new("Part", workspace)
  133. game.Debris:AddItem(b, 0.7)
  134. b.Size = Vector3.new(3, 3, 3)
  135. b.BrickColor = color
  136. b.Material = material
  137. b.CanCollide = false
  138. b.CFrame = torso.CFrame * x
  139. t = Instance.new("BodyVelocity", b)
  140. r = Instance.new("BodyAngularVelocity", b)
  141. r.AngularVelocity = Vector3.new(15, 15, 15)
  142. for i = 1, 5 do
  143. wait()
  144. b.Transparency = b.Transparency + 0.1
  145. torso.CFrame = torso.CFrame * CFrame.new(0, 0, -1)
  146. end
  147. end
  148.  
  149. mouse.KeyDown:connect(function(key)
  150.  
  151. if key == "v" then
  152. holding = true
  153. fade()
  154. while holding and wait(0.01) do
  155. dash(CFrame.new(2, 1, 0))
  156. dash(CFrame.new(-2, -1, 1))
  157. dash(CFrame.new(0, 1, 3))
  158. end
  159. end
  160. end
  161. )
  162. mouse.KeyUp:connect(function(key)
  163.  
  164. if key == "v" then
  165. unfade()
  166. holding = false
  167. end
  168. end
  169. )
  170. mouse.KeyDown:connect(function(key)
  171.  
  172. if key == "e" and debounce == false then
  173. debounce = true
  174. blast()
  175. wait(0.5)
  176. debounce = false
  177. end
  178. end
  179. )
  180. mouse.KeyDown:connect(function(key)
  181.  
  182. if key == "q" and debounce == false then
  183. debounce = true
  184. wall()
  185. wait(0.5)
  186. debounce = false
  187. end
  188. end
  189. )
  190. mouse.KeyDown:connect(function(key)
  191.  
  192. if key == "t" and debounce == false then
  193. debounce = true
  194. death()
  195. wait(0.5)
  196. debounce = false
  197. end
  198. end
  199. )
  200.  
  201. -- params : ...
  202.  
  203. Model = Instance.new("Model", game.Workspace)
  204. Model.Name = "ShadowFigs"
  205. Model.ChildAdded:connect(function(Child)
  206.  
  207. wait(0.2)
  208. if Child.Name == "ShadowClone" and Child.Name ~= "HoverBlocks" then
  209. local Light = Instance.new("PointLight", Child.Torso)
  210. Light.Color = Color3.new(1, 1, 1)
  211. Light.Range = 10
  212. Light.Brightness = 2
  213. Light.Shadows = true
  214. for t = 1, 5 do
  215. wait(0.1)
  216. for i = 1, #Child:GetChildren() do
  217. Child:GetChildren()[i].Transparency = t / 10 + 0.5
  218. end
  219. end
  220. Child:remove()
  221. end
  222. end
  223. )
  224. Parts = {"Head", "Torso", "Left Arm", "Left Leg", "Right Arm", "Right Leg"}
  225. repeat
  226. wait()
  227. until game.Players.LocalPlayer
  228. Plr = game.Players.LocalPlayer
  229. PlrChildren = Plr:GetChildren()
  230. Plr.Character.Humanoid.WalkSpeed = 32
  231. for i = 1, #PlrChildren do
  232. print(PlrChildren[i])
  233. end
  234. do
  235. while 1 do
  236. Posit = Plr.Character.HumanoidRootPart.Position
  237. wait(0.1)
  238. if Plr.Character.HumanoidRootPart.Position == Posit or Plr.Character.Humanoid.WalkSpeed == 32 then
  239. Set = Instance.new("Model", game.Workspace.ShadowFigs)
  240. Set.Name = "ShadowClone"
  241. for i = 1, #Parts do
  242. PartClone = Plr.Character[Parts[i]]:Clone()
  243. RotationX = math.rad(Plr.Character[Parts[i]].Rotation.X)
  244. RotationY = math.rad(Plr.Character[Parts[i]].Rotation.Y)
  245. RotationZ = math.rad(Plr.Character[Parts[i]].Rotation.Z)
  246. PartClone.CFrame = CFrame.new(Plr.Character[Parts[i]].Position) * CFrame.Angles(RotationX, RotationY, RotationZ)
  247. PartClone.Parent = Set
  248. PartClone.Anchored = true
  249. PartClone.CanCollide = false
  250. PartClone.Transparency = 0.7
  251. PartClone.Material = "Neon"
  252. PartClone.BrickColor = BrickColor.new("Really black")
  253. if PartClone.Name == "Head" or PartClone.Name == "Torso" then
  254. Children = PartClone:GetChildren()
  255. for i = 1, #Children do
  256. if Children[i].ClassName ~= "Mesh" and Children[i].ClassName ~= "SpecialMesh" then
  257. Children[i]:remove()
  258. end
  259. end
  260. end
  261. end
  262. end
  263. end
  264. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement