Advertisement
nobiclol

Untitled

Apr 26th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.14 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 = owner
  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.  
  87. --[[
  88. Stand: Killer Queen
  89. User: Yoshikage Kira
  90. https://www.dropbox.com/s/jiqyo6hlec6sgaa/Yoshikage%20Kira.lua?dl=1
  91. ]]
  92.  
  93.  
  94. local asd = owner
  95. repeat wait() until asd.Character
  96. local asdchar = asd.Character
  97. local transPoints = {NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.207, 0.594, 0.0187), NumberSequenceKeypoint.new(0.4, 0.55, 0.031), NumberSequenceKeypoint.new(0.57, 0.619, 0.05), NumberSequenceKeypoint.new(0.76, 0.8, 0.0375), NumberSequenceKeypoint.new(1, 1, 0)}
  98. local sizePoints = {NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 1.9, 0)}
  99. local Size = NumberSequence.new(sizePoints)
  100. local Transparency = NumberSequence.new(transPoints)
  101. efxBlock = Instance.new("Part", asdchar)
  102. efxBlock.CanCollide = false
  103. efxBlock.Material = "Neon"
  104. efxBlock.FormFactor = "Custom"
  105. efxBlock.Transparency = 1
  106. efxBlock.Size = Vector3.new(0.25, 0.25, 0.25)
  107. local mesh = Instance.new("SpecialMesh", efxBlock)
  108. mesh.MeshType = Enum.MeshType.Sphere
  109. mesh.Scale = Vector3.new(1, 1, 1)
  110. local particles = Instance.new("ParticleEmitter", efxBlock)
  111. particles.LightEmission = 0
  112. particles.Size = Size
  113. particles.Name = "Fire"
  114. particles.Transparency = Transparency
  115. particles.LockedToPart = false
  116. particles.VelocityInheritance = -0.5
  117. particles.LockedToPart = false
  118. particles.Rate = 3
  119. particles.Texture = "rbxassetid://262850915"
  120. particles.Lifetime = NumberRange.new(3, 3)
  121. particles.Speed = NumberRange.new(3, 3)
  122. particles.VelocitySpread = 25
  123. local offset = Vector3.new(-0.11, 0.23, -0.5)
  124. local weld = Instance.new("Weld", asdchar.Head)
  125. weld.Part0 = asdchar.Head
  126. weld.Part1 = efxBlock
  127. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40), math.rad(40), math.rad(40))
  128.  
  129. ---Declarations
  130. local Cn=CFrame.new
  131. local CA=CFrame.Angles
  132. local mr=math.rad
  133. local rn=math.random
  134. local mc=math.cos
  135. local Vn=Vector3.new
  136. local NR=NumberRange.new
  137. local NSeq=NumberSequence.new
  138. local plrs=game:service"Players"
  139. local wrk=game:service"Workspace"
  140. local deb=game:service"Debris"
  141. local IS=game:GetService("InsertService")
  142. local p= owner
  143. local cam=wrk.CurrentCamera
  144. local char=p.Character
  145. local lam=char["Left Arm"]
  146. local ram=char["Right Arm"]
  147. local llg=char["Left Leg"]
  148. local rlg=char["Right Leg"]
  149. local hed=char.Head
  150. local tor=char.Torso
  151. local larm = lam
  152. local rarm = ram
  153. local lleg = llg
  154. local rleg = rlg
  155. local torso = tor
  156. local hrp=char.HumanoidRootPart
  157. local PlayerSpeed = char.Humanoid.WalkSpeed
  158. local on=false
  159. local noRig=false
  160. local curws=16
  161. local sine=0
  162. local ift={}
  163. local ifxd=false
  164. local run=false
  165. local stance="Cane"
  166. local Speed = 16
  167. local Health = 9000
  168.  
  169. PlayerSpeed = 16
  170.  
  171. ypcall(function()
  172. char.Shirt:Destroy()
  173. char.Pants:Destroy()
  174. shirt = Instance.new("Shirt", char)
  175. shirt.Name = "Shirt"
  176. pants = Instance.new("Pants", char)
  177. pants.Name = "Pants"
  178. char.Shirt.ShirtTemplate = "rbxassetid://495761990"
  179. char.Pants.PantsTemplate = "rbxassetid://495762126"
  180. end)
  181.  
  182. Debounces = {
  183. CanAttack = true;
  184. NoIdl = false;
  185. Slashing = false;
  186. Slashed = false;
  187. RPunch = false;
  188. RPunched = false;
  189. LPunch = false;
  190. LPunched = false;
  191. }
  192.  
  193. local trappedTorsos = {}
  194. local trappedTorsoss = {}
  195. ---Functions
  196.  
  197. function FndHm(flnm)
  198. for i,v in pairs(flnm:GetChildren()) do
  199. if v:IsA("Humanoid") then
  200. return v
  201. end
  202. end
  203. end
  204. local hum=FndHm(char)
  205.  
  206.  
  207.  
  208. function chrDes(inst)
  209. local ret=nil
  210. for _,v in pairs(game.Players:GetChildren()) do
  211. if inst:IsDescendantOf(v) then
  212. ret=v
  213. break
  214. end
  215. end
  216. return ret
  217. end
  218.  
  219. --
  220. function get(a)
  221. local cont={}
  222. for i,v in pairs(a:GetChildren()) do
  223. if v==char then
  224. else
  225. table.insert(cont,v)
  226. pcall(function()
  227. for _,b in pairs(get(v)) do
  228. table.insert(cont,b)
  229. end
  230. end)
  231. end
  232. end
  233. return cont
  234. end
  235. for _,v in pairs(get(game.Workspace)) do
  236. if v:IsA("Sparkles") or v:IsA("Fire") then
  237. v:Destroy()
  238. end
  239. end
  240.  
  241. --
  242. function inT(qur,tbl)
  243. local a=false
  244. for i,v in pairs(tbl) do
  245. if v==qur then
  246. a=true
  247. break
  248. else
  249. a=false
  250. end
  251. end
  252. return a
  253. end
  254.  
  255. --
  256. function Tween(a,b,c)
  257. return a+(b-a)*c
  258. end
  259.  
  260. --
  261. function Avg(a,b)
  262. return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
  263. end
  264.  
  265. --
  266. function Lerp(c1,c2,tim)
  267. local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()}
  268. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  269. for i,v in pairs(com1) do
  270. com1[i]=v+(com2[i]-v)*tim
  271. end
  272. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  273. end
  274.  
  275. function RLerp(c1,c2,tim)
  276. return c1:lerp(c2,tim)
  277. end
  278.  
  279. --
  280. function ALerp(c1,c2,tim)
  281. local com1={c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  282. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  283. for i,v in pairs(com1) do
  284. com1[i]=v+(com2[i]-v)*tim
  285. end
  286. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  287. end
  288.  
  289. --
  290. function Lerprs(ud,ud2,al)
  291. local a,b,c,d=ud.X.Scale,ud.X.Offset,ud.Y.Scale,ud.Y.Offset
  292. local a2,b2,c2,d2=ud2.X.Scale,ud2.X.Offset,ud2.Y.Scale,ud2.Y.Offset
  293. local x,y,z,w=(a+(a2-a)*al),(b+(b2-b)*al),(c+(c2-c)*al),(d+(d2-d)*al)
  294. return UDim2.new(x,y,z,w)
  295. end
  296.  
  297. --
  298. function newAnim(wld)
  299. local asd={["Weld"]=wld;["Int"]=0;["Frame"]=1;}
  300. asd.getFrames=function()
  301. local num=0
  302. for _,v in pairs(asd) do
  303. pcall(function()
  304. num=num+v.Length
  305. end)
  306. end
  307. return num
  308. end
  309. return asd
  310. end
  311.  
  312. --
  313. function newKF(tab,c0,lng,off)
  314. off=off or 1
  315. table.insert(tab,{["C0"]=c0,["Length"]=lng,["Offset"]=off})
  316. end
  317.  
  318. --
  319. function runKF(tab)
  320. tab.Int=tab.Int+1
  321. if tab.Int>=tab[tab.Frame].Length then
  322. tab.Frame=tab.Frame+1
  323. tab.Int=0
  324. if tab.Frame>#tab then
  325. tab.Frame=1
  326. end
  327. end
  328. tab.Weld.C0=RLerp(tab.Weld.C0,tab[tab.Frame].C0,(tab[tab.Frame].Offset/tab[tab.Frame].Length)*tab.Int)
  329. end
  330.  
  331. --
  332. function nwPrt(prnt,siz,cf,col)
  333. local prt=Instance.new("Part")
  334. prt.Parent=prnt
  335. prt.FormFactor=3
  336. prt.Name="Part"
  337. prt.Size=siz
  338. prt.CanCollide=false
  339. prt.Anchored=true
  340. prt.Locked=true
  341. prt.TopSurface=10
  342. prt.BottomSurface=10
  343. prt.FrontSurface=10
  344. prt.BackSurface=10
  345. prt.LeftSurface=10
  346. prt.RightSurface=10
  347. prt:BreakJoints()
  348. prt.CFrame=cf or CFrame.new(30,10,30)
  349. prt.Material="SmoothPlastic"
  350. prt.BrickColor=BrickColor.new(col)
  351. m=Instance.new("SpecialMesh",prt)
  352. m.MeshType=6
  353. return prt
  354. end
  355.  
  356. --
  357. function nwWdg(prnt,siz,cf,col)
  358. local prt=Instance.new("WedgePart")
  359. prt.Parent=prnt
  360. prt.FormFactor=3
  361. prt.Name="Part"
  362. prt.Size=siz
  363. prt.CanCollide=false
  364. prt.Anchored=false
  365. prt.Locked=true
  366. prt.TopSurface=0
  367. prt.BottomSurface=0
  368. prt:BreakJoints()
  369. prt.CFrame=cf or CFrame.new(30,10,30)
  370. prt.Material="SmoothPlastic"
  371. prt.BrickColor=BrickColor.new(col)
  372. return prt
  373. end
  374.  
  375. --
  376. function newGui(prnt,clsnm,siz,pos,bsp,bc,bt)
  377. local gui=Instance.new(clsnm,prnt)
  378. gui.Size=siz or UDim2.new(0,100,0,100)
  379. gui.Position=pos or UDim2.new(0,0,0,0)
  380. gui.BorderSizePixel=bsp or 0
  381. gui.BackgroundColor3=bc or Color3.new(0,0,0)
  382. gui.BackgroundTransparency=bt or 1
  383. return gui
  384. end
  385.  
  386. --
  387. function nwWld(wp0,wp1,wc0)
  388. wld = Instance.new("Weld",wp1)
  389. wld.Part0=wp0
  390. wld.Part1=wp1
  391. wld.C0=wc0 or Cn(0,0,0)
  392. return wld
  393. end
  394.  
  395. --
  396. function nwSnd(prnt,pch,vol,id)
  397. local s=Instance.new("Sound",prnt)
  398. s.Pitch=pch
  399. s.Volume=vol
  400. s.SoundId="rbxassetid://"..id
  401. s.PlayOnRemove=true
  402. return s
  403. end
  404.  
  405. --
  406. function newRay(start,face,range,wat)
  407. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  408. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  409. return rey,hit,pos
  410. end
  411.  
  412. function nooutline(part)
  413. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  414. end
  415.  
  416. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  417. local fp=it("Part")
  418. fp.formFactor=formfactor
  419. fp.Parent=parent
  420. fp.Reflectance=reflectance
  421. fp.Transparency=transparency
  422. fp.CanCollide=false
  423. fp.Locked=true
  424. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  425. fp.Name=name
  426. fp.Size=size
  427. fp.Position=Character.Torso.Position
  428. nooutline(fp)
  429. fp.Material=material
  430. fp:BreakJoints()
  431. return fp
  432. end
  433.  
  434. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  435. local mesh=it(Mesh)
  436. mesh.Parent=part
  437. if Mesh=="SpecialMesh" then
  438. mesh.MeshType=meshtype
  439. mesh.MeshId=meshid
  440. end
  441. mesh.Offset=offset
  442. mesh.Scale=scale
  443. return mesh
  444. end
  445.  
  446. function weld(parent,part0,part1,c0,c1)
  447. local weld=it("Weld")
  448. weld.Parent=parent
  449. weld.Part0=part0
  450. weld.Part1=part1
  451. weld.C0=c0
  452. weld.C1=c1
  453. return weld
  454. end
  455. TfwTimeStopped = false
  456. function Damagefunc(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  457. if hit.Parent==nil then
  458. return
  459. end
  460. h=hit.Parent:FindFirstChild("Humanoid")
  461. for _,v in pairs(hit.Parent:children()) do
  462. if v:IsA("Humanoid") then
  463. h=v
  464. end
  465. end
  466. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  467. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  468. end
  469. if hit.Parent.className=="Hat" then
  470. hit=hit.Parent.Parent:findFirstChild("Head")
  471. end
  472. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  473. if hit.Parent:findFirstChild("DebounceHit")~=nil then
  474. if hit.Parent.DebounceHit.Value==true then
  475. return
  476. end
  477. end
  478. --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  479. return
  480. end]]
  481. --hs(hit,1.2)
  482. c=Instance.new("ObjectValue")
  483. c.Name="creator"
  484. c.Value= owner
  485. c.Parent=h
  486. game:GetService("Debris"):AddItem(c,.5)
  487. Damage=math.random(minim,maxim)
  488. --h:TakeDamage(Damage)
  489. blocked=false
  490. block=hit.Parent:findFirstChild("Block")
  491. if block~=nil then
  492. print(block.className)
  493. if block.className=="NumberValue" then
  494. if block.Value>0 then
  495. blocked=true
  496. if decreaseblock==nil then
  497. block.Value=block.Value-1
  498. end
  499. end
  500. end
  501. if block.className=="IntValue" then
  502. if block.Value>0 then
  503. blocked=true
  504. if decreaseblock~=nil then
  505. block.Value=block.Value-1
  506. end
  507. end
  508. end
  509. end
  510. if blocked==false then
  511. --h:TakeDamage(Damage)
  512. if TfwTimeStopped == false then
  513. h.Health=h.Health-Damage
  514. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "PUNCH", 1.5, Part.BrickColor.Color)
  515. elseif TfwTimeStopped == true then
  516. repeat wait() until TfwTimeStopped == false
  517. h.Health=h.Health-0.1
  518. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  519. end
  520. else
  521. h.Health=h.Health-(Damage/2)
  522. 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)
  523. end
  524. if Type=="Knockdown" then
  525. hum=hit.Parent.Humanoid
  526. hum.PlatformStand=true
  527. coroutine.resume(coroutine.create(function(HHumanoid)
  528. swait(1)
  529. HHumanoid.PlatformStand=false
  530. end),hum)
  531. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  532. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  533. local bodvol=Instance.new("BodyVelocity")
  534. bodvol.velocity=angle*knockback
  535. bodvol.P=500
  536. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  537. bodvol.Parent=hit
  538. rl = Instance.new("BodyAngularVelocity")
  539. rl.P = 3000
  540. rl.maxTorque = Vector3.new(500000, 500000, 500000)
  541. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  542. rl.Parent = hit
  543. game:GetService("Debris"):AddItem(bodvol,.5)
  544. game:GetService("Debris"):AddItem(rl,.5)
  545. elseif Type=="ORA" then
  546. hum=hit.Parent.Humanoid
  547. hum.PlatformStand=true
  548. coroutine.resume(coroutine.create(function(HHumanoid)
  549. swait(1)
  550. HHumanoid.PlatformStand=false
  551. end),hum)
  552. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  553. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  554. local bodvol=Instance.new("BodyVelocity")
  555. bodvol.velocity=angle*knockback
  556. bodvol.P=500
  557. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  558. bodvol.Parent=hit
  559. rl = Instance.new("BodyAngularVelocity")
  560. rl.P = 3000
  561. rl.maxTorque = Vector3.new(500000, 500000, 500000)
  562. rl.angularvelocity = Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  563. rl.Parent = hit
  564. game:GetService("Debris"):AddItem(bodvol,.5)
  565. game:GetService("Debris"):AddItem(rl,.5)
  566. elseif Type == "Killer Queen" then
  567. hum=hit.Parent.Humanoid
  568. hum.PlatformStand=true
  569. coroutine.resume(coroutine.create(function(HHumanoid)
  570. swait(1)
  571. HHumanoid.PlatformStand=false
  572. end),hum)
  573. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  574. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  575. local bodvol=Instance.new("BodyVelocity")
  576. bodvol.velocity=angle*knockback
  577. bodvol.P=500
  578. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  579. bodvol.Parent=hit
  580. rl = Instance.new("BodyAngularVelocity")
  581. rl.P = 3000
  582. rl.maxTorque = Vector3.new(500000, 500000, 500000)
  583. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  584. rl.Parent = hit
  585. game:GetService("Debris"):AddItem(bodvol,.5)
  586. game:GetService("Debris"):AddItem(rl,.5)
  587. wait(3)
  588. KillerQueen = Instance.new("Explosion",hit)
  589. KillerQueen.Position = hit.Position
  590. elseif Type=="Normal" then
  591. vp=Instance.new("BodyVelocity")
  592. vp.P=500
  593. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  594. --vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  595. if KnockbackType==1 then
  596. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  597. elseif KnockbackType==2 then
  598. vp.velocity=Property.CFrame.lookVector*knockback
  599. end
  600. if knockback>0 then
  601. vp.Parent=hit.Parent.Torso
  602. end
  603. game:GetService("Debris"):AddItem(vp,.5)
  604. elseif Type=="Up" then
  605. local bodyVelocity=Instance.new("BodyVelocity")
  606. bodyVelocity.velocity=vt(0,60,0)
  607. bodyVelocity.P=5000
  608. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  609. bodyVelocity.Parent=hit
  610. game:GetService("Debris"):AddItem(bodyVelocity,1)
  611. rl=Instance.new("BodyAngularVelocity")
  612. rl.P=3000
  613. rl.maxTorque=Vector3.new(500000,500000,500000)
  614. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  615. rl.Parent=hit
  616. game:GetService("Debris"):AddItem(rl,.5)
  617. elseif Type=="Snare" then
  618. bp=Instance.new("BodyPosition")
  619. bp.P=2000
  620. bp.D=100
  621. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  622. bp.position=hit.Parent.Torso.Position
  623. bp.Parent=hit.Parent.Torso
  624. game:GetService("Debris"):AddItem(bp,1)
  625. elseif Type=="Target" then
  626. local Targetting = false
  627. if Targetting==false then
  628. ZTarget=hit.Parent.Torso
  629. coroutine.resume(coroutine.create(function(Part)
  630. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  631. swait(5)
  632. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  633. end),ZTarget)
  634. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  635. local targetgui=Instance.new("BillboardGui")
  636. targetgui.Parent=ZTarget
  637. targetgui.Size=UDim2.new(10,100,10,100)
  638. local targ=Instance.new("ImageLabel")
  639. targ.Parent=targetgui
  640. targ.BackgroundTransparency=1
  641. targ.Image="rbxassetid://4834067"
  642. targ.Size=UDim2.new(1,0,1,0)
  643. cam.CameraType="Scriptable"
  644. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  645. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  646. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  647. Targetting=true
  648. RocketTarget=ZTarget
  649. for i=1,Property do
  650. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  651. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  652. swait()
  653. end
  654. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  655. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  656. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  657. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  658. end
  659. Targetting=false
  660. RocketTarget=nil
  661. targetgui.Parent=nil
  662. cam.CameraType="Custom"
  663. end
  664. end
  665. local debounce=Instance.new("BoolValue")
  666. debounce.Name="DebounceHit"
  667. debounce.Parent=hit.Parent
  668. debounce.Value=true
  669. game:GetService("Debris"):AddItem(debounce,Delay)
  670. c=Instance.new("ObjectValue")
  671. c.Name="creator"
  672. c.Value=Player
  673. c.Parent=h
  674. game:GetService("Debris"):AddItem(c,.5)
  675. end
  676. end
  677.  
  678. function ShowDamage(Pos, Text, Time, Color)
  679. local Rate = (1 / 30)
  680. local Pos = (Pos or Vector3.new(0, 0, 0))
  681. local Text = (Text or "")
  682. local Time = (Time or 2)
  683. local Color = (Color or Color3.new(1, 0, 0))
  684. local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  685. EffectPart.Anchored = true
  686. local BillboardGui = Instance.new("BillboardGui")
  687. BillboardGui.Size = UDim2.new(3, 3, 3, 3)
  688. BillboardGui.Adornee = EffectPart
  689. local TextLabel = Instance.new("TextLabel")
  690. TextLabel.BackgroundTransparency = 1
  691. TextLabel.Size = UDim2.new(3, 3, 3, 3)
  692. TextLabel.Text = Text
  693. TextLabel.TextColor3 = Color
  694. TextLabel.TextStrokeColor3 = BrickColor.new("Really black").Color
  695. TextLabel.TextScaled = true
  696. TextLabel.TextStrokeTransparency = 0
  697. TextLabel.Font = Enum.Font.SourceSansBold
  698. TextLabel.Parent = BillboardGui
  699. BillboardGui.Parent = EffectPart
  700. game.Debris:AddItem(EffectPart, (Time + 0.1))
  701. EffectPart.Parent = game:GetService("Workspace")
  702. Delay(0, function()
  703. local Frames = (Time / Rate)
  704. for Frame = 1, Frames do
  705. wait(Rate)
  706. local Percent = (Frame / Frames)
  707. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  708. TextLabel.TextTransparency = Percent
  709. TextLabel.TextStrokeTransparency = Percent
  710. end
  711. if EffectPart and EffectPart.Parent then
  712. EffectPart:Destroy()
  713. end
  714. end)
  715. end
  716.  
  717. Player = p
  718. workspace[Player.Name].Archivable=true
  719. pchar = workspace[Player.Name]:Clone() --Create("Model",{Parent=workspace})
  720. pchar.Parent=workspace[Player.Name]
  721. torso=pchar.Torso
  722. humane=pchar.Humanoid
  723. pchar.Name= "Killer Queen"
  724. pl=pchar
  725. humane.MaxHealth=Health
  726. wait()
  727. humane.Health=Health
  728. humane.WalkSpeed=Speed
  729.  
  730. pchar.Shirt.ShirtTemplate = "rbxassetid://497255957"
  731. pchar.Pants.PantsTemplate = "rbxassetid://497256087"
  732.  
  733. ---Weld
  734.  
  735. local law=nwWld(tor,lam,Cn(-1.5,0.5,0))
  736. law.C1=CFrame.new(0,0.5,0)
  737. local raw=nwWld(tor,ram,Cn(1.5,0.5,0))
  738. raw.C1=CFrame.new(0,0.5,0)
  739. local hew=nwWld(tor,hed,Cn(0,1.5,0))
  740. local llw=nwWld(tor,llg,Cn(-0.5,-1,0))
  741. llw.C1=CFrame.new(0,1,0)
  742. local rlw=nwWld(tor,rlg,Cn(0.5,-1,0))
  743. rlw.C1=CFrame.new(0,1,0)
  744. local tow=nwWld(hrp,tor,Cn(0,-1,0))
  745. tow.C1=CFrame.new(0,-1,0)
  746.  
  747. local hrp2 = pchar.HumanoidRootPart
  748. local tor2 = torso
  749. local hed2 = pchar.Head
  750. local lam2=pchar["Left Arm"]
  751. local ram2=pchar["Right Arm"]
  752. local llg2=pchar["Left Leg"]
  753. local rlg2=pchar["Right Leg"]
  754.  
  755. local law2=nwWld(tor2,lam2,Cn(-1.5,0.5,0))
  756. law2.C1=CFrame.new(0,0.5,0)
  757. local raw2=nwWld(tor2,ram2,Cn(1.5,0.5,0))
  758. raw2.C1=CFrame.new(0,0.5,0)
  759. local hew2=nwWld(torso,hed2,Cn(0,1.5,0))
  760. local llw2=nwWld(torso,llg2,Cn(-0.5,-1,0))
  761. llw2.C1=CFrame.new(0,1,0)
  762. local rlw2=nwWld(tor2,rlg2,Cn(0.5,-1,0))
  763. rlw2.C1=CFrame.new(0,1,0)
  764. local tow2=nwWld(hrp2,tor2,Cn(0,-1,0))
  765. tow2.C1=CFrame.new(0,-1,0)
  766.  
  767.  
  768. local laD=CFrame.new(-1.5,0.5,0)
  769. local raD=CFrame.new(1.5,0.5,0)
  770. local hD=CFrame.new(0,1.5,0)
  771. local tD=CFrame.new(0,-1,0)
  772. local llD=CFrame.new(-0.5,-1,0)
  773. local rlD=CFrame.new(0.5,-1,0)
  774.  
  775. ---Build
  776.  
  777. ---Animations
  778.  
  779. --Idle
  780. local heid=newAnim(hew)
  781. newKF(heid,hD*CA(mr(-15.5),0,0),50,0.3)
  782. newKF(heid,hD*CA(mr(-14),0,0),40,0.3)
  783. local toid=newAnim(tow)
  784. newKF(toid,tD*Cn(0,-0.0125,0)*CA(mr(0),0,0),50,0.3)
  785. newKF(toid,tD*Cn(0,0.0125,0)*CA(mr(0),0,0),40,0.3)
  786. local laid=newAnim(law)
  787. newKF(laid,laD*Cn(1,0.0125,-0.764)*CA(mr(80),0,mr(85)),50,0.3)
  788. newKF(laid,laD*Cn(1,-0.0125,-0.764)*CA(mr(70),0,mr(85)),40,0.3)
  789. local raid=newAnim(raw)
  790. newKF(raid,raD*Cn(-1,-0.0125,-0.764)*CA(mr(80),0,mr(-85)),50,0.3)
  791. newKF(raid,raD*Cn(-1,0.0125,-0.764)*CA(mr(70),0,mr(-85)),40,0.3)
  792. local llid=newAnim(llw)
  793. newKF(llid,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
  794. newKF(llid,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
  795. local rlid=newAnim(rlw)
  796. newKF(rlid,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
  797. newKF(rlid,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
  798.  
  799. local heid2=newAnim(hew2)
  800. newKF(heid2,hD*CA(mr(0),0,0),40,0.3)
  801. newKF(heid2,hD*CA(mr(0),0,0),40,0.3)
  802. local toid2=newAnim(tow2)
  803. newKF(toid2,tD*Cn(0,0.5,3)*CA(mr(0),0,0),50,1)
  804. newKF(toid2,tD*Cn(0,1,3)*CA(mr(0),0,0),40,1)
  805. local laid2=newAnim(law2)
  806. newKF(laid2,laD*Cn(0,0.0125,0)*CA(mr(0),mr(0),mr(-20)),50,0.3)
  807. newKF(laid2,laD*Cn(0,-0.0125,0)*CA(mr(0),mr(0),mr(-20)),40,0.3)
  808. local raid2=newAnim(raw2)
  809. newKF(raid2,raD*Cn(0,-0.0125,0)*CA(mr(0),mr(0),mr(20)),50,0.3)
  810. newKF(raid2,raD*Cn(0,0.0125,0)*CA(mr(0),mr(0),mr(20)),40,0.3)
  811. local llid2=newAnim(llw2)
  812. newKF(llid2,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
  813. newKF(llid2,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
  814. local rlid2=newAnim(rlw2)
  815. newKF(rlid2,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
  816. newKF(rlid2,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
  817.  
  818. --Walk
  819. local hewk=newAnim(hew)
  820. newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4)
  821. newKF(hewk,hD*CA(mr(-5),mr(-3),0),13,0.4)
  822. newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4)
  823. newKF(hewk,hD*CA(mr(-5),mr(3),0),13,0.4)
  824. local towk=newAnim(tow)
  825. newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
  826. newKF(towk,tD*CA(mr(15),mr(5),0),13,0.4)
  827. newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
  828. newKF(towk,tD*CA(mr(15),mr(-5),0),13,0.4)
  829. local lawk=newAnim(law)
  830. newKF(lawk,laD*CA(mr(30),0,0),25,0.4)
  831. newKF(lawk,laD*CA(mr(-30),0,0),25,0.4)
  832. local rawk=newAnim(raw)
  833. newKF(rawk,raD*CA(mr(-30),0,0),25,0.4)
  834. newKF(rawk,raD*CA(mr(30),0,0),25,0.4)
  835. local llwk=newAnim(llw)
  836. newKF(llwk,llD*CA(mr(-40),mr(-10),mr(-2)),25,0.4)
  837. newKF(llwk,llD*Cn(0,0.3,0)*CA(mr(-5),0,mr(-3)),12,0.4)
  838. newKF(llwk,llD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(10),mr(-3)),13,0.4)
  839. local rlwk=newAnim(rlw)
  840. newKF(rlwk,rlD*Cn(0,0.3,0)*CA(mr(-5),0,mr(3)),12,0.4)
  841. newKF(rlwk,rlD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(-10),mr(3)),13,0.4)
  842. newKF(rlwk,rlD*CA(mr(-40),mr(10),mr(2)),25,0.4)
  843.  
  844. --Sprint
  845. local hesp=newAnim(hew)
  846. newKF(hesp,hD*CA(mr(5),mr(-10),0),10,0.2)
  847. newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
  848. newKF(hesp,hD*CA(mr(5),mr(10),0),10,0.2)
  849. newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
  850. local tosp=newAnim(tow)
  851. newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(10),0),10,0.4)
  852. newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
  853. newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(-10),0),10,0.4)
  854. newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
  855. local lasp=newAnim(law)
  856. newKF(lasp,laD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
  857. newKF(lasp,laD*CA(mr(-40),0,0),20,0.4)
  858. local rasp=newAnim(raw)
  859. newKF(rasp,raD*CA(mr(-40),0,0),20,0.4)
  860. newKF(rasp,raD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
  861. local llsp=newAnim(llw)
  862. newKF(llsp,llD*CA(mr(-50),mr(-10),mr(-2)),20,0.4)
  863. newKF(llsp,llD*Cn(0,0.5,0)*CA(mr(15),0,mr(-3)),10,0.4)
  864. newKF(llsp,llD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(10),mr(-3)),10,0.4)
  865. local rlsp=newAnim(rlw)
  866. newKF(rlsp,rlD*Cn(0,0.3,0)*CA(mr(15),0,mr(3)),10,0.4)
  867. newKF(rlsp,rlD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(-10),mr(3)),10,0.4)
  868. newKF(rlsp,rlD*CA(mr(-50),mr(10),mr(2)),20,0.4)
  869.  
  870. --Freefall
  871. local heff=newAnim(hew)
  872. newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
  873. newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
  874. local toff=newAnim(tow)
  875. newKF(toff,tD*CA(mr(10),0,0),8,0.6)
  876. newKF(toff,tD*CA(mr(10),0,0),8,0.6)
  877. local laff=newAnim(law)
  878. newKF(laff,laD*CA(mr(140),0,0),16,0.4)
  879. newKF(laff,laD*CA(mr(140),0,0),16,0.4)
  880. local raff=newAnim(raw)
  881. newKF(raff,raD*CA(mr(140),0,0),16,0.4)
  882. newKF(raff,raD*CA(mr(140),0,0),16,0.4)
  883. local llff=newAnim(llw)
  884. newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
  885. newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
  886. local rlff=newAnim(rlw)
  887. newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
  888. newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
  889.  
  890. --Time Has Stopped
  891. local hesp2=newAnim(hew)
  892. newKF(hesp2,hD*CA(mr(-30),mr(0),mr(0)),10,0.5)
  893. local tosp2=newAnim(tow)
  894. newKF(tosp2,tD*Cn(0,0,0)*CA(mr(30),mr(0),mr(0)),10,0.5)
  895. local lasp2=newAnim(law)
  896. newKF(lasp2,laD*CA(mr(90),mr(0),mr(-60)),20,1.5)
  897. local rasp2=newAnim(raw)
  898. newKF(rasp2,raD*CA(mr(90),mr(0),mr(60)),20,1.5)
  899. local llsp2=newAnim(llw)
  900. newKF(llsp2,llD*Cn(0,0,0)*CA(mr(-30),mr(0),mr(0)),20,0.5)
  901. local rlsp2=newAnim(rlw)
  902. newKF(rlsp2,rlD*Cn(0,0,0)*CA(mr(-30),0,mr(0)),10,0.5)
  903.  
  904. local hesp3=newAnim(hew2)
  905. newKF(hesp3,hD*CA(mr(-15),mr(0),mr(0)),50,0.2)
  906. local tosp3=newAnim(tow2)
  907. newKF(tosp3,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),50,0.4)
  908. local lasp3=newAnim(law2)
  909. newKF(lasp3,laD*CA(mr(80),mr(0),mr(65)),30,0.4)
  910. newKF(lasp3,laD*CA(mr(120),mr(0),mr(-60)),50,0.4)
  911. local rasp3=newAnim(raw2)
  912. newKF(rasp3,raD*CA(mr(80),mr(0),mr(-65)),30,0.4)
  913. newKF(rasp3,raD*CA(mr(120),mr(0),mr(60)),50,0.4)
  914. local llsp3=newAnim(llw2)
  915. newKF(llsp3,llD*CA(mr(0),mr(0),mr(1.5)),50,0.4)
  916. local rlsp3=newAnim(rlw2)
  917. newKF(rlsp3,rlD*CA(mr(0),mr(0),mr(-1.5)),50,0.4)
  918.  
  919. local hesp4=newAnim(hew2)
  920. newKF(hesp4,hD*CA(mr(-10),mr(0),mr(0)),10,0.2)
  921. local tosp4=newAnim(tow2)
  922. newKF(tosp4,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),10,0.4)
  923. local lasp4=newAnim(law2)
  924. newKF(lasp4,laD*CA(mr(120),mr(0),mr(-60)),20,0.4)
  925. local rasp4=newAnim(raw2)
  926. newKF(rasp4,raD*CA(mr(120),mr(0),mr(60)),20,0.4)
  927. local llsp4=newAnim(llw2)
  928. newKF(llsp4,llD*CA(mr(0),mr(0),mr(1.5)),20,0.4)
  929. local rlsp4=newAnim(rlw2)
  930. newKF(rlsp4,rlD*CA(mr(0),mr(0),mr(-1.5)),10,0.4)
  931.  
  932. --Let time flow again
  933. local hetoki=newAnim(hew)
  934. newKF(hetoki,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
  935. local totoki=newAnim(tow)
  936. newKF(totoki,tD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
  937. local latoki=newAnim(law)
  938. newKF(latoki,laD*Cn(0,-0.1,-0.2)*CA(mr(0),mr(0),mr(0)),20,0.4)
  939. local ratoki=newAnim(raw)
  940. newKF(ratoki,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
  941. local lltoki=newAnim(llw)
  942. newKF(lltoki,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
  943. local rltoki=newAnim(rlw)
  944. newKF(rltoki,rlD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
  945. --//Example of Keyframe
  946. --[[
  947. local hesp2=newAnim(hew)
  948. newKF(hesp2,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
  949. local tosp2=newAnim(tow)
  950. newKF(tosp2,tD*CA(mr(0),mr(0),mr(0)),10,0.4)
  951. local lasp2=newAnim(law)
  952. newKF(lasp2,laD*CA(mr(0),mr(0),mr(0)),20,0.4)
  953. local rasp2=newAnim(raw)
  954. newKF(rasp2,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
  955. local llsp2=newAnim(llw)
  956. newKF(llsp2,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
  957. local rlsp2=newAnim(rlw)
  958. newKF(rlsp2,rlD*CA(mr(0),mr(0),mr(0)),10,0.4)
  959. ]]
  960. function onDamage(Part)
  961. if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then
  962. Part.Anchored = true
  963. if Part:findFirstChild("Mesh") ~= nil then
  964. z = Part:findFirstChild("Mesh")
  965. for i = 1,5 do
  966. z.Scale = z.Scale + Vector3.new(1,1,1)
  967. wait(0.05)
  968. end
  969. end
  970. end
  971. end
  972.  
  973. function trappedTorsos:isTrapped(t)
  974. for nildata, index in next,self do
  975. if index==t then
  976. return true
  977. end
  978. end
  979. return false
  980. end
  981.  
  982. function trappedTorsos:Capture(hit)
  983. if hit:isA'BasePart' then
  984. if not trappedTorsos:isTrapped(hit) and not hit:IsDescendantOf(char) then
  985. print(hit.Parent:GetFullName())
  986. table.insert(trappedTorsos, hit.Parent)
  987. Bitten = true
  988. repeat wait() if hit.Parent == nil then Bitten = false end until Bitten == false
  989. print("Find a new Target!")
  990. --hit.Anchored = true --trapped!
  991. --print'trapped!'
  992. end
  993. end
  994. end
  995.  
  996. function trappedTorsoss:isTrapped(t)
  997. for nildata, index in next,self do
  998. if index==t then
  999. return true
  1000. end
  1001. end
  1002. return false
  1003. end
  1004. Bitten2 = false
  1005. function trappedTorsoss:Capture2(hit)
  1006. if not trappedTorsoss:isTrapped(hit) and not hit:IsDescendantOf(char) and hit:isA'BasePart' then
  1007. table.insert(trappedTorsoss, hit)
  1008. Bitten2 = true
  1009. repeat wait() until Bitten2 == false
  1010. KillerQueens = Instance.new("Explosion",Workspace)
  1011. KillerQueens.Position = hit.Position
  1012. KillerQueens.BlastPressure = 0
  1013. KillerQueens.BlastRadius = 10
  1014. hit:breakJoints()
  1015. hit:remove()
  1016. print("BITTEN!")
  1017. --hit.Anchored = true --trapped!
  1018. --print'trapped!'
  1019. end
  1020. end
  1021. function LetsBiteZaDusto(hit)
  1022. if not hit:IsDescendantOf(char) and hit:isA'BasePart' and hit.Name ~= "Terrain" and hit ~= workspace.Terrain then
  1023. KillerQueens = Instance.new("Explosion",Workspace)
  1024. KillerQueens.Position = hit.Position
  1025. KillerQueens.BlastPressure = 0
  1026. KillerQueens.BlastRadius = 10
  1027. pcall(function()
  1028. hit:breakJoints()
  1029. hit:remove()
  1030. end)
  1031. end
  1032. end
  1033.  
  1034. function trappedTorsos:Release()
  1035. for i,v in next, self do
  1036. if type(v)=='userdata' then
  1037. if v:isA('BasePart') then
  1038. v.Anchored = false
  1039. self[i] = nil
  1040. end
  1041. end
  1042. end
  1043. end
  1044.  
  1045. DUWANG = Instance.new("Sound",char)
  1046. DUWANG.SoundId = "rbxassetid://583598537"
  1047. DUWANG.Looped = true
  1048. DUWANG:Play()
  1049.  
  1050. --Za Warudo
  1051. Attacking = false
  1052. WasOn = true
  1053. Rapid = false
  1054. TimeStopped = false
  1055. OneSecond = false
  1056. BubbleBomb = false
  1057. TheTarget = nil
  1058. Cha = char
  1059. Character = char
  1060. it=Instance.new
  1061. vt=Vector3.new
  1062. cn=CFrame.new
  1063. euler=CFrame.fromEulerAnglesXYZ
  1064. angles=CFrame.Angles
  1065. RootPart = hrp
  1066. mouse.KeyDown:connect(function(key)
  1067. if key == "q" and Attacking == false then
  1068. Attacking = true
  1069. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,0,0,math.random(0,0),"Knockdown",RootPart,.2,1) trappedTorsoss:Capture2(hit) end)
  1070. for i = 1, 3 do
  1071. 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)
  1072. 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)
  1073. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1074. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1075. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1076. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1077. wait()
  1078. end
  1079. wait(1)
  1080. con1:disconnect()
  1081. Attacking = false
  1082. end
  1083. if key == "p" and Bitten2 == true then
  1084. Bitten2 = false
  1085. end
  1086. if key == "f" then
  1087. if StandOn then
  1088. StandOn = false
  1089. else
  1090. StandOn = true
  1091. end
  1092. end
  1093. if key == "v" and Rapid ~= true then
  1094. Rapid = true
  1095. Attacking = true
  1096. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) trappedTorsoss:Capture2(hit) end)
  1097. con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) trappedTorsoss:Capture2(hit) end)
  1098. while Rapid == true do
  1099. for i = 1, 3 do
  1100. 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)
  1101. 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)
  1102. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1103. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1104. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1105. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1106. wait()
  1107. end
  1108. for i = 1, 3 do
  1109. 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)
  1110. 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)
  1111. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1112. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1113. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1114. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1115. wait()
  1116. end
  1117. for i = 1, 3 do
  1118. 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)
  1119. 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)
  1120. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1121. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1122. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1123. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1124. wait()
  1125. end
  1126. for i = 1, 3 do
  1127. 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)
  1128. 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)
  1129. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1130. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1131. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1132. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1133. wait()
  1134. end
  1135. end
  1136. con1:disconnect()
  1137. con2:disconnect()
  1138. Attacking = false
  1139. end
  1140. if key == "e" and Rapid ~= true then
  1141. Rapid = true
  1142. Attacking = true
  1143. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) end)
  1144. con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) end)
  1145. while Rapid == true do
  1146. for i = 1, 3 do
  1147. 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)
  1148. 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)
  1149. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1150. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1151. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1152. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1153. wait()
  1154. end
  1155. for i = 1, 3 do
  1156. 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)
  1157. 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)
  1158. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1159. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1160. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1161. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1162. wait()
  1163. end
  1164. for i = 1, 3 do
  1165. 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)
  1166. 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)
  1167. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1168. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1169. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1170. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1171. wait()
  1172. end
  1173. for i = 1, 3 do
  1174. 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)
  1175. 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)
  1176. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1177. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1178. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1179. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1180. wait()
  1181. end
  1182. end
  1183. con1:disconnect()
  1184. con2:disconnect()
  1185. Attacking = false
  1186. end
  1187. if key == "r" and Attacking == false and Bitten2 == false then
  1188. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,5,15,math.random(100,100),"Knockdown",RootPart,.2,1) trappedTorsoss:Capture2(hit) end)
  1189. Attacking = true
  1190. for i = 1, 3 do
  1191. 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)
  1192. 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)
  1193. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1194. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1195. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1196. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1197. wait()
  1198. end
  1199. wait(1)
  1200. con1:disconnect()
  1201. Attacking = false
  1202. end
  1203. if key == "g" and Attacking == false then
  1204. con1 = ram2.Touched:connect(function(hit)
  1205. Damagefunc(torso,hit,5,15,math.random(100,100),"Killer Queen",RootPart,.2,1)
  1206. end)
  1207. Attacking = true
  1208. for i = 1, 3 do
  1209. 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)
  1210. 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)
  1211. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1212. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1213. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1214. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1215. wait()
  1216. end
  1217. wait(1)
  1218. con1:disconnect()
  1219. Attacking = false
  1220. end
  1221. if key == "t" and Attacking == false then
  1222. Attacking = true
  1223. BubbleBomb = true
  1224. for i = 1, 3 do
  1225. 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)
  1226. 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)
  1227. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(-50),0), 1.3)
  1228. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1229. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1230. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1231. wait()
  1232. end
  1233. ContactBubble = Instance.new("Part",char)
  1234. ContactBubble.Material = "Neon"
  1235. ContactBubble.Transparency = 0.85
  1236. ContactBubble.Shape = "Ball"
  1237. ContactBubble.CFrame = hed2.CFrame + hed2.CFrame.lookVector*10
  1238. Shooter = Instance.new('BodyVelocity',ContactBubble)
  1239. Shooter.maxForce = Vector3.new(1,1,1)*math.huge
  1240. Shooter.velocity = tor.CFrame.lookVector*10
  1241. Attacking = false
  1242. wait(0.5)
  1243. ContactBubble.Touched:connect(function(hit)
  1244. if hit:IsA"BasePart" then
  1245. local KillerQueenEx = Instance.new("Explosion",hit)
  1246. KillerQueenEx.Position = hit.Position
  1247. ContactBubble:Destroy()
  1248. hit:breakJoints()
  1249. hit:Remove()
  1250. end
  1251. end)
  1252. end
  1253. if key == "[" and hum.Health > 25 and Daisobakuden == false then
  1254. Daisobakuden = true
  1255. end
  1256. if key == "]" and hum.Health > 25 and Daisobakuden == true then
  1257. Daisobakuden = false
  1258. end
  1259. end)
  1260.  
  1261. mouse.KeyUp:connect(function(key)
  1262. if key == "e" and Rapid == true or key == "v" and Rapid == true then
  1263. Rapid = false
  1264. end
  1265. end)
  1266. function getAllParts()
  1267. local rtn = {}
  1268.  
  1269. local function recurse(object)
  1270. for q,e in next, object:children() do
  1271. if e:isA'BasePart' then
  1272. table.insert(rtn, e)
  1273. end
  1274. recurse(e)
  1275. end
  1276. end
  1277.  
  1278. recurse(workspace)
  1279. return rtn
  1280. end
  1281. Bitten = false
  1282.  
  1283. for i, v in pairs(pchar:GetChildren()) do
  1284. if v:IsA('Hat') then
  1285. v.Handle.Transparency=1
  1286. end
  1287. if v:IsA("Part") then
  1288. v.BrickColor = BrickColor.new("Hot pink")
  1289. end
  1290. end
  1291.  
  1292. -------------------------------Sprint
  1293. mouse.KeyDown:connect(function(key)
  1294. if string.byte(key) == 48 then
  1295. hum.WalkSpeed = 48
  1296. end
  1297. end)
  1298. mouse.KeyUp:connect(function(key)
  1299. if string.byte(key) == 48 then
  1300. hum.WalkSpeed=16
  1301. end
  1302. end)
  1303. -------------------------------------
  1304. hum.FreeFalling:connect(function(f)
  1305. if f then
  1306. ffing=true
  1307. else
  1308. ffing=false
  1309. end
  1310. end)
  1311. StandOn = true
  1312. local hrprv=0
  1313. angle = 0
  1314. angle2 = 0
  1315. angle3 = 0
  1316. anglespeed = 2
  1317. anglespeed2 = 1
  1318. anglespeed3 = .4
  1319. MyHealth = hum.Health
  1320. MyMaxHealth = hum.MaxHealth
  1321. MyMaxHealth = humane.Health
  1322. MyHealth = humane.Health
  1323. humane.Name = "Killer Queen"
  1324.  
  1325. game:GetService("RunService").Stepped:connect(function()
  1326. for i, v in pairs(pchar:GetChildren()) do
  1327. if v:IsA('Hat') then
  1328. v.Handle.Transparency=1
  1329. end
  1330. if v:IsA("Part") then
  1331. v.BrickColor = BrickColor.new("Hot pink")
  1332. end
  1333. end
  1334. if hum.Health < 25 then
  1335. Daisobakuden = true
  1336. end
  1337. angle = ((angle % 100) + anglespeed/10)
  1338. angle2 = ((angle2 % 100) + anglespeed2/10)
  1339. angle3 = ((angle3 % 100) + anglespeed3/10)
  1340. hrprv=Tween(hrprv,hrp.RotVelocity.Y,0.4)
  1341. sine=sine+1
  1342. if StandOn == false then
  1343. for i,v in pairs(pchar:children()) do
  1344. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  1345. v.Transparency = 1
  1346. end
  1347. end
  1348. elseif StandOn == true then
  1349. for i,v in pairs(pchar:children()) do
  1350. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  1351. v.Transparency = 0
  1352. end
  1353. end
  1354. end
  1355. MyHealth = humane.Health
  1356. humane.Health = MyHealth
  1357. if hum.Sit==true then
  1358. animpose="Sitting"
  1359. elseif ffing==true then
  1360. animpose="Freefalling"
  1361. elseif (hrp.Velocity*Vn(1,0,1)).magnitude<2 then
  1362. animpose="Idle"
  1363. elseif (hrp.Velocity*Vn(1,0,1)).magnitude<20 then
  1364. animpose="Walking"
  1365. elseif (hrp.Velocity*Vn(1,0,1)).magnitude>20 then
  1366. animpose="Sprinting"
  1367. end
  1368. if Attacking == false then
  1369. torso.CFrame = hrp.CFrame*CFrame.new(0,0,2)
  1370. runKF(heid2)
  1371. runKF(toid2)
  1372. runKF(laid2)
  1373. runKF(raid2)
  1374. runKF(llid2)
  1375. runKF(rlid2)
  1376. end
  1377. if noRig==false then
  1378. if animpose=="Idle" then
  1379. runKF(heid)
  1380. runKF(toid)
  1381. runKF(laid)
  1382. runKF(raid)
  1383. runKF(llid)
  1384. runKF(rlid)
  1385. elseif animpose=="Walking" then
  1386. runKF(hewk)
  1387. runKF(towk)
  1388. runKF(lawk)
  1389. runKF(rawk)
  1390. runKF(llwk)
  1391. runKF(rlwk)
  1392. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/25),0.4)
  1393. --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/25),0.4)
  1394. ---llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/25),0.4)
  1395. elseif animpose=="Sprinting" then
  1396. runKF(hesp)
  1397. runKF(tosp)
  1398. runKF(lasp)
  1399. runKF(rasp)
  1400. runKF(llsp)
  1401. runKF(rlsp)
  1402. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
  1403. --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/10),0.4)
  1404. --llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/10),0.4)
  1405. elseif animpose=="Freefalling" then
  1406. runKF(heff)
  1407. runKF(toff)
  1408. runKF(laff)
  1409. runKF(raff)
  1410. runKF(llff)
  1411. runKF(rlff)
  1412. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
  1413. end
  1414. end
  1415. end)
  1416.  
  1417. AnotherOneBitesZaDusto = 500
  1418. hum.MaxHealth = 500
  1419. wait()
  1420. hum.Health = 500
  1421. while wait(100) do
  1422. AnotherOneBitesZaDusto = hum.Health
  1423. print'Changed'
  1424. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement