jericoalejo

flash

Jul 5th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.70 KB | None | 0 0
  1. -----No names needed-----
  2.  
  3. local player=game.Players.LocalPlayer
  4. local char=player.Character
  5. repeat wait() until player and char
  6. local torso=char.Torso
  7. local head=char.Head
  8. local human=char.Humanoid
  9. local hat
  10. for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end
  11. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  12. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  13. local c=function(f) coroutine.resume(coroutine.create(f)) end
  14. pcall(function() torso.roblox:clone().Parent=fake.Torso torso.roblox:remove() head.face:remove() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end v.Transparency=1 end end)
  15. local add={
  16. Part=function(par, a, c, col, t, s, cf)
  17. local p=Instance.new("Part", par) p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()
  18. return p
  19. end,
  20. Weld=function(par, p1, cf)
  21. local w=Instance.new("Weld", par) w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new()
  22. return w
  23. end,
  24. Mesh=function(ins, par, s, of, t)
  25. local m=Instance.new(ins, par) m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() pcall(function() m.MeshType=t end)
  26. return m
  27. end
  28. }
  29. local scriptname="Flash"
  30. pcall(function() char[scriptname]:remove() end)
  31. local model=Instance.new("Model", char) model.Name=scriptname
  32. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=model.Name
  33. local skincolor="Really black"
  34. local fake={}
  35. local weld={}
  36. local mesh={}
  37. fake.arm={}
  38. fake.leg={}
  39. fake.torso=nil
  40. fake.Mesh={} fake.Weld={}
  41. --====--
  42. weld.arm={}
  43. weld.leg={}
  44. weld.torso=nil
  45. --====--
  46. mesh.arm={}
  47. mesh.leg={}
  48. --==FAKE, MESH, WELDZ==--
  49. fake.arm.left=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  50. fake.arm.right=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  51. fake.leg.left=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  52. fake.leg.right=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  53. fake.torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  54. fake.head=head:clone() fake.head.Parent=model fake.head.BrickColor=BrickColor.new(skincolor) fake.head.Transparency=0
  55. -------------------------
  56. mesh.arm.left=add.Mesh("BlockMesh", fake.arm.left, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  57. mesh.arm.right=add.Mesh("BlockMesh", fake.arm.right, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  58. mesh.leg.left=add.Mesh("BlockMesh", fake.leg.left, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  59. mesh.leg.right=add.Mesh("BlockMesh", fake.leg.right, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  60. -------------------------
  61. weld.arm.left=add.Weld(fake.arm.left, fake.torso, CFrame.new(-1.5, .5, 0))
  62. weld.arm.right=add.Weld(fake.arm.right, fake.torso, CFrame.new(1.5, .5, 0))
  63. weld.leg.left=add.Weld(fake.leg.left, fake.torso, CFrame.new(-.5, -1.5, 0))
  64. weld.leg.right=add.Weld(fake.leg.right, fake.torso, CFrame.new(.5, -1.5, 0))
  65. weld.torso=add.Weld(torso, fake.torso, nil)
  66. weld.head=add.Weld(fake.head, fake.torso, CFrame.new(0, 1.5, 0))
  67. pcall(function() torso.roblox:remove() head.face:remove() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end v.Transparency=1 end end)
  68. --==SIGN==--
  69. fake.Rot=add.Part(model, false, false, "Really black", 0, Vector3.new(1, 1, 1), nil)
  70. fake.Mesh.Rot=add.Mesh("CylinderMesh", fake.Rot, Vector3.new(1.5, .5, 1.5), nil, nil)
  71. fake.Weld.Rot=add.Weld(fake.Rot, fake.torso, CFrame.new(0, 0, -.3)*CFrame.Angles(math.rad(90), 0, 0))
  72. fake.L=add.Part(model, false, false, "Bright yellow", 0, Vector3.new(1, 1, 1), nil)
  73. fake.Mesh.L=add.Mesh("BlockMesh", fake.L, Vector3.new(.25, .5, 1), nil, nil)
  74. fake.Weld.L=add.Weld(fake.L, fake.Rot, CFrame.new(.25, -0.05, 0))
  75. fake.L2=add.Part(model, false, false, "Bright yellow", 0, Vector3.new(1, 1, 1), nil)
  76. fake.Mesh.L2=add.Mesh("BlockMesh", fake.L2, Vector3.new(.75, .5, .25), nil, nil)
  77. fake.Weld.L2=add.Weld(fake.L2, fake.Rot, CFrame.new(0, -0.05, .4))
  78. c(function() for i=0, math.huge, .1 do wait() fake.Weld.Rot.C0=CFrame.Angles(0, i, 0) end end)
  79. --==MANA==--
  80. local gui=Instance.new("ScreenGui", player.PlayerGui)
  81. local label=Instance.new("TextLabel", gui)
  82. label.Text="--==100%==--"
  83. label.Position=UDim2.new(0, 0, 0, 200)
  84. label.Size=UDim2.new(0, 200, 0, 20)
  85. label.BorderColor=BrickColor.Black() label.BackgroundColor=BrickColor.White()
  86. label.TextColor=BrickColor.Black()
  87. local charge=label:clone() charge.Parent=label
  88. charge.Position=UDim2.new()
  89. charge.Text=""
  90. charge.Size=UDim2.new(1, 0, 1, 0)
  91. charge.BorderColor=BrickColor.Black() charge.BackgroundColor=BrickColor.Yellow() charge.Transparency=.5
  92. ----------------------------------------------------------------------------------------------
  93. local walkspeed=100 --Flash :D
  94. local dmg=math.random(5, 10)
  95. local rundeb=false
  96. local tdeb=false
  97. local hDeb=false
  98.  
  99. function hit(h)
  100. local humanoid=h.Parent:findFirstChild("Humanoid")
  101. if humanoid and h.Parent~=char and hDeb==false then
  102. hDeb=true
  103. --c(function()
  104. local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p))
  105. local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  106. c(function()
  107. for i=0, 1, .05 do
  108. wait()
  109. fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0)
  110. end
  111. fakeP:remove()
  112. end)
  113. c(function()
  114. for i=0, 1, .05 do
  115. wait()
  116. fakeP.Transparency=i
  117. end
  118. end)
  119. humanoid.Health=humanoid.Health-dmg
  120. local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
  121. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  122. local fakeP=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) fakeP.Name="Head"
  123. local fakeMesh=add.Mesh("CylinderMesh", fakeP, Vector3.new(1, .2, 1), nil, nil)
  124. local bp=Instance.new("BodyPosition", fakeP) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  125. game.Debris:addItem(fakeM, 2)
  126. pcall(function()h.Parent:findFirstChild("Torso").RotVelocity=fake.torso.RotVelocity*math.random(-1000, 1000)end)
  127. pcall(function()h.Parent:findFirstChild("Torso").Velocity=fake.torso.Velocity*math.random(-1000, 1000)end)
  128. wait()
  129. hDeb=false
  130. --end)
  131. end
  132. end
  133.  
  134. function trail(pos, cf, col)
  135. c(function()
  136. local old=(pos.CFrame*cf).p
  137. while tdeb==true do
  138. wait()
  139. local new=(pos.CFrame*cf).p
  140. local mag=(old-new).magnitude
  141. local dis=(old+new)/2
  142. local trail=add.Part(workspace, true, false, col, 0, Vector3.new(1, mag, 1), CFrame.new(dis, new)*CFrame.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))*CFrame.Angles(math.pi/2, 0, 0))
  143. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  144. trail.Touched:connect(hit)
  145. old=new
  146. c(function()
  147. for i=1, 0, -.2 do
  148. wait()
  149. trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i)
  150. end
  151. trail:remove()
  152. end)
  153. c(function()
  154. for i=0, 1, .2 do
  155. wait()
  156. trail.Transparency=i
  157. end
  158. end)
  159. end
  160. end)
  161. end
  162. bin.Selected:connect(function(mouse)
  163. for i, v in pairs(model:children()) do tdeb=true trail(v, CFrame.new(), "Bright yellow") end
  164. c(function() while true do wait() for i, v in pairs(model:children()) do v.Touched:connect(hit) end end end)
  165. human.WalkSpeed=walkspeed
  166. human.MaxHealth=math.huge
  167. human.Running:connect(function(speed)
  168. if speed>0 then
  169. for i=0, 1, .1 do
  170. wait()
  171. weld.torso.C1=CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(15)*i, 0, 0)
  172. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  173. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i)
  174. end
  175. while speed>0 do
  176. wait()
  177. for i=0, 1, .1 do
  178. wait()
  179. weld.leg.left.C1=CFrame.new(-.5, -1.5, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)
  180. weld.leg.right.C1=CFrame.new(.5, -1.5, 0)*CFrame.Angles(math.rad(45)*i, 0, 0)
  181. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45))
  182. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)-(-math.rad(45)*i), 0, math.rad(45))
  183. end
  184. for i=1, 0, -.1 do
  185. wait()
  186. weld.leg.left.C1=CFrame.new(-.5, -1.5, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)
  187. weld.leg.right.C1=CFrame.new(.5, -1.5, 0)*CFrame.Angles(math.rad(45)*i, 0, 0)
  188. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45))
  189. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)-(-math.rad(45)*i), 0, math.rad(45))
  190. end
  191. end
  192. end
  193. end)
  194. end)--mediafire
Add Comment
Please, Sign In to add comment