Advertisement
Guest User

Untitled

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