Advertisement
kqdragon

Sans

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