Advertisement
SuperDragonFost

Untitled

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