Advertisement
lafur

Untitled

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