DarkScripter123

Za warudo Shadow

May 31st, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Services = setmetatable({},{__index=function(s,r) return game:service(r) end})
  2. Player = Services.Players.LocalPlayer
  3. wait()script.Parent=nil
  4. BodyParts={}
  5. abs = function(int)
  6. if int < 0 then return -int else return int end
  7. end
  8. rad = function(deg)
  9. return deg * math.pi / 180
  10. end
  11. deg = function(rad)
  12. return rad * 180 / math.pi
  13. end
  14. dist = function(p1,p2)
  15. r,e = ypcall(function()
  16. p1 = p1.Position
  17. end)
  18. if not r then p1 = p1 end
  19. r,e = ypcall(function()
  20. p2 = p2.Position
  21. end)
  22. if not r then p1 = p1 end
  23. return math.sqrt( (p2.X-p1.X)^2 + (p2.Y-p1.Y)^2 + (p2.Z-p1.Z)^2 )
  24. end
  25.  
  26. function GetChar()
  27. return Player.Character
  28. end
  29. function GetHum()
  30. for i,v in pairs(GetChar():children'') do
  31. if v.ClassName == 'Humanoid' then
  32. return v
  33. end
  34. end
  35. end
  36.  
  37. function Died()
  38. for i,v in pairs(GetChar():children'') do
  39. if v.ClassName == 'Part' then
  40. table.insert(BodyParts,{v.CFrame,v})
  41. elseif v.ClassName == 'Hat' then
  42. v.Parent=workspace
  43. table.insert(BodyParts,{v.Handle.CFrame,v.Handle,1})
  44. end
  45. end
  46.  
  47. wait(3)
  48. for i,v in pairs(BodyParts) do
  49. v[2].Anchored=true
  50. if v[2].Name == 'Torso' then pos = v[1] end
  51. end
  52.  
  53. for i,v in pairs(BodyParts) do
  54. coroutine.resume(coroutine.create(function()
  55. repeat Services.RunService.Heartbeat:wait()
  56. v[2].CFrame = v[2].CFrame:lerp(v[1],.1)
  57. until dist(v[2],v[1]) < .05
  58. v[2].CFrame=v[1]
  59. end))
  60. end
  61. end
  62.  
  63. Player.CharacterAdded:connect(function(char)
  64. char:WaitForChild('Torso')
  65. for i,v in pairs(BodyParts) do
  66. if v[3] then
  67. v[2]:Remove()
  68. end
  69. end
  70. BodyParts={}
  71. char.Torso.CFrame=pos or CFrame.new(0,12,0)
  72. GetHum().Died:connect(Died)
  73. end)
  74. GetHum().Died:connect(Died)
  75. print'rannering'
  76.  
  77. --[[
  78. Stand: The World
  79. User: DIO
  80. ]]
  81.  
  82. ---Declarations
  83. local Cn=CFrame.new
  84. local CA=CFrame.Angles
  85. local mr=math.rad
  86. local rn=math.random
  87. local mc=math.cos
  88. local Vn=Vector3.new
  89. local NR=NumberRange.new
  90. local NSeq=NumberSequence.new
  91. local plrs=game:service"Players"
  92. local wrk=game:service"Workspace"
  93. local deb=game:service"Debris"
  94. local IS=game:GetService("InsertService")
  95. local p=plrs.LocalPlayer
  96. local cam=wrk.CurrentCamera
  97. local char=p.Character
  98. local mouse=p:GetMouse()
  99. local lam=char["Left Arm"]
  100. local ram=char["Right Arm"]
  101. local llg=char["Left Leg"]
  102. local rlg=char["Right Leg"]
  103. local hed=char.Head
  104. local tor=char.Torso
  105. local larm = lam
  106. local rarm = ram
  107. local lleg = llg
  108. local rleg = rlg
  109. local torso = tor
  110. local hrp=char.HumanoidRootPart
  111. local PlayerSpeed = char.Humanoid.WalkSpeed
  112. local on=false
  113. local noRig=false
  114. local curws=16
  115. local sine=0
  116. local ift={}
  117. local ifxd=false
  118. local run=false
  119. local stance="Cane"
  120. local Speed = 16
  121. local Health = 9000
  122.  
  123. PlayerSpeed = 16
  124.  
  125. ypcall(function()
  126. char.Shirt:Destroy()
  127. char.Pants:Destroy()
  128. shirt = Instance.new("Shirt", char)
  129. shirt.Name = "Shirt"
  130. pants = Instance.new("Pants", char)
  131. pants.Name = "Pants"
  132. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=298260655"
  133. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=298260668"
  134. end)
  135.  
  136. Debounces = {
  137. CanAttack = true;
  138. NoIdl = false;
  139. Slashing = false;
  140. Slashed = false;
  141. RPunch = false;
  142. RPunched = false;
  143. LPunch = false;
  144. LPunched = false;
  145. }
  146.  
  147. local trappedTorsos = {}
  148.  
  149. ---Functions
  150.  
  151. function FndHm(flnm)
  152. for i,v in pairs(flnm:GetChildren()) do
  153. if v:IsA("Humanoid") then
  154. return v
  155. end
  156. end
  157. end
  158. local hum=FndHm(char)
  159. --hum.Name=""
  160.  
  161.  
  162. function chrDes(inst)
  163. local ret=nil
  164. for _,v in pairs(game.Players:GetChildren()) do
  165. if inst:IsDescendantOf(v) then
  166. ret=v
  167. break
  168. end
  169. end
  170. return ret
  171. end
  172.  
  173. --
  174. function get(a)
  175. local cont={}
  176. for i,v in pairs(a:GetChildren()) do
  177. if v==char then
  178. else
  179. table.insert(cont,v)
  180. pcall(function()
  181. for _,b in pairs(get(v)) do
  182. table.insert(cont,b)
  183. end
  184. end)
  185. end
  186. end
  187. return cont
  188. end
  189. for _,v in pairs(get(game.Workspace)) do
  190. if v:IsA("Sparkles") or v:IsA("Fire") then
  191. v:Destroy()
  192. end
  193. end
  194.  
  195. --
  196. function inT(qur,tbl)
  197. local a=false
  198. for i,v in pairs(tbl) do
  199. if v==qur then
  200. a=true
  201. break
  202. else
  203. a=false
  204. end
  205. end
  206. return a
  207. end
  208.  
  209. --
  210. function Tween(a,b,c)
  211. return a+(b-a)*c
  212. end
  213.  
  214. --
  215. function Avg(a,b)
  216. return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
  217. end
  218.  
  219. --
  220. function Lerp(c1,c2,tim)
  221. local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()}
  222. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  223. for i,v in pairs(com1) do
  224. com1[i]=v+(com2[i]-v)*tim
  225. end
  226. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  227. end
  228.  
  229. function RLerp(c1,c2,tim)
  230. return c1:lerp(c2,tim)
  231. end
  232.  
  233. --
  234. function ALerp(c1,c2,tim)
  235. local com1={c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  236. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  237. for i,v in pairs(com1) do
  238. com1[i]=v+(com2[i]-v)*tim
  239. end
  240. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  241. end
  242.  
  243. --
  244. function Lerprs(ud,ud2,al)
  245. local a,b,c,d=ud.X.Scale,ud.X.Offset,ud.Y.Scale,ud.Y.Offset
  246. local a2,b2,c2,d2=ud2.X.Scale,ud2.X.Offset,ud2.Y.Scale,ud2.Y.Offset
  247. local x,y,z,w=(a+(a2-a)*al),(b+(b2-b)*al),(c+(c2-c)*al),(d+(d2-d)*al)
  248. return UDim2.new(x,y,z,w)
  249. end
  250.  
  251. --
  252. function newAnim(wld)
  253. local asd={["Weld"]=wld;["Int"]=0;["Frame"]=1;}
  254. asd.getFrames=function()
  255. local num=0
  256. for _,v in pairs(asd) do
  257. pcall(function()
  258. num=num+v.Length
  259. end)
  260. end
  261. return num
  262. end
  263. return asd
  264. end
  265.  
  266. --
  267. function newKF(tab,c0,lng,off)
  268. off=off or 1
  269. table.insert(tab,{["C0"]=c0,["Length"]=lng,["Offset"]=off})
  270. end
  271.  
  272. --
  273. function runKF(tab)
  274. tab.Int=tab.Int+1
  275. if tab.Int>=tab[tab.Frame].Length then
  276. tab.Frame=tab.Frame+1
  277. tab.Int=0
  278. if tab.Frame>#tab then
  279. tab.Frame=1
  280. end
  281. end
  282. tab.Weld.C0=RLerp(tab.Weld.C0,tab[tab.Frame].C0,(tab[tab.Frame].Offset/tab[tab.Frame].Length)*tab.Int)
  283. end
  284.  
  285. --
  286. function nwPrt(prnt,siz,cf,col)
  287. local prt=Instance.new("Part")
  288. prt.Parent=prnt
  289. prt.FormFactor=3
  290. prt.Name="Part"
  291. prt.Size=siz
  292. prt.CanCollide=false
  293. prt.Anchored=true
  294. prt.Locked=true
  295. prt.TopSurface=10
  296. prt.BottomSurface=10
  297. prt.FrontSurface=10
  298. prt.BackSurface=10
  299. prt.LeftSurface=10
  300. prt.RightSurface=10
  301. prt:BreakJoints()
  302. prt.CFrame=cf or CFrame.new(30,10,30)
  303. prt.Material="SmoothPlastic"
  304. prt.BrickColor=BrickColor.new(col)
  305. m=Instance.new("SpecialMesh",prt)
  306. m.MeshType=6
  307. return prt
  308. end
  309.  
  310. --
  311. function nwWdg(prnt,siz,cf,col)
  312. local prt=Instance.new("WedgePart")
  313. prt.Parent=prnt
  314. prt.FormFactor=3
  315. prt.Name="Part"
  316. prt.Size=siz
  317. prt.CanCollide=false
  318. prt.Anchored=false
  319. prt.Locked=true
  320. prt.TopSurface=0
  321. prt.BottomSurface=0
  322. prt:BreakJoints()
  323. prt.CFrame=cf or CFrame.new(30,10,30)
  324. prt.Material="SmoothPlastic"
  325. prt.BrickColor=BrickColor.new(col)
  326. return prt
  327. end
  328.  
  329. --
  330. function newGui(prnt,clsnm,siz,pos,bsp,bc,bt)
  331. local gui=Instance.new(clsnm,prnt)
  332. gui.Size=siz or UDim2.new(0,100,0,100)
  333. gui.Position=pos or UDim2.new(0,0,0,0)
  334. gui.BorderSizePixel=bsp or 0
  335. gui.BackgroundColor3=bc or Color3.new(0,0,0)
  336. gui.BackgroundTransparency=bt or 1
  337. return gui
  338. end
  339.  
  340. --
  341. function nwWld(wp0,wp1,wc0)
  342. wld = Instance.new("Weld",wp1)
  343. wld.Part0=wp0
  344. wld.Part1=wp1
  345. wld.C0=wc0 or Cn(0,0,0)
  346. return wld
  347. end
  348.  
  349. --
  350. function nwSnd(prnt,pch,vol,id)
  351. local s=Instance.new("Sound",prnt)
  352. s.Pitch=pch
  353. s.Volume=vol
  354. s.SoundId="rbxassetid://"..id
  355. s.PlayOnRemove=true
  356. return s
  357. end
  358.  
  359. --
  360. function newRay(start,face,range,wat)
  361. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  362. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  363. return rey,hit,pos
  364. end
  365.  
  366. function nooutline(part)
  367. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  368. end
  369.  
  370. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  371. local fp=it("Part")
  372. fp.formFactor=formfactor
  373. fp.Parent=parent
  374. fp.Reflectance=reflectance
  375. fp.Transparency=transparency
  376. fp.CanCollide=false
  377. fp.Locked=true
  378. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  379. fp.Name=name
  380. fp.Size=size
  381. fp.Position=Character.Torso.Position
  382. nooutline(fp)
  383. fp.Material=material
  384. fp:BreakJoints()
  385. return fp
  386. end
  387.  
  388. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  389. local mesh=it(Mesh)
  390. mesh.Parent=part
  391. if Mesh=="SpecialMesh" then
  392. mesh.MeshType=meshtype
  393. mesh.MeshId=meshid
  394. end
  395. mesh.Offset=offset
  396. mesh.Scale=scale
  397. return mesh
  398. end
  399.  
  400. function weld(parent,part0,part1,c0,c1)
  401. local weld=it("Weld")
  402. weld.Parent=parent
  403. weld.Part0=part0
  404. weld.Part1=part1
  405. weld.C0=c0
  406. weld.C1=c1
  407. return weld
  408. end
  409. TfwTimeStopped = false
  410. function Damagefunc(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  411. if hit.Parent==nil then
  412. return
  413. end
  414. h=hit.Parent:FindFirstChild("Humanoid")
  415. for _,v in pairs(hit.Parent:children()) do
  416. if v:IsA("Humanoid") then
  417. h=v
  418. end
  419. end
  420. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  421. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  422. end
  423. if hit.Parent.className=="Hat" then
  424. hit=hit.Parent.Parent:findFirstChild("Head")
  425. end
  426. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  427. if hit.Parent:findFirstChild("DebounceHit")~=nil then
  428. if hit.Parent.DebounceHit.Value==true then
  429. return
  430. end
  431. end
  432. --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  433. return
  434. end]]
  435. --hs(hit,1.2)
  436. c=Instance.new("ObjectValue")
  437. c.Name="creator"
  438. c.Value=game:service("Players").LocalPlayer
  439. c.Parent=h
  440. game:GetService("Debris"):AddItem(c,.5)
  441. Damage=math.random(minim,maxim)
  442. --h:TakeDamage(Damage)
  443. blocked=false
  444. block=hit.Parent:findFirstChild("Block")
  445. if block~=nil then
  446. print(block.className)
  447. if block.className=="NumberValue" then
  448. if block.Value>0 then
  449. blocked=true
  450. if decreaseblock==nil then
  451. block.Value=block.Value-1
  452. end
  453. end
  454. end
  455. if block.className=="IntValue" then
  456. if block.Value>0 then
  457. blocked=true
  458. if decreaseblock~=nil then
  459. block.Value=block.Value-1
  460. end
  461. end
  462. end
  463. end
  464. if blocked==false then
  465. --h:TakeDamage(Damage)
  466. if TfwTimeStopped == false then
  467. h.Health=h.Health-Damage
  468. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  469. elseif TfwTimeStopped == true then
  470. repeat wait() until TfwTimeStopped == false
  471. h.Health=h.Health-0.1
  472. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  473. end
  474. else
  475. h.Health=h.Health-(Damage/2)
  476. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  477. end
  478. if Type=="Knockdown" then
  479. hum=hit.Parent.Humanoid
  480. hum.PlatformStand=true
  481. coroutine.resume(coroutine.create(function(HHumanoid)
  482. swait(1)
  483. HHumanoid.PlatformStand=false
  484. end),hum)
  485. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  486. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  487. local bodvol=Instance.new("BodyVelocity")
  488. bodvol.velocity=angle*knockback
  489. bodvol.P=500
  490. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  491. bodvol.Parent=hit
  492. game:GetService("Debris"):AddItem(bodvol,.5)
  493. game:GetService("Debris"):AddItem(rl,.5)
  494. elseif Type == "Killer Queen" then
  495. hum=hit.Parent.Humanoid
  496. hum.PlatformStand=true
  497. coroutine.resume(coroutine.create(function(HHumanoid)
  498. swait(1)
  499. HHumanoid.PlatformStand=false
  500. end),hum)
  501. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  502. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  503. local bodvol=Instance.new("BodyVelocity")
  504. bodvol.velocity=angle*knockback
  505. bodvol.P=500
  506. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  507. bodvol.Parent=hit
  508. game:GetService("Debris"):AddItem(bodvol,.5)
  509. game:GetService("Debris"):AddItem(rl,.5)
  510. wait(3)
  511.  
  512. elseif Type=="Normal" then
  513. vp=Instance.new("BodyVelocity")
  514. vp.P=500
  515. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  516. --vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  517. if KnockbackType==1 then
  518. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  519. elseif KnockbackType==2 then
  520. vp.velocity=Property.CFrame.lookVector*knockback
  521. end
  522. if knockback>0 then
  523. vp.Parent=hit.Parent.Torso
  524. end
  525. game:GetService("Debris"):AddItem(vp,.5)
  526. elseif Type=="Up" then
  527. local bodyVelocity=Instance.new("BodyVelocity")
  528. bodyVelocity.velocity=vt(0,60,0)
  529. bodyVelocity.P=5000
  530. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  531. bodyVelocity.Parent=hit
  532. game:GetService("Debris"):AddItem(bodyVelocity,1)
  533. rl=Instance.new("BodyAngularVelocity")
  534. rl.P=3000
  535. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  536. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  537. rl.Parent=hit
  538. game:GetService("Debris"):AddItem(rl,.5)
  539. elseif Type=="Snare" then
  540. bp=Instance.new("BodyPosition")
  541. bp.P=2000
  542. bp.D=100
  543. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  544. bp.position=hit.Parent.Torso.Position
  545. bp.Parent=hit.Parent.Torso
  546. game:GetService("Debris"):AddItem(bp,1)
  547. elseif Type=="Target" then
  548. local Targetting = false
  549. if Targetting==false then
  550. ZTarget=hit.Parent.Torso
  551. coroutine.resume(coroutine.create(function(Part)
  552. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  553. swait(5)
  554. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  555. end),ZTarget)
  556. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  557. local targetgui=Instance.new("BillboardGui")
  558. targetgui.Parent=ZTarget
  559. targetgui.Size=UDim2.new(10,100,10,100)
  560. local targ=Instance.new("ImageLabel")
  561. targ.Parent=targetgui
  562. targ.BackgroundTransparency=1
  563. targ.Image="rbxassetid://4834067"
  564. targ.Size=UDim2.new(1,0,1,0)
  565. cam.CameraType="Scriptable"
  566. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  567. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  568. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  569. Targetting=true
  570. RocketTarget=ZTarget
  571. for i=1,Property do
  572. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  573. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  574. swait()
  575. end
  576. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  577. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  578. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  579. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  580. end
  581. Targetting=false
  582. RocketTarget=nil
  583. targetgui.Parent=nil
  584. cam.CameraType="Custom"
  585. end
  586. end
  587. local debounce=Instance.new("BoolValue")
  588. debounce.Name="DebounceHit"
  589. debounce.Parent=hit.Parent
  590. debounce.Value=true
  591. game:GetService("Debris"):AddItem(debounce,Delay)
  592. c=Instance.new("ObjectValue")
  593. c.Name="creator"
  594. c.Value=Player
  595. c.Parent=h
  596. game:GetService("Debris"):AddItem(c,.5)
  597. end
  598. end
  599.  
  600. function ShowDamage(Pos, Text, Time, Color)
  601. local Rate = (1 / 30)
  602. local Pos = (Pos or Vector3.new(0, 0, 0))
  603. local Text = (Text or "")
  604. local Time = (Time or 2)
  605. local Color = (Color or Color3.new(1, 0, 0))
  606. local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  607. EffectPart.Anchored = true
  608. local BillboardGui = Instance.new("BillboardGui")
  609. BillboardGui.Size = UDim2.new(3, 3, 3, 3)
  610. BillboardGui.Adornee = EffectPart
  611. local TextLabel = Instance.new("TextLabel")
  612. TextLabel.BackgroundTransparency = 1
  613. TextLabel.Size = UDim2.new(3, 3, 3, 3)
  614. TextLabel.Text = Text
  615. TextLabel.TextColor3 = Color
  616. TextLabel.TextStrokeColor3 = BrickColor.new("Really black").Color
  617. TextLabel.TextScaled = true
  618. TextLabel.TextStrokeTransparency = 0
  619. TextLabel.Font = Enum.Font.SourceSansBold
  620. TextLabel.Parent = BillboardGui
  621. BillboardGui.Parent = EffectPart
  622. game.Debris:AddItem(EffectPart, (Time + 0.1))
  623. EffectPart.Parent = game:GetService("Workspace")
  624. Delay(0, function()
  625. local Frames = (Time / Rate)
  626. for Frame = 1, Frames do
  627. wait(Rate)
  628. local Percent = (Frame / Frames)
  629. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  630. TextLabel.TextTransparency = Percent
  631. TextLabel.TextStrokeTransparency = Percent
  632. end
  633. if EffectPart and EffectPart.Parent then
  634. EffectPart:Destroy()
  635. end
  636. end)
  637. end
  638.  
  639. --[[local Player = game:service("Players").LocalPlayer
  640. repeat wait() until Player.Character ~= nil
  641.  
  642. local Char = Player.Character
  643. local mouse = Player:GetMouse()
  644. local Backpack = Player.Backpack
  645. local PlayerGui = Player.PlayerGui
  646. local Camera = workspace.CurrentCamera
  647. local Humanoid = Char:findFirstChild("Humanoid")
  648. local Torso = Char:findFirstChild("Torso")
  649. local Head = Char:findFirstChild("Head")
  650. local ra = Char:findFirstChild("Right Arm")
  651. local la = Char:findFirstChild("Left Arm")
  652. local rl = Char:findFirstChild("Right Leg")
  653. local ll = Char:findFirstChild("Left Leg")
  654. local rs = Torso:findFirstChild("Right Shoulder")
  655. local ls = Torso:findFirstChild("Left Shoulder")
  656. local rh = Torso:findFirstChild("Right Hip")
  657. local lh = Torso:findFirstChild("Left Hip")
  658. local neck = Torso:findFirstChild("Neck")
  659. local rootpart = Char:findFirstChild("HumanoidRootPart")
  660. local rj = rootpart:findFirstChild("RootJoint")
  661. local anim = Char:findFirstChild("Animate")
  662. local RunService = game:GetService("RunService")
  663. local UIA = game:GetService("UserInputService")
  664. local CF = CFrame.new
  665. local CA = CFrame.Angles
  666. local FEA = CFrame.fromEulerAnglesXYZ
  667. local FAA = CFrame.fromAxisAngle
  668. local V3 = Vector3.new
  669. local CN = Color3.new
  670. local Ice = Instance.new
  671. local BC = BrickColor.new
  672. local UD2 = UDim2.new
  673. local C3 = Color3.new
  674. local MR = math.rad
  675. local MP = math.pi
  676. local MD = math.deg
  677. local MH = math.huge
  678. local MS = math.sin
  679. local MC = math.cos
  680. local MT = math.tan
  681. local MAS = math.asin
  682. local MAC = math.acos
  683. local MAT = math.atan
  684. local components = CF().components
  685.  
  686. local State = {}
  687. State["Calm"] = "Active"
  688.  
  689. function Tweenz(a,b,i)
  690. return a:lerp(b,i)
  691. end
  692.  
  693. function Create(Instanc,prop)
  694. local p=Instance.new(Instanc)
  695. for i,v in pairs(prop) do
  696. p[i]=v
  697. end
  698. return p
  699. end
  700.  
  701. local c0 = {
  702. RightArm = CF(1.5,0.5,0),
  703. LeftArm = CF(-1.5,0.5,0),
  704. RightLeg = CF(0.5,-1,0),
  705. LeftLeg = CF(-0.5,-1,0),
  706. RootJoint = CF(0,0,0),
  707. Neck = CF(0,1,0)
  708. }
  709. local c1 = {
  710. RightArm = CF(0,0.5,0),
  711. LeftArm = CF(0,0.5,0),
  712. RightLeg = CF(0,1,0),
  713. LeftLeg = CF(0,1,0),
  714. RootJoint = CF(0,0,0),
  715. Neck = CF(0,-0.5,0)
  716. }
  717.  
  718.  
  719. --RightArm = Create("Snap",{Parent=Torso,C0=c0.RightArm,C1=c1.RightArm,Part0=Torso,Part1=ra})
  720. --LeftArm = Create("Snap",{Parent=Torso,C0=c0.LeftArm,C1=c1.LeftArm,Part0=Torso,Part1=la})
  721. RightLeg = Create("Snap",{Parent=Torso,C0=c0.RightLeg,C1=c1.RightLeg,Part0=Torso,Part1=rl})
  722. LeftLeg = Create("Snap",{Parent=Torso,C0=c0.LeftLeg,C1=c1.LeftLeg,Part0=Torso,Part1=ll})
  723.  
  724. neck.C0 = c0.Neck
  725. neck.C1 = c1.Neck
  726.  
  727. local Spread = 12
  728. local Smooth = 1
  729.  
  730. local angle = tick()
  731. game:GetService("RunService").Stepped:connect(function()
  732. local lefth = (Torso.CFrame*c0.LeftLeg)
  733. local righth = (Torso.CFrame*c0.RightLeg)
  734. angle = angle+0.2*Smooth
  735. local speed = V3(Torso.Velocity.X,0,Torso.Velocity.Z)
  736. local TiltOnAxis = (rootpart.CFrame-rootpart.CFrame.p):inverse()*speed/100
  737. rj.C0 = Tweenz(rj.C0,CFrame.Angles(MR(-90)+TiltOnAxis.Z,TiltOnAxis.X,MR(180)+-TiltOnAxis.X),.1)
  738. --[[local offset = CFrame.new(0,5,0)
  739. rj.C0 = CF(V3(),(mouse.hit.p-rootpart.CFrame.p).unit*100)*CFrame.Angles(MR(-90),0,MR(180))
  740. local h = (rootpart.CFrame*offset).p
  741. local d = CFrame.new(h,mouse.Hit.p)
  742. local e = rootpart.CFrame*CFrame.new(h)
  743. neck.C0 = ((d-d.p):inverse()*(e-e.p)):inverse()*CFrame.new(0,1,0)]]
  744. --[[local AnglePR = (righth-righth.p):inverse()*speed/100
  745. local AnglePL = (lefth-lefth.p):inverse()*speed/100
  746. if speed.magnitude < 2 then
  747. --RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(0,0,0),.1)
  748. --LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(0,0,0),.1)
  749. elseif speed.magnitude > 2 then
  750. RightLeg.C0 = Tweenz(RightLeg.C0,CF(0.5,-1+math.cos(angle)*.5,-0.2+-math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*-AnglePR.Z,AnglePR.X,math.sin(angle)*Spread*AnglePR.X),.1)
  751. LeftLeg.C0 = Tweenz(LeftLeg.C0,CF(-0.5,-1+-math.cos(angle)*.5,-0.2+math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,AnglePL.X,math.sin(angle)*Spread*-AnglePL.X),.1)
  752. --RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,0,0),.1)
  753. --LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(-math.sin(angle)*Spread*AnglePL.Z,0,0),.1)
  754. end
  755. end)
  756. ]]--
  757. Player = p
  758. workspace[Player.Name].Archivable=true
  759. pchar = workspace[Player.Name]:Clone() --Create("Model",{Parent=workspace})
  760. pchar.Parent=workspace[Player.Name]
  761. torso=pchar.Torso
  762. humane=pchar.Humanoid
  763. pchar.Name= "Za Warudo"
  764. pl=pchar
  765. humane.MaxHealth=Health
  766. wait()
  767. humane.Health=Health
  768. humane.WalkSpeed=Speed
  769.  
  770. ---Weld
  771.  
  772. local law=nwWld(tor,lam,Cn(-1.5,0.5,0))
  773. law.C1=CFrame.new(0,0.5,0)
  774. local raw=nwWld(tor,ram,Cn(1.5,0.5,0))
  775. raw.C1=CFrame.new(0,0.5,0)
  776. local hew=nwWld(tor,hed,Cn(0,1.5,0))
  777. local llw=nwWld(tor,llg,Cn(-0.5,-1,0))
  778. llw.C1=CFrame.new(0,1,0)
  779. local rlw=nwWld(tor,rlg,Cn(0.5,-1,0))
  780. rlw.C1=CFrame.new(0,1,0)
  781. local tow=nwWld(hrp,tor,Cn(0,-1,0))
  782. tow.C1=CFrame.new(0,-1,0)
  783.  
  784. local hrp2 = pchar.HumanoidRootPart
  785. local tor2 = torso
  786. local hed2 = pchar.Head
  787. local lam2=pchar["Left Arm"]
  788. local ram2=pchar["Right Arm"]
  789. local llg2=pchar["Left Leg"]
  790. local rlg2=pchar["Right Leg"]
  791.  
  792. local law2=nwWld(tor2,lam2,Cn(-1.5,0.5,0))
  793. law2.C1=CFrame.new(0,0.5,0)
  794. local raw2=nwWld(tor2,ram2,Cn(1.5,0.5,0))
  795. raw2.C1=CFrame.new(0,0.5,0)
  796. local hew2=nwWld(torso,hed2,Cn(0,1.5,0))
  797. local llw2=nwWld(torso,llg2,Cn(-0.5,-1,0))
  798. llw2.C1=CFrame.new(0,1,0)
  799. local rlw2=nwWld(tor2,rlg2,Cn(0.5,-1,0))
  800. rlw2.C1=CFrame.new(0,1,0)
  801. local tow2=nwWld(hrp2,tor2,Cn(0,-1,0))
  802. tow2.C1=CFrame.new(0,-1,0)
  803.  
  804.  
  805. local laD=CFrame.new(-1.5,0.5,0)
  806. local raD=CFrame.new(1.5,0.5,0)
  807. local hD=CFrame.new(0,1.5,0)
  808. local tD=CFrame.new(0,-1,0)
  809. local llD=CFrame.new(-0.5,-1,0)
  810. local rlD=CFrame.new(0.5,-1,0)
  811.  
  812. ---Build
  813.  
  814. ---Animations
  815.  
  816. --Idle
  817. local heid=newAnim(hew)
  818. newKF(heid,hD*CA(mr(-15.5),0,0),50,0.3)
  819. newKF(heid,hD*CA(mr(-14),0,0),40,0.3)
  820. local toid=newAnim(tow)
  821. newKF(toid,tD*Cn(0,-0.0125,0)*CA(mr(16),0,0),50,0.3)
  822. newKF(toid,tD*Cn(0,0.0125,0)*CA(mr(15),0,0),40,0.3)
  823. local laid=newAnim(law)
  824. newKF(laid,laD*Cn(1,0.0125,-0.764)*CA(mr(80),0,mr(85)),50,0.3)
  825. newKF(laid,laD*Cn(1,-0.0125,-0.764)*CA(mr(70),0,mr(85)),40,0.3)
  826. local raid=newAnim(raw)
  827. newKF(raid,raD*Cn(-1,-0.0125,-0.764)*CA(mr(80),0,mr(-85)),50,0.3)
  828. newKF(raid,raD*Cn(-1,0.0125,-0.764)*CA(mr(70),0,mr(-85)),40,0.3)
  829. local llid=newAnim(llw)
  830. newKF(llid,llD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3)
  831. newKF(llid,llD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3)
  832. local rlid=newAnim(rlw)
  833. newKF(rlid,rlD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3)
  834. newKF(rlid,rlD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3)
  835.  
  836. local heid2=newAnim(hew2)
  837. newKF(heid2,hD*CA(mr(16),0,0),40,0.3)
  838. newKF(heid2,hD*CA(mr(14),0,0),40,0.3)
  839. local toid2=newAnim(tow2)
  840. newKF(toid2,tD*Cn(0,0.5,3)*CA(mr(0),0,0),50,1)
  841. newKF(toid2,tD*Cn(0,1,3)*CA(mr(0),0,0),40,1)
  842. local laid2=newAnim(law2)
  843. newKF(laid2,laD*Cn(0.5,0.0125,-1)*CA(mr(20),mr(50),mr(20)),50,0.3)
  844. newKF(laid2,laD*Cn(0.5,-0.0125,-1)*CA(mr(20),mr(50),mr(20)),40,0.3)
  845. local raid2=newAnim(raw2)
  846. newKF(raid2,raD*Cn(-0.5,-0.0125,-1)*CA(mr(20),mr(-50),mr(-20)),50,0.3)
  847. newKF(raid2,raD*Cn(-0.5,0.0125,-1)*CA(mr(20),mr(-50),mr(-20)),40,0.3)
  848. local llid2=newAnim(llw2)
  849. newKF(llid2,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
  850. newKF(llid2,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
  851. local rlid2=newAnim(rlw2)
  852. newKF(rlid2,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
  853. newKF(rlid2,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
  854.  
  855. --Walk
  856. local hewk=newAnim(hew)
  857. newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4)
  858. newKF(hewk,hD*CA(mr(-5),mr(-3),0),13,0.4)
  859. newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4)
  860. newKF(hewk,hD*CA(mr(-5),mr(3),0),13,0.4)
  861. local towk=newAnim(tow)
  862. newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
  863. newKF(towk,tD*CA(mr(15),mr(5),0),13,0.4)
  864. newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
  865. newKF(towk,tD*CA(mr(15),mr(-5),0),13,0.4)
  866. local lawk=newAnim(law)
  867. newKF(lawk,laD*CA(mr(30),0,0),25,0.4)
  868. newKF(lawk,laD*CA(mr(-30),0,0),25,0.4)
  869. local rawk=newAnim(raw)
  870. newKF(rawk,raD*CA(mr(-30),0,0),25,0.4)
  871. newKF(rawk,raD*CA(mr(30),0,0),25,0.4)
  872. local llwk=newAnim(llw)
  873. newKF(llwk,llD*CA(mr(-40),mr(-10),mr(-2)),25,0.4)
  874. newKF(llwk,llD*Cn(0,0.3,0)*CA(mr(-5),0,mr(-3)),12,0.4)
  875. newKF(llwk,llD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(10),mr(-3)),13,0.4)
  876. local rlwk=newAnim(rlw)
  877. newKF(rlwk,rlD*Cn(0,0.3,0)*CA(mr(-5),0,mr(3)),12,0.4)
  878. newKF(rlwk,rlD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(-10),mr(3)),13,0.4)
  879. newKF(rlwk,rlD*CA(mr(-40),mr(10),mr(2)),25,0.4)
  880.  
  881. --Sprint
  882. local hesp=newAnim(hew)
  883. newKF(hesp,hD*CA(mr(5),mr(-10),0),10,0.2)
  884. newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
  885. newKF(hesp,hD*CA(mr(5),mr(10),0),10,0.2)
  886. newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
  887. local tosp=newAnim(tow)
  888. newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(10),0),10,0.4)
  889. newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
  890. newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(-10),0),10,0.4)
  891. newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
  892. local lasp=newAnim(law)
  893. newKF(lasp,laD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
  894. newKF(lasp,laD*CA(mr(-40),0,0),20,0.4)
  895. local rasp=newAnim(raw)
  896. newKF(rasp,raD*CA(mr(-40),0,0),20,0.4)
  897. newKF(rasp,raD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
  898. local llsp=newAnim(llw)
  899. newKF(llsp,llD*CA(mr(-50),mr(-10),mr(-2)),20,0.4)
  900. newKF(llsp,llD*Cn(0,0.5,0)*CA(mr(15),0,mr(-3)),10,0.4)
  901. newKF(llsp,llD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(10),mr(-3)),10,0.4)
  902. local rlsp=newAnim(rlw)
  903. newKF(rlsp,rlD*Cn(0,0.3,0)*CA(mr(15),0,mr(3)),10,0.4)
  904. newKF(rlsp,rlD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(-10),mr(3)),10,0.4)
  905. newKF(rlsp,rlD*CA(mr(-50),mr(10),mr(2)),20,0.4)
  906.  
  907. --Freefall
  908. local heff=newAnim(hew)
  909. newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
  910. newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
  911. local toff=newAnim(tow)
  912. newKF(toff,tD*CA(mr(10),0,0),8,0.6)
  913. newKF(toff,tD*CA(mr(10),0,0),8,0.6)
  914. local laff=newAnim(law)
  915. newKF(laff,laD*CA(mr(140),0,0),16,0.4)
  916. newKF(laff,laD*CA(mr(140),0,0),16,0.4)
  917. local raff=newAnim(raw)
  918. newKF(raff,raD*CA(mr(140),0,0),16,0.4)
  919. newKF(raff,raD*CA(mr(140),0,0),16,0.4)
  920. local llff=newAnim(llw)
  921. newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
  922. newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
  923. local rlff=newAnim(rlw)
  924. newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
  925. newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
  926.  
  927. --Time Has Stopped
  928. local hesp2=newAnim(hew)
  929. newKF(hesp2,hD*CA(mr(-30),mr(0),mr(0)),10,0.5)
  930. local tosp2=newAnim(tow)
  931. newKF(tosp2,tD*Cn(0,0,0)*CA(mr(30),mr(0),mr(0)),10,0.5)
  932. local lasp2=newAnim(law)
  933. newKF(lasp2,laD*CA(mr(90),mr(0),mr(-60)),20,1.5)
  934. local rasp2=newAnim(raw)
  935. newKF(rasp2,raD*CA(mr(90),mr(0),mr(60)),20,1.5)
  936. local llsp2=newAnim(llw)
  937. newKF(llsp2,llD*Cn(0,0,0)*CA(mr(-30),mr(0),mr(0)),20,0.5)
  938. local rlsp2=newAnim(rlw)
  939. newKF(rlsp2,rlD*Cn(0,0,0)*CA(mr(-30),0,mr(0)),10,0.5)
  940.  
  941. local hesp3=newAnim(hew2)
  942. newKF(hesp3,hD*CA(mr(-15),mr(0),mr(0)),50,0.2)
  943. local tosp3=newAnim(tow2)
  944. newKF(tosp3,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),50,0.4)
  945. local lasp3=newAnim(law2)
  946. newKF(lasp3,laD*CA(mr(80),mr(0),mr(65)),30,0.4)
  947. newKF(lasp3,laD*CA(mr(120),mr(0),mr(-60)),50,0.4)
  948. local rasp3=newAnim(raw2)
  949. newKF(rasp3,raD*CA(mr(80),mr(0),mr(-65)),30,0.4)
  950. newKF(rasp3,raD*CA(mr(120),mr(0),mr(60)),50,0.4)
  951. local llsp3=newAnim(llw2)
  952. newKF(llsp3,llD*CA(mr(0),mr(0),mr(1.5)),50,0.4)
  953. local rlsp3=newAnim(rlw2)
  954. newKF(rlsp3,rlD*CA(mr(0),mr(0),mr(-1.5)),50,0.4)
  955.  
  956. local hesp4=newAnim(hew2)
  957. newKF(hesp4,hD*CA(mr(-10),mr(0),mr(0)),10,0.2)
  958. local tosp4=newAnim(tow2)
  959. newKF(tosp4,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),10,0.4)
  960. local lasp4=newAnim(law2)
  961. newKF(lasp4,laD*CA(mr(120),mr(0),mr(-60)),20,0.4)
  962. local rasp4=newAnim(raw2)
  963. newKF(rasp4,raD*CA(mr(120),mr(0),mr(60)),20,0.4)
  964. local llsp4=newAnim(llw2)
  965. newKF(llsp4,llD*CA(mr(0),mr(0),mr(1.5)),20,0.4)
  966. local rlsp4=newAnim(rlw2)
  967. newKF(rlsp4,rlD*CA(mr(0),mr(0),mr(-1.5)),10,0.4)
  968.  
  969. --Let time flow again
  970. local hetoki=newAnim(hew)
  971. newKF(hetoki,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
  972. local totoki=newAnim(tow)
  973. newKF(totoki,tD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
  974. local latoki=newAnim(law)
  975. newKF(latoki,laD*Cn(0,-0.1,-0.2)*CA(mr(0),mr(0),mr(0)),20,0.4)
  976. local ratoki=newAnim(raw)
  977. newKF(ratoki,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
  978. local lltoki=newAnim(llw)
  979. newKF(lltoki,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
  980. local rltoki=newAnim(rlw)
  981. newKF(rltoki,rlD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
  982. --//Example of Keyframe
  983. --[[
  984. local hesp2=newAnim(hew)
  985. newKF(hesp2,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
  986. local tosp2=newAnim(tow)
  987. newKF(tosp2,tD*CA(mr(0),mr(0),mr(0)),10,0.4)
  988. local lasp2=newAnim(law)
  989. newKF(lasp2,laD*CA(mr(0),mr(0),mr(0)),20,0.4)
  990. local rasp2=newAnim(raw)
  991. newKF(rasp2,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
  992. local llsp2=newAnim(llw)
  993. newKF(llsp2,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
  994. local rlsp2=newAnim(rlw)
  995. newKF(rlsp2,rlD*CA(mr(0),mr(0),mr(0)),10,0.4)
  996. ]]
  997. function onDamage(Part)
  998. if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then
  999. Part.Anchored = true
  1000. if Part:findFirstChild("Mesh") ~= nil then
  1001. z = Part:findFirstChild("Mesh")
  1002. for i = 1,5 do
  1003. z.Scale = z.Scale + Vector3.new(1,1,1)
  1004. wait(0.05)
  1005. end
  1006. end
  1007. end
  1008. end
  1009.  
  1010. function trappedTorsos:isTrapped(t)
  1011. for nildata, index in next,self do
  1012. if index==t then
  1013. return true
  1014. end
  1015. end
  1016. return false
  1017. end
  1018.  
  1019. function trappedTorsos:Capture(hit)
  1020. if hit:isA'BasePart' then
  1021. if not trappedTorsos:isTrapped(hit) and not hit:IsDescendantOf(char) then
  1022. table.insert(trappedTorsos, hit)
  1023. hit.Anchored = true --trapped!
  1024. --print'trapped!'
  1025. end
  1026. end
  1027. end
  1028.  
  1029. function trappedTorsos:Release()
  1030. for i,v in next, self do
  1031. if type(v)=='userdata' then
  1032. if v:isA('BasePart') then
  1033. v.Anchored = false
  1034. self[i] = nil
  1035. end
  1036. end
  1037. end
  1038. end
  1039.  
  1040. --Za Warudo
  1041. Attacking = false
  1042. WasOn = true
  1043. function TheWorld(Mode)
  1044. if Mode == "Time Stop" then
  1045. noRig = true
  1046. Attacking = true
  1047. if WasOn == true and StandOn == false then
  1048. StandOn = true
  1049. WasOn = false
  1050. end
  1051. hum.WalkSpeed = 0
  1052. for i = 1,30 do
  1053. runKF(hesp2)
  1054. runKF(tosp2)
  1055. runKF(lasp2)
  1056. runKF(rasp2)
  1057. runKF(llsp2)
  1058. runKF(rlsp2)
  1059. runKF(hesp3)
  1060. runKF(tosp3)
  1061. runKF(lasp3)
  1062. runKF(rasp3)
  1063. runKF(llsp3)
  1064. runKF(rlsp3)
  1065. wait()
  1066. end
  1067. wait()
  1068. local ZAWARUDO = Instance.new("Sound",tor)
  1069. ZAWARUDO.SoundId = "rbxassetid://290807377"
  1070. ZAWARUDO.Volume = 1
  1071. ZAWARUDO.Looped = false
  1072. ZAWARUDO:Play()
  1073. local TimeStop = Instance.new("Sound",tor)
  1074. TimeStop.SoundId = "rbxassetid://290807425"
  1075. TimeStop.Looped = false
  1076. TimeStop.Volume = 1
  1077. local AreaOfEffect = Instance.new("Part",char)
  1078. AreaOfEffect.Position = tor.Position
  1079. AreaOfEffect.Size = Vector3.new(0.01,0.01,0.01)
  1080. AreaOfEffect.Anchored = true
  1081. AreaOfEffect.CanCollide = false
  1082. AreaOfEffect.BrickColor = BrickColor.new("Institutional white")
  1083. AreaOfEffect.Transparency = 0.9
  1084. AreaOfEffect.Shape = "Ball"
  1085. AreaOfEffect.Material = "Neon"
  1086.  
  1087. for i = 1,10 do
  1088. runKF(hesp4)
  1089. runKF(tosp4)
  1090. runKF(lasp4)
  1091. runKF(rasp4)
  1092. runKF(llsp4)
  1093. runKF(rlsp4)
  1094. wait()
  1095. end
  1096. TimeStop:Play()
  1097. for i = 1,10 do
  1098. AreaOfEffect.Size = AreaOfEffect.Size + Vector3.new(4.1,4.1,4.1)
  1099. AreaOfEffect.CFrame = char.Torso.CFrame
  1100. wait()
  1101. end
  1102. coroutine.wrap(function()
  1103. do local me={}
  1104.  
  1105. me.plrs = game:service'Workspace':children''
  1106.  
  1107. function me:getNear(mag)
  1108. local rtn = {}
  1109.  
  1110. for k,v in next,me.plrs do
  1111. local chxr = v
  1112.  
  1113. if chxr then
  1114. if chxr:findFirstChild'Torso' then
  1115. local pos = (chxr.Torso.Position-tor.Position).magnitude
  1116.  
  1117. if pos<=mag then
  1118. for a,b in pairs(chxr:children()) do
  1119. if b:IsA("BasePart") then
  1120. table.insert(rtn, b)
  1121. end
  1122. end
  1123. end
  1124. end
  1125. end
  1126. end
  1127. return rtn
  1128. end
  1129.  
  1130. for no, torso in ipairs(me:getNear(25)) do
  1131. --print(torso:GetFullName())
  1132. --print(torso:GetFullName())
  1133. trappedTorsos:Capture(torso)
  1134. end
  1135.  
  1136.  
  1137. end
  1138. end)()
  1139. AreaOfEffect:Destroy()
  1140. local TimeHasStopped = Instance.new("Sound",tor)
  1141. TimeHasStopped.SoundId = "rbxassetid://290807397"
  1142. TimeHasStopped.Looped = false
  1143. TimeHasStopped.Volume = 1
  1144. wait(1.3)
  1145. TimeHasStopped:Play()
  1146. workspace.Gravity = 70
  1147. for i,v in pairs(char:children()) do
  1148. if v:IsA("Part") then
  1149. v.Anchored = false
  1150. end
  1151. if v:IsA("Hat") then
  1152. v.Handle.Anchored = false
  1153. end
  1154. end
  1155. for i,v in pairs(pchar:children()) do
  1156. if v:IsA("Part") then
  1157. v.Anchored = false
  1158. end
  1159. if v:IsA("Hat") then
  1160. v.Handle.Anchored = false
  1161. end
  1162. end
  1163. if WasOn == false then
  1164. StandOn = false
  1165. WasOn = true
  1166. end
  1167. hum.WalkSpeed = 16
  1168. noRig = false
  1169. Attacking = false
  1170. end
  1171. if Mode == "World Time Stop" then
  1172. noRig = true
  1173. Attacking = true
  1174. if WasOn == true and StandOn == false then
  1175. StandOn = true
  1176. WasOn = false
  1177. end
  1178. hum.WalkSpeed = 0
  1179. for i = 1,30 do
  1180. runKF(hesp2)
  1181. runKF(tosp2)
  1182. runKF(lasp2)
  1183. runKF(rasp2)
  1184. runKF(llsp2)
  1185. runKF(rlsp2)
  1186. runKF(hesp3)
  1187. runKF(tosp3)
  1188. runKF(lasp3)
  1189. runKF(rasp3)
  1190. runKF(llsp3)
  1191. runKF(rlsp3)
  1192. wait()
  1193. end
  1194. wait()
  1195. local ZAWARUDO = Instance.new("Sound",tor)
  1196. ZAWARUDO.SoundId = "rbxassetid://290807377"
  1197. ZAWARUDO.Volume = 1
  1198. ZAWARUDO.Looped = false
  1199. ZAWARUDO:Play()
  1200. local TimeStop = Instance.new("Sound",tor)
  1201. TimeStop.SoundId = "rbxassetid://290807425"
  1202. TimeStop.Looped = false
  1203. TimeStop.Volume = 1
  1204. local AreaOfEffect = Instance.new("Part",char)
  1205. AreaOfEffect.Position = tor.Position
  1206. AreaOfEffect.Size = Vector3.new(0.01,0.01,0.01)
  1207. AreaOfEffect.Anchored = true
  1208. AreaOfEffect.CanCollide = false
  1209. AreaOfEffect.BrickColor = BrickColor.new("Institutional white")
  1210. AreaOfEffect.Transparency = 0.9
  1211. AreaOfEffect.Shape = "Ball"
  1212. AreaOfEffect.Material = "Neon"
  1213.  
  1214. for i = 1,10 do
  1215. runKF(hesp4)
  1216. runKF(tosp4)
  1217. runKF(lasp4)
  1218. runKF(rasp4)
  1219. runKF(llsp4)
  1220. runKF(rlsp4)
  1221. wait()
  1222. end
  1223. TimeStop:Play()
  1224. for i = 1,10 do
  1225. AreaOfEffect.Size = AreaOfEffect.Size + Vector3.new(4.1,4.1,4.1)
  1226. AreaOfEffect.CFrame = char.Torso.CFrame
  1227. wait()
  1228. end
  1229. coroutine.wrap(function()
  1230. do local me={}
  1231.  
  1232. me.plrs = game:service'Workspace':children''
  1233.  
  1234. function me:getNear(mag)
  1235. local rtn = {}
  1236.  
  1237. for k,v in next,me.plrs do
  1238. local chxr = v
  1239.  
  1240. if chxr then
  1241. if chxr:findFirstChild'Torso' then
  1242. local pos = (chxr.Torso.Position-tor.Position).magnitude
  1243.  
  1244. if pos<=mag then
  1245. for a,b in pairs(chxr:children()) do
  1246. if b:IsA("BasePart") then
  1247. table.insert(rtn, b)
  1248. end
  1249. end
  1250. end
  1251. end
  1252. end
  1253. end
  1254. return rtn
  1255. end
  1256.  
  1257. for no, torso in ipairs(me:getNear(5555)) do
  1258. --print(torso:GetFullName())
  1259. --print(torso:GetFullName())
  1260. trappedTorsos:Capture(torso)
  1261. end
  1262.  
  1263.  
  1264. end
  1265. end)()
  1266. AreaOfEffect:Destroy()
  1267. local TimeHasStopped = Instance.new("Sound",tor)
  1268. TimeHasStopped.SoundId = "rbxassetid://290807397"
  1269. TimeHasStopped.Looped = false
  1270. TimeHasStopped.Volume = 1
  1271. wait(1.3)
  1272. TimeHasStopped:Play()
  1273. workspace.Gravity = 70
  1274. for i,v in pairs(char:children()) do
  1275. if v:IsA("Part") then
  1276. v.Anchored = false
  1277. end
  1278. if v:IsA("Hat") then
  1279. v.Handle.Anchored = false
  1280. end
  1281. end
  1282. for i,v in pairs(pchar:children()) do
  1283. if v:IsA("Part") then
  1284. v.Anchored = false
  1285. end
  1286. if v:IsA("Hat") then
  1287. v.Handle.Anchored = false
  1288. end
  1289. end
  1290. if WasOn == false then
  1291. StandOn = false
  1292. WasOn = true
  1293. end
  1294. hum.WalkSpeed = 16
  1295. noRig = false
  1296. Attacking = false
  1297. end
  1298. if Mode == "Time Start" then
  1299. local Toki = Instance.new("Sound",tor)
  1300. Toki.SoundId = "rbxassetid://290810519"
  1301. Toki.Volume = 1
  1302. Toki.Looped = false
  1303. Toki:Play()
  1304. local AreaOfEffect2 = Instance.new("Part",tor)
  1305. AreaOfEffect2.Position = tor.Position
  1306. AreaOfEffect2.Size = Vector3.new(0.01,0.01,0.01)
  1307. AreaOfEffect2.Anchored = true
  1308. AreaOfEffect2.CanCollide = false
  1309. AreaOfEffect2.Transparency = 1
  1310. AreaOfEffect2.BrickColor = BrickColor.new("Institutional white")
  1311. AreaOfEffect2.Transparency = 0.99
  1312. AreaOfEffect2.Shape = "Ball"
  1313. AreaOfEffect2.Material = "Neon"
  1314. AreaOfEffect2.Touched:connect(function(hit)
  1315. if hit ~= "Base" then
  1316. --hit.Anchored = false
  1317. end
  1318. end)
  1319. for i = 1,10 do
  1320. AreaOfEffect2.Size = AreaOfEffect2.Size + Vector3.new(4.1,4.1,4.1)
  1321. AreaOfEffect2.CFrame = char.Torso.CFrame
  1322. wait()
  1323. end
  1324. trappedTorsos:Release()
  1325. AreaOfEffect2:Destroy()
  1326. TfwTimeStopped = false
  1327. workspace.Gravity = 196.2
  1328. end
  1329. if Mode == "Wry" then
  1330. local WWRRRYYYYY = Instance.new("Sound",tor)
  1331. WWRRRYYYYY.SoundId = "rbxassetid://499932933"
  1332. WWRRRYYYYY.Volume = 1
  1333. WWRRRYYYYY.Looped = false
  1334. WWRRRYYYYY:Play()
  1335. end
  1336. end
  1337.  
  1338. Rapid = false
  1339. TimeStopped = false
  1340. OneSecond = false
  1341. Cha = char
  1342. Character = char
  1343. it=Instance.new
  1344. vt=Vector3.new
  1345. cn=CFrame.new
  1346. euler=CFrame.fromEulerAnglesXYZ
  1347. angles=CFrame.Angles
  1348. RootPart = hrp
  1349. mouse.KeyDown:connect(function(key)
  1350. if key == "q" then
  1351. if TimeStopped == false and Attacking == false then
  1352. TheWorld("Time Stop")
  1353. TimeStopped = true
  1354. TfwTimeStopped = true
  1355. --[[wait(10)
  1356. if TimeStopped == true then
  1357. TheWorld("Time Start")
  1358. TimeStopped = false
  1359. end]]
  1360. elseif TimeStopped == true and Attacking == false then
  1361. TheWorld("Time Start")
  1362. TimeStopped = false
  1363. end
  1364. end
  1365. if key == "p" and TimeStopped == false and Attacking == false then
  1366. TheWorld("World Time Stop")
  1367. TimeStopped = true
  1368. TfwTimeStopped = true
  1369. end
  1370. if key == "f" then
  1371. if StandOn then
  1372. StandOn = false
  1373. else
  1374. StandOn = true
  1375. TheWorld("Wry")
  1376. end
  1377. end
  1378. if key == "t" and OneSecond == false then
  1379. OneSecond = true
  1380. for i, v in pairs(Cha:GetChildren()) do
  1381. if v:IsA('Hat') then
  1382. v.Handle.Transparency=1
  1383. end
  1384. end
  1385. Cha.Head.Transparency = 0.2
  1386. Cha.Torso.Transparency = 0.2
  1387. Cha["Right Arm"].Transparency = 0.2
  1388. Cha["Left Arm"].Transparency = 0.2
  1389. Cha["Right Leg"].Transparency = 0.2
  1390. Cha["Left Leg"].Transparency = 0.2
  1391. wait()
  1392. Cha.Head.Transparency = 0.4
  1393. Cha.Torso.Transparency = 0.4
  1394. Cha["Right Arm"].Transparency = 0.4
  1395. Cha["Left Arm"].Transparency = 0.4
  1396. Cha["Right Leg"].Transparency = 0.4
  1397. Cha["Left Leg"].Transparency = 0.4
  1398. wait()
  1399. Cha.Head.Transparency = 0.6
  1400. Cha.Torso.Transparency = 0.6
  1401. Cha["Right Arm"].Transparency = 0.6
  1402. Cha["Left Arm"].Transparency = 0.6
  1403. Cha["Right Leg"].Transparency = 0.6
  1404. Cha["Left Leg"].Transparency = 0.6
  1405. wait()
  1406. Cha.Head.Transparency = 0.8
  1407. Cha.Torso.Transparency = 0.8
  1408. Cha["Right Arm"].Transparency = 0.8
  1409. Cha["Left Arm"].Transparency = 0.8
  1410. Cha["Right Leg"].Transparency = 0.8
  1411. Cha["Left Leg"].Transparency = 0.8
  1412. wait()
  1413. Cha.Head.Transparency = 1
  1414. Cha.Torso.Transparency = 1
  1415. Cha["Right Arm"].Transparency = 1
  1416. Cha["Left Arm"].Transparency = 1
  1417. Cha["Right Leg"].Transparency = 1
  1418. Cha["Left Leg"].Transparency = 1
  1419.  
  1420. Targ = CFrame.new(Vector3.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z))
  1421. print("ZA WARUDO!")
  1422.  
  1423. Player.Character.Torso.CFrame = Targ
  1424.  
  1425. wait()
  1426. for i, v in pairs(Cha:GetChildren()) do
  1427. if v:IsA('Hat') then
  1428. v.Handle.Transparency=0
  1429. end
  1430. end
  1431. Cha.Head.Transparency = 0.8
  1432. Cha.Torso.Transparency = 0.8
  1433. Cha["Right Arm"].Transparency = 0.8
  1434. Cha["Left Arm"].Transparency = 0.8
  1435. Cha["Right Leg"].Transparency = 0.8
  1436. Cha["Left Leg"].Transparency = 0.8
  1437. wait()
  1438. Cha.Head.Transparency = 0.6
  1439. Cha.Torso.Transparency = 0.6
  1440. Cha["Right Arm"].Transparency = 0.6
  1441. Cha["Left Arm"].Transparency = 0.6
  1442. Cha["Right Leg"].Transparency = 0.6
  1443. Cha["Left Leg"].Transparency = 0.6
  1444. wait()
  1445. Cha.Head.Transparency = 0.4
  1446. Cha.Torso.Transparency = 0.4
  1447. Cha["Right Arm"].Transparency = 0.4
  1448. Cha["Left Arm"].Transparency = 0.4
  1449. Cha["Right Leg"].Transparency = 0.4
  1450. Cha["Left Leg"].Transparency = 0.4
  1451. wait()
  1452. Cha.Head.Transparency = 0.2
  1453. Cha.Torso.Transparency = 0.2
  1454. Cha["Right Arm"].Transparency = 0.2
  1455. Cha["Left Arm"].Transparency = 0.2
  1456. Cha["Right Leg"].Transparency = 0.2
  1457. Cha["Left Leg"].Transparency = 0.2
  1458. wait()
  1459. Cha.Head.Transparency = 0
  1460. Cha.Torso.Transparency = 0
  1461. Cha["Right Arm"].Transparency = 0
  1462. Cha["Left Arm"].Transparency = 0
  1463. Cha["Right Leg"].Transparency = 0
  1464. Cha["Left Leg"].Transparency = 0
  1465.  
  1466. wait()
  1467. OneSecond = false
  1468. end
  1469. if key == "v" then
  1470. Rapid = true
  1471. local ORA = Instance.new("Sound",char)
  1472. ORA.SoundId = "rbxassetid://291088692"
  1473. ORA.Volume = 1
  1474. ORA.Looped = false
  1475. ORA:Play()
  1476. Attacking = true
  1477. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,4,math.random(0,0),"Killer Queen",RootPart,.2,1) end)
  1478. con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,4,2,math.random(0,0),"Killer Queen",RootPart,.2,1) end)
  1479. while Rapid == true do
  1480. for i = 1, 3 do
  1481. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1482. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1483. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1484. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1485. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1486. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1487. wait()
  1488. end
  1489. for i = 1, 3 do
  1490. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1491. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1492. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1493. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1494. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1495. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1496. wait()
  1497. end
  1498. for i = 1, 3 do
  1499. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1500. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
  1501. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1502. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1503. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1504. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1505. wait()
  1506. end
  1507. for i = 1, 3 do
  1508. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1509. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1510. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1511. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1512. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1513. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1514. wait()
  1515. end
  1516. end
  1517. con1:disconnect()
  1518. con2:disconnect()
  1519. local MIDORA = Instance.new("Sound",char)
  1520. MIDORA.SoundId = "rbxassetid://291088797"
  1521. MIDORA.Looped = false
  1522. MIDORA:Play()
  1523. ORA:Stop()
  1524. Attacking = false
  1525. end
  1526. if key == "e" then
  1527. if StandOn == true then
  1528. Rapid = true
  1529. local ORA = Instance.new("Sound",char)
  1530. ORA.SoundId = "rbxassetid://291088692"
  1531. ORA.Volume = 1
  1532. ORA.Looped = false
  1533. ORA:Play()
  1534. Attacking = true
  1535. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,3,1,math.random(0,0),"Normal",RootPart,.2,1) end)
  1536. con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,3,math.random(0,0),"Normal",RootPart,.2,1) end)
  1537. while Rapid == true do
  1538. for i = 1, 3 do
  1539. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1540. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1541. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1542. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1543. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1544. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1545. wait()
  1546. end
  1547. for i = 1, 3 do
  1548. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1549. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1550. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1551. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1552. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1553. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1554. wait()
  1555. end
  1556. for i = 1, 3 do
  1557. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1558. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
  1559. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1560. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1561. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1562. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1563. wait()
  1564. end
  1565. for i = 1, 3 do
  1566. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1567. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1568. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1569. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1570. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1571. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1572. wait()
  1573. end
  1574. end
  1575. con1:disconnect()
  1576. con2:disconnect()
  1577. local MIDORA = Instance.new("Sound",char)
  1578. MIDORA.SoundId = "rbxassetid://291088797"
  1579. MIDORA.Looped = false
  1580. MIDORA:Play()
  1581. ORA:Stop()
  1582. Attacking = false
  1583. elseif StandOn == false then
  1584. Rapid = true
  1585. local ORA = Instance.new("Sound",char)
  1586. ORA.SoundId = "rbxassetid://291088692"
  1587. ORA.Volume = 1
  1588. ORA.Looped = false
  1589. ORA:Play()
  1590. con1 = ram.Touched:connect(function(hit) Damagefunc(torso,hit,4,1,math.random(0,0),"Normal",RootPart,.2,1) end)
  1591. con2 = lam.Touched:connect(function(hit) Damagefunc(torso,hit,1,5,math.random(0,0),"Normal",RootPart,.2,1) end)
  1592. while Rapid == true do
  1593. for i = 1, 3 do
  1594. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1595. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1596. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1597. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1598. llw.C0 = RLerp(llw.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1599. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1600. wait()
  1601. end
  1602. for i = 1, 3 do
  1603. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1604. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1605. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1606. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1607. llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1608. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1609. wait()
  1610. end
  1611. for i = 1, 3 do
  1612. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1613. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
  1614. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1615. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1616. llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1617. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1618. wait()
  1619. end
  1620. for i = 1, 3 do
  1621. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1622. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1623. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1624. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1625. llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1626. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1627. wait()
  1628. end
  1629. end
  1630. con1:disconnect()
  1631. con2:disconnect()
  1632. local MIDORA = Instance.new("Sound",char)
  1633. MIDORA.SoundId = "rbxassetid://291088797"
  1634. MIDORA.Looped = false
  1635. MIDORA:Play()
  1636. ORA:Stop()
  1637. end
  1638. end
  1639. if key == "r" and Attacking == false then
  1640. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,4,2,math.random(100,100),"Knockdown",RootPart,.2,1) end)
  1641. Attacking = true
  1642. for i = 1, 3 do
  1643. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1644. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1645. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1646. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1647. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1648. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1649. wait()
  1650. end
  1651. local MIDORA = Instance.new("Sound",char)
  1652. MIDORA.SoundId = "rbxassetid://291088797"
  1653. MIDORA.Looped = false
  1654. MIDORA:Play()
  1655. wait(1)
  1656. con1:disconnect()
  1657. Attacking = false
  1658. end
  1659. if key == "g" and Attacking == false then
  1660. con1 = ram2.Touched:connect(function(hit)
  1661. Damagefunc(torso,hit,5,15,math.random(100,100),"Killer Queen",RootPart,.2,1)
  1662. end)
  1663. Attacking = true
  1664. for i = 1, 3 do
  1665. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1666. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1667. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1668. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1669. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1670. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1671. wait()
  1672. end
  1673. local MIDORA = Instance.new("Sound",char)
  1674. MIDORA.SoundId = "rbxassetid://291088797"
  1675. MIDORA.Looped = false
  1676. MIDORA:Play()
  1677. wait(1)
  1678. con1:disconnect()
  1679. Attacking = false
  1680. end
  1681. end)
  1682.  
  1683. mouse.KeyUp:connect(function(key)
  1684. if key == "e" and Rapid == true or key == "v" and Rapid == true then
  1685. Rapid = false
  1686. end
  1687. end)
  1688.  
  1689. for i, v in pairs(pchar:GetChildren()) do
  1690. if v:IsA('Hat') then
  1691. v.Handle.Transparency=1
  1692. end
  1693. if v:IsA("Part") then
  1694. v.BrickColor = BrickColor.new("Really black")
  1695. end
  1696. end
  1697.  
  1698. -------------------------------Sprint
  1699. mouse.KeyDown:connect(function(key)
  1700. if string.byte(key) == 48 then
  1701. hum.WalkSpeed = 48
  1702. end
  1703. end)
  1704. mouse.KeyUp:connect(function(key)
  1705. if string.byte(key) == 48 then
  1706. hum.WalkSpeed=16
  1707. end
  1708. end)
  1709. -------------------------------------
  1710. hum.FreeFalling:connect(function(f)
  1711. if f then
  1712. ffing=true
  1713. else
  1714. ffing=false
  1715. end
  1716. end)
  1717. StandOn = true
  1718. local hrprv=0
  1719. angle = 0
  1720. angle2 = 0
  1721. angle3 = 0
  1722. anglespeed = 2
  1723. anglespeed2 = 1
  1724. anglespeed3 = .4
  1725. MyHealth = hum.Health
  1726. MyMaxHealth = hum.MaxHealth
  1727. MyMaxHealth = humane.Health
  1728. MyHealth = humane.Health
  1729. humane.Name = "The Worldo"
  1730. game:GetService("RunService").Stepped:connect(function()
  1731. angle = ((angle % 100) + anglespeed/10)
  1732. angle2 = ((angle2 % 100) + anglespeed2/10)
  1733. angle3 = ((angle3 % 100) + anglespeed3/10)
  1734. hrprv=Tween(hrprv,hrp.RotVelocity.Y,0.4)
  1735. sine=sine+1
  1736. if StandOn == false then
  1737. for i,v in pairs(pchar:children()) do
  1738. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  1739. v.Transparency = 1
  1740. end
  1741. end
  1742. elseif StandOn == true then
  1743. for i,v in pairs(pchar:children()) do
  1744. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  1745. v.Transparency = 0
  1746. end
  1747. end
  1748. end
  1749. MyHealth = humane.Health
  1750. humane.Health = MyHealth
  1751. if hum.Sit==true then
  1752. animpose="Sitting"
  1753. elseif ffing==true then
  1754. animpose="Freefalling"
  1755. elseif (hrp.Velocity*Vn(1,0,1)).magnitude<2 then
  1756. animpose="Idle"
  1757. elseif (hrp.Velocity*Vn(1,0,1)).magnitude<20 then
  1758. animpose="Walking"
  1759. elseif (hrp.Velocity*Vn(1,0,1)).magnitude>20 then
  1760. animpose="Sprinting"
  1761. end
  1762. if Attacking == false then
  1763. torso.CFrame = hrp.CFrame*CFrame.new(0,0,2)
  1764. runKF(heid2)
  1765. runKF(toid2)
  1766. runKF(laid2)
  1767. runKF(raid2)
  1768. runKF(llid2)
  1769. runKF(rlid2)
  1770. end
  1771. if noRig==false then
  1772. if animpose=="Idle" then
  1773. runKF(heid)
  1774. runKF(toid)
  1775. runKF(laid)
  1776. runKF(raid)
  1777. runKF(llid)
  1778. runKF(rlid)
  1779. elseif animpose=="Walking" then
  1780. runKF(hewk)
  1781. runKF(towk)
  1782. runKF(lawk)
  1783. runKF(rawk)
  1784. runKF(llwk)
  1785. runKF(rlwk)
  1786. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/25),0.4)
  1787. --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/25),0.4)
  1788. ---llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/25),0.4)
  1789. elseif animpose=="Sprinting" then
  1790. runKF(hesp)
  1791. runKF(tosp)
  1792. runKF(lasp)
  1793. runKF(rasp)
  1794. runKF(llsp)
  1795. runKF(rlsp)
  1796. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
  1797. --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/10),0.4)
  1798. --llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/10),0.4)
  1799. elseif animpose=="Freefalling" then
  1800. runKF(heff)
  1801. runKF(toff)
  1802. runKF(laff)
  1803. runKF(raff)
  1804. runKF(llff)
  1805. runKF(rlff)
  1806. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
  1807. end
  1808. end
  1809. end)
Add Comment
Please, Sign In to add comment