Advertisement
PedroxD3

Untitled

Jan 9th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.01 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. local p=function(f) pcall(f) end
  13. local add={
  14. Part=function(par, a, c, col, t, s, cf)
  15. local p=Instance.new("Part", par) pcall(function() 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() end)
  16. return p
  17. end,
  18. Wedge=function(par, a, c, col, t, s, cf)
  19. local p=Instance.new("WedgePart", par) pcall(function() 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() end)
  20. return p
  21. end,
  22. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  23. local g=Instance.new(ins, par) ypcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  24. return g
  25. end,
  26. Weld=function(par, p1, cf)
  27. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  28. return w
  29. end,
  30. Mesh=function(ins, par, s, of, t)
  31. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  32. return m
  33. end
  34. }
  35. local scriptname="Soul Solid" --Name here
  36. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
  37. local model=Instance.new("Model", char) model.Name="Objects"
  38. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  39. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  40. local sound=Instance.new("Sound", model)
  41. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
  42. local skincolor="New Yeller"
  43. local suitcolor="Black"
  44. local body={}
  45. local animate={}
  46. local obj={}
  47. function createParts()
  48. --==PARTS==--
  49. body.Head=head:clone() body.Head.Parent=model body.Head.BrickColor=BrickColor.new(skincolor) body.Head.Transparency=0
  50. body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  51. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  52. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  53. p(function() for i, v in pairs(char:children()) do v.Transparency=1 end end)
  54. p(function() for i, v in pairs(char:children()) do v["face"]:clone().Parent=body.Head v["face"]:remove() end end)
  55. p(function() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end end end)
  56. --==WELDS==--
  57. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  58. body.TorsoW=add.Weld(body.Torso, torso, nil)
  59. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  60. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  61. --==MESHES==--
  62. add.Mesh("BlockMesh", body.ArmLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  63. add.Mesh("BlockMesh", body.ArmRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  64. add.Mesh("BlockMesh", body.LegLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  65. add.Mesh("BlockMesh", body.LegRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  66. ---------------------------------------------------------------------------------------
  67. animate={
  68. ["Head"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  69. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  70. end;
  71. ["Torso"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  72. body.TorsoW.C1=cf
  73. end;
  74. ["ArmLeft"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  75. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  76. end;
  77. ["ArmRight"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  78. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  79. end;
  80. ["LegLeft"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  81. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  82. end;
  83. ["LegRight"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  84. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  85. end;
  86. }
  87. --==Objects==--
  88. --Suit--
  89. obj.ArmLeft, obj.ArmRight=add.Part(model, false, false, suitcolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, suitcolor, 0, Vector3.new(1, 1, 1), nil)
  90. obj.ArmLeftW, obj.ArmRightW=add.Weld(obj.ArmLeft, body.ArmLeft, nil), add.Weld(obj.ArmRight, body.ArmRight, nil)
  91. obj.LegLeft, obj.LegRight=add.Part(model, false, false, suitcolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, suitcolor, 0, Vector3.new(1, 1, 1), nil)
  92. obj.LegLeftW, obj.LegRightW=add.Weld(obj.LegLeft, body.LegLeft, nil), add.Weld(obj.LegRight, body.LegRight, nil)
  93. obj.Torso=add.Part(model, false, false, suitcolor, 0, Vector3.new(2, 2, 1), nil)
  94. obj.TorsoW=add.Weld(obj.Torso, body.Torso, nil)
  95. add.Mesh("BlockMesh", obj.ArmLeft, Vector3.new(1.1, 1.6, 1.1), Vector3.new(0, -.25, 0), nil)
  96. add.Mesh("BlockMesh", obj.ArmRight, Vector3.new(1.1, 1.6, 1.1), Vector3.new(0, -.25, 0), nil)
  97. add.Mesh("BlockMesh", obj.LegLeft, Vector3.new(1.1, 1.6, 1.1), Vector3.new(0, -.25, 0), nil)
  98. add.Mesh("BlockMesh", obj.LegRight, Vector3.new(1.1, 1.6, 1.1), Vector3.new(0, -.25, 0), nil)
  99. add.Mesh("BlockMesh", obj.Torso, Vector3.new(1.05, 1.05, 1.05), nil, nil)
  100. ---------------------------------------------------------------------------------------
  101. obj.Handle=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil)
  102. obj.HandleW=add.Weld(obj.Handle, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  103. for i=1, 5 do
  104. obj.Design=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil)
  105. obj.DesignW=add.Weld(obj.Design, obj.Handle, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0))
  106. end
  107. --SEALS--
  108. obj.Seal=add.Part(modelB, false,false, "White", 0, Vector3.new(.2, .2, .2), nil)
  109. obj.SealM=add.Mesh("BlockMesh", obj.Seal, Vector3.new(.2, .5, 1), nil, nil)
  110. obj.SealW=add.Weld(obj.Seal, obj.Handle, CFrame.new(0, -1.15, .1))
  111. obj.Seal2=add.Part(modelB, false,false, "White", 0, Vector3.new(.2, .2, .2), nil)
  112. obj.Seal2M=add.Mesh("BlockMesh", obj.Seal2, Vector3.new(.25, 1, .5), nil, nil)
  113. obj.Seal2W=add.Weld(obj.Seal2, obj.Handle, CFrame.new(0, -1.1, 0))
  114. obj.Seal3=add.Part(modelB, false,false, "White", 0, Vector3.new(.3, 2, .2), nil)
  115. obj.Seal3M=add.Mesh("BlockMesh", obj.Seal3, Vector3.new(1, 1, .5), nil, nil)
  116. obj.Seal3W=add.Weld(obj.Seal3, obj.Handle, nil)
  117. ---------------------------------------------------------------------------------------
  118. obj.Guard=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  119. obj.GuardW=add.Weld(obj.Guard, obj.Handle, CFrame.new(0, 1.1, 0))
  120. obj.GuardB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil)
  121. obj.GuardBM=add.Mesh("BlockMesh", obj.GuardB, Vector3.new(.5, 1, 1), nil, nil)
  122. obj.GuardBW=add.Weld(obj.GuardB, obj.Handle, CFrame.new(0, 1.25, 0))
  123. obj.Blade=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.Blade.Reflectance=.5
  124. obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil)
  125. obj.BladeW=add.Weld(obj.Blade, obj.Handle, CFrame.new(0, 3, 0))
  126. obj.Point=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.Point.Reflectance=.5
  127. obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, 1), nil, "Wedge")
  128. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0))
  129. --==Signature(L)==--
  130. obj.LH=add.Part(model, false, false, "White", 0, Vector3.new(.5, 1, .2), nil)
  131. obj.LHW=add.Weld(obj.LH, obj.ArmLeft, CFrame.new(-.4, -.25, -.2))
  132. obj.LH=add.Part(model, false, false, "White", 0, Vector3.new(.5, .2, .5), nil)
  133. obj.LHW=add.Weld(obj.LH, obj.ArmLeft, CFrame.new(-.4, -.65, 0))
  134. end
  135. function removeParts()
  136. p(function()
  137. for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end
  138. end)
  139. end
  140. function play(id)
  141. sound.SoundId=id
  142. sound:play()
  143. end
  144.  
  145. --Variables--
  146. local trailDeb=false
  147. local running=false
  148. local hitDeb=false
  149. local attacking=false
  150. local hitting=false
  151. local shield=false
  152. local keyDeb=false
  153. local keyDeb2=false
  154. local looping=false
  155. local w, a, s, d=false, false, false, false
  156. local combo=0
  157. local speed=32
  158. local attackspeed=.25
  159. local dmg=math.random(5, 10)
  160. local looping2=false
  161.  
  162. local attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Dash(C)", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  163. local attackLabel2=add.Gui("TextLabel", attackLabel, "Really black", "Really black", "White", "Size18", "Block(V)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  164. local attackLabel3=add.Gui("TextLabel", attackLabel2, "Really black", "Really black", "White", "Size18", "Jump(Space)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  165. local attackLabel4=add.Gui("TextLabel", attackLabel3, "Really black", "Really black", "White", "Size18", "Regenerate(B)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  166. local attackLabel5=add.Gui("TextLabel", attackLabel4, "Really black", "Really black", "White", "Size18", "Ultimate(Z)ON/OFF", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  167.  
  168. function lightningGen(startPos, endPos)
  169. local magnitude=(startPos-endPos).magnitude
  170. local distance=(startPos+endPos)/2
  171. local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos)) pattern.Name="Effect"
  172. local startPosProx=startPos
  173. for i=1, 9 do
  174. local startPosProx2=startPosProx
  175. local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  176. local findSize=pattern.Size.z/10
  177. local findOffSet=pattern.CFrame.lookVector*-1
  178. local compute=i*findSize*findOffSet
  179. local newStartPos=startPos
  180. local newEndPos=CFrame.new(random+compute+newStartPos).p
  181. local magnitude=(startPosProx2-newEndPos).magnitude
  182. local distance=(startPosProx2+newEndPos)/2
  183. local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2)) lightning.Name="Effect"
  184. c(function()
  185. for i=0, 1, .1 do wait()
  186. lightning.Transparency=i
  187. end
  188. lightning:remove()
  189. end)
  190. startPosProx=newEndPos
  191. end
  192. pattern:remove()
  193. end
  194. function computePos(pos, pos2)
  195. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  196. torso.CFrame=CFrame.new(pos, pos3)
  197. return pos3
  198. end
  199. function nearTorso(pos, dis)
  200. local temp
  201. local distance=dis
  202. for i, v in pairs(workspace:children()) do
  203. if v:isA("Model") then
  204. temp=v:findFirstChild("Torso")
  205. local humanoid=v:findFirstChild("Humanoid")
  206. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  207. distance=(temp.CFrame.p-pos).magnitude
  208. return temp
  209. end
  210. end
  211. end
  212. end
  213.  
  214. function hit(h) while hitting==false do wait() end
  215. if h~=nil and h.Parent:findFirstChild("Humanoid")==nil and h.Parent~=char and h.Parent~=model and h.Parent~=modelB and h.Name~="Effect" and h.Name~="Base" and hitDeb==false then hitDeb=true h:remove()
  216. p(function()
  217. local pYPos=h.Position.y-(h.Size.y/2)
  218. local sYPos=obj.Point.Position.y
  219. if sYPos<=pYPos or sYPos>=(pYPos+h.Size.y) then return end
  220. local p=h:clone() p.Parent=workspace p.Anchored=true p.CanCollide=true p.Name="Effect"
  221. local p2=h:clone() p2.Parent=workspace p2.Anchored=true p2.CanCollide=true p.Name="Effect"
  222. p.formFactor="Custom"
  223. p2.formFactor="Custom"
  224. p.Size=Vector3.new(h.Size.x, sYPos-pYPos, h.Size.z)
  225. p2.Size=Vector3.new(h.Size.x, p2.Size.y-(sYPos-pYPos), h.Size.z)
  226. p.CFrame=h.CFrame*CFrame.new(0, -p2.Size.y/2, 0)
  227. p2.CFrame=h.CFrame*CFrame.new(0, p.Size.y/2, 0)
  228. c(function() wait() p.Anchored=false p2.Anchored=false
  229. for i=0, 1, .05 do
  230. wait()
  231. p.Transparency=i p2.Transparency=i
  232. end
  233. p:remove() p2:remove()
  234. end)
  235. end)
  236. hitDeb=false
  237. elseif h.Parent:findFirstChild("Humanoid")~=nil and h.Parent~=char and hitDeb==false then hitDeb=true
  238. local hHuman=h.Parent:findFirstChild("Humanoid")
  239. hHuman.Health=hHuman.Health-dmg
  240. --[[for i=1, 5 do
  241. local spark=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, 1, .2), obj.Point.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))) spark.Name="Effect"
  242. local sparkM=add.Mesh("BlockMesh", spark, Vector3.new(.5, 1, .5), nil, nil)
  243. c(function()
  244. for i=0, 1, .05 do wait()
  245. spark.Transparency=i
  246. end spark:remove()
  247. end)
  248. end]]
  249. local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
  250. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  251. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  252. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .2, 1), nil, nil)
  253. local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  254. game.Debris:addItem(fakeM, 2)
  255. wait()
  256. hitDeb=false
  257. end
  258. end
  259.  
  260. function trail(pos, cf)
  261. c(function()
  262. local old=(pos.CFrame*cf).p
  263. while trailDeb==true do
  264. wait()
  265. local new=(pos.CFrame*cf).p
  266. local mag=(old-new).magnitude
  267. local dis=(old+new)/2
  268. local trail=add.Part(workspace, true, false, "Pastel light blue", 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Effect"
  269. trail.Touched:connect(hit)
  270. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  271. old=new
  272. c(function()
  273. for i=1, 0, -.1 do
  274. wait()
  275. trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i)
  276. end
  277. trail:remove()
  278. end)
  279. c(function()
  280. for i=0, 1, .1 do
  281. wait()
  282. trail.Transparency=i
  283. end
  284. end)
  285. end
  286. end)
  287. end
  288.  
  289. function onRunning() while attacking or looping do wait() end
  290. if w or a or s or d then
  291. animate.ArmLeft(CFrame.Angles(0, 0, math.rad(-15)))
  292. animate.ArmRight(CFrame.Angles(0, 0, math.rad(15)))
  293. animate.LegLeft(CFrame.Angles(0, 0, math.rad(-5)))
  294. animate.LegRight(CFrame.Angles(0, 0, math.rad(5)))
  295. end
  296. end
  297.  
  298. function doAttacks() combo=combo+1 print("Combo: "..combo)
  299. if attacking==false and looping==false then attacking=true play("rbxasset://sounds\swordslash.wav")
  300. if combo==1 then hitting=true
  301. for i, v in pairs(modelB:children()) do v.Touched:connect(hit) end
  302. for i=0, 1, attackspeed do wait()
  303. animate.Torso(CFrame.Angles(0, -math.rad(45)*i, 0))
  304. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  305. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)-(math.rad(135)*i), 0, 0)
  306. end
  307. trailDeb=true trail(obj.Point, CFrame.new())
  308. for i=0, 1, attackspeed do wait()
  309. animate.Torso(CFrame.Angles(0, -math.rad(45)-(-math.rad(135)*i), 0))
  310. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(225)-(-math.rad(135)*i), 0, -math.rad(15)*i)
  311. end
  312. if combo>1 then combo=2 print("Combo: "..combo)
  313. for i=1, 0, -attackspeed do wait()
  314. animate.Torso(CFrame.Angles(0, -math.rad(90)+(math.rad(90)*i), 0))
  315. animate.ArmRight(CFrame.Angles(0, 0, math.rad(180)*i))
  316. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(15)*i)
  317. end
  318. trailDeb=false
  319. for i=1, 0, -attackspeed do wait()
  320. animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
  321. end
  322. attacking=false
  323. hitting=false
  324. combo=0
  325. onRunning()
  326. return
  327. end
  328. trailDeb=false
  329. for i=1, 0, -.2 do wait()
  330. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  331. animate.ArmRight(CFrame.Angles(0, 0, math.rad(180)*i))
  332. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(15)*i)
  333. end
  334. end
  335. attacking=false
  336. hitting=false
  337. combo=0
  338. onRunning()
  339. end
  340. end
  341.  
  342. local Abilities={
  343. ["Dash"]=function()
  344. for i, v in pairs(model:children()) do
  345. if v:isA("BasePart") then
  346. local bodyClone=v:clone() bodyClone.Parent=model bodyClone.Name="Effect"
  347. bodyClone.Anchored=true
  348. bodyClone.CanCollide=false
  349. bodyClone.CFrame=v.CFrame
  350. c(function()
  351. for i=.5, 1, .1 do wait()
  352. bodyClone.Transparency=i
  353. end
  354. bodyClone:remove()
  355. end)
  356. end
  357. end
  358. for i, v in pairs(modelB:children()) do
  359. if v:isA("BasePart") then
  360. local bodyClone=v:clone() bodyClone.Parent=model bodyClone.Name="Effect"
  361. bodyClone.Anchored=true
  362. bodyClone.CanCollide=false
  363. bodyClone.CFrame=v.CFrame
  364. c(function()
  365. for i=.5, 1, .1 do wait()
  366. bodyClone.Transparency=i
  367. end
  368. bodyClone:remove()
  369. end)
  370. end
  371. end
  372. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*10
  373. end;
  374. ["DashJump"]=function()
  375. for i, v in pairs(model:children()) do
  376. if v:isA("BasePart") then
  377. local bodyClone=v:clone() bodyClone.Parent=model bodyClone.Name="Effect"
  378. bodyClone.Anchored=true
  379. bodyClone.CanCollide=false
  380. bodyClone.CFrame=v.CFrame
  381. c(function()
  382. for i=.5, 1, .1 do wait()
  383. bodyClone.Transparency=i
  384. end
  385. bodyClone:remove()
  386. end)
  387. end
  388. end
  389. for i, v in pairs(modelB:children()) do
  390. if v:isA("BasePart") then
  391. local bodyClone=v:clone() bodyClone.Parent=model bodyClone.Name="Effect"
  392. bodyClone.Anchored=true
  393. bodyClone.CanCollide=false
  394. bodyClone.CFrame=v.CFrame
  395. c(function()
  396. for i=.5, 1, .1 do wait()
  397. bodyClone.Transparency=i
  398. end
  399. bodyClone:remove()
  400. end)
  401. end
  402. end
  403. pcall(function() torso:findFirstChild("BodyPosition"):remove() end)
  404. c(function()
  405. local bp=Instance.new("BodyPosition", torso) bp.maxForce=Vector3.new(0, math.huge, 0) bp.position=torso.Position+Vector3.new(0, 10, 0)
  406. wait(5)
  407. bp:remove()
  408. end)
  409. end;
  410. ["Shield"]=function(mouse) human.WalkSpeed=0
  411. looping=true
  412. for i=0, 1, .1 do wait()
  413. animate.ArmRight(CFrame.Angles(math.rad(45)*i, 0, 0))
  414. animate.ArmLeft(CFrame.Angles(math.rad(135)*i, 0, -math.rad(15)*i))
  415. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(45)*i), math.rad(35)*i, math.rad(90)*i)
  416. end
  417. local shieldPart=add.Part(model, true, false, "White", 1, Vector3.new(12, 12, 2), torso.CFrame+torso.CFrame.lookVector*1.5)
  418. while looping do wait() computePos(torso.CFrame.p, mouse.Hit.p) shieldPart.CFrame=torso.CFrame+torso.CFrame.lookVector*1.5
  419. shieldPart.Touched:connect(function(h)
  420. if h.Parent~=char and h.Parent~=modelB and h.Parent~=model and h.Name~="Trailz" and h.Name~="Base" and hitDeb==false then hitDeb=true print(h.Name)
  421. local effect=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p))
  422. local mesh=add.Mesh("SpecialMesh", effect, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  423. c(function()
  424. for i=0, 1, .1 do
  425. wait()
  426. effect.Mesh.Scale=effect.Mesh.Scale+Vector3.new(i, i, i)
  427. end
  428. effect:remove()
  429. end)
  430. c(function()
  431. for i=0, 1, .1 do
  432. wait()
  433. effect.Transparency=i
  434. end
  435. end)
  436. h.Anchored=false
  437. local bp=Instance.new("BodyPosition", h) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=(CFrame.new(h.CFrame.p, torso.CFrame.p)*CFrame.new(0, 0, h.Velocity.z*2)).p
  438. game.Debris:addItem(bp, .2)
  439. wait()
  440. hitDeb=false
  441. end
  442. end)
  443. end
  444. shieldPart:remove()
  445. for i=1, 0, -.1 do wait()
  446. animate.ArmRight(CFrame.Angles(math.rad(45)*i, 0, 0))
  447. animate.ArmLeft(CFrame.Angles(math.rad(135)*i, 0, -math.rad(15)*i))
  448. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(45)*i), math.rad(35)*i, math.rad(90)*i)
  449. end
  450. human.WalkSpeed=speed
  451. end;
  452. ["Regenerate"]=function(mouse) human.WalkSpeed=0
  453. looping=true
  454. for i=0, 1, .1 do wait()
  455. animate.Torso(CFrame.new(0, -1*i, 0))
  456. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  457. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i))
  458. animate.LegLeft(CFrame.new(0, 1*i, -1*i))
  459. animate.LegRight(CFrame.Angles(-math.rad(90)*i, 0, 0))
  460. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(180)*i), -math.rad(45)*i, 0)
  461. end
  462. while looping and human.Health<100 do wait() human.Health=human.Health+1
  463. local aura=add.Part(workspace, true, false, "Pastel light blue", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.new(0, -2, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) aura.Name="Effect"
  464. local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976"
  465. local aura2=add.Part(workspace, true, false, "Pastel light blue", .5, Vector3.new(5, 5, 5), body.Torso.CFrame*CFrame.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))*CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
  466. aura2.Name="Effect"
  467. c(function()
  468. for i=0, 3, .2 do wait()
  469. auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i)
  470. end
  471. c(function()
  472. for i=.5, 1, .1 do
  473. wait()
  474. aura.Transparency=i aura2.Transparency=i
  475. end
  476. end)
  477. aura:remove() aura2:remove()
  478. end)
  479. end
  480. for i=1, 0, -.1 do wait()
  481. animate.Torso(CFrame.new(0, -1*i, 0))
  482. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  483. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i))
  484. animate.LegLeft(CFrame.new(0, 1*i, -1*i))
  485. animate.LegRight(CFrame.Angles(-math.rad(90)*i, 0, 0))
  486. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(180)*i), -math.rad(45)*i, 0)
  487. end
  488. human.WalkSpeed=speed
  489. end;
  490. ["Ultimate"]=function()
  491. c(function()
  492. looping2=true
  493. speed=40 attackspeed=.25 dmg=dmg*1.5
  494. while looping2 and human.Health>5 do wait(.2) human.Health=human.Health-5
  495. lightningGen(body.Torso.CFrame.p, body.Torso.Position+Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)))
  496. local aura=add.Part(workspace, true, false, "Bright yellow", .5, Vector3.new(2, 2, 2), body.Torso.CFrame*CFrame.new(0, -2, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) aura.Name="Effect"
  497. local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976"
  498. c(function()
  499. for i=0, 1, .1 do wait()
  500. auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i)
  501. end
  502. c(function()
  503. for i=.5, 1, .1 do
  504. wait()
  505. aura.Transparency=i
  506. end
  507. end)
  508. aura:remove()
  509. end)
  510. end
  511. speed=32 attackspeed=.2 dmg=math.random(10, 25)
  512. keyDeb=false looping2=false
  513. end)
  514. end;
  515. }
  516.  
  517. bin.Selected:connect(function(mouse) createParts() human.WalkSpeed=speed
  518. while attacking do wait() end
  519. mouse.Button1Down:connect(doAttacks)
  520. mouse.KeyDown:connect(function(key) key=key:lower()
  521. if key=="w" then w=true onRunning() end
  522. if key=="a" then a=true onRunning() end
  523. if key=="s" then s=true onRunning() end
  524. if key=="d" then d=true onRunning() end
  525. if key=="c" and keyDeb2==false then keyDeb2=true Abilities.Dash() wait(.2) keyDeb2=false end
  526. if key==" " and keyDeb2==false then keyDeb2=true Abilities.DashJump() wait(.2) keyDeb2=false end
  527. if key=="v" and keyDeb==false then keyDeb=true Abilities.Shield(mouse) keyDeb=false end
  528. if key=="b" and keyDeb==false and human.Health<100 then keyDeb=true Abilities.Regenerate(mouse) keyDeb=false end
  529. if key=="z" and keyDeb==false and human.Health>5 then
  530. keyDeb=true
  531. Abilities.Ultimate(mouse)
  532. elseif key=="z" and keyDeb==true then
  533. keyDeb=false looping2=false
  534. end
  535. end)
  536. mouse.KeyUp:connect(function(key) key=key:lower()
  537. if key=="v" then looping=false end
  538. if key=="b" then looping=false end
  539. end)
  540. end)
  541. bin.Deselected:connect(function() removeParts() end)
  542.  
  543. --mediafire gtfo password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement