aidanthescriptor101

flash

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