Advertisement
marioisdabomb

e

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