Advertisement
whyumean

Untitled

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