lafur

Untitled

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