Advertisement
XskillyX

Untitled

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