Advertisement
xxtheadmincreatorxx

Sksjemeks

Mar 24th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 171.29 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. --By quuisiYT(quu#9149)
  147. Player=game:GetService("Players").LocalPlayer
  148. Character=Player.Character
  149. char = Character
  150. local scream = Instance.new("Sound",char.Torso)
  151. scream.SoundId = "rbxassetid://901030512"
  152. scream.Volume = 100
  153. local omg = Instance.new("Sound",char.Torso)
  154. omg.SoundId = "rbxassetid://1090126885"
  155. omg.Volume = 1000
  156. local ban2 = Instance.new("Sound",char.Torso)
  157. ban2.SoundId = "rbxassetid://135925117"
  158. ban2.Volume = 100
  159. local ban = Instance.new("Sound",char.Torso)
  160. ban.SoundId = "rbxassetid://948494432"
  161. ban.Volume = 100
  162. local banh = Instance.new("Part",char)
  163. banh.Name = "BAN!"
  164. banh.Size = Vector3.new(1, 5.2, 1)
  165. banh.CanCollide = false
  166. local banm = Instance.new("FileMesh",banh)
  167. banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
  168. banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
  169. banm.Scale = Vector3.new(0.5,0.5,0.5)
  170. local banw = Instance.new("Weld",banh)
  171. banw.Part0 = banh
  172. banw.Part1 = char["Right Arm"]
  173. banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
  174. PlayerGui=Player.PlayerGui
  175. Backpack=Player.Backpack
  176. Torso=Character.Torso
  177. Head=Character.Head
  178. Humanoid=Character.Humanoid
  179. m=Instance.new('Model',Character)
  180. LeftArm=Character["Left Arm"]
  181. LeftLeg=Character["Left Leg"]
  182. RightArm=Character["Right Arm"]
  183. RightLeg=Character["Right Leg"]
  184. LS=Torso["Left Shoulder"]
  185. LH=Torso["Left Hip"]
  186. RS=Torso["Right Shoulder"]
  187. RH=Torso["Right Hip"]
  188. Face = Head.face
  189. Neck=Torso.Neck
  190. it=Instance.new
  191. attacktype=1
  192. vt=Vector3.new
  193. cf=CFrame.new
  194. euler=CFrame.fromEulerAnglesXYZ
  195. angles=CFrame.Angles
  196. cloaked=false
  197. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  198. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  199. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  200. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  201. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  202. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  203. RootPart=Character.HumanoidRootPart
  204. RootJoint=RootPart.RootJoint
  205. RootCF=euler(-1.57,0,3.14)
  206. attack = false
  207. attackdebounce = false
  208. deb=false
  209. equipped=true
  210. hand=false
  211. MMouse=nil
  212. combo=0
  213. mana=0
  214. trispeed=1
  215. pathtrans=.7
  216. attackmode='none'
  217. local idle=0
  218. local Anim="Idle"
  219. local Effects={}
  220. local gun=false
  221. local shoot=false
  222. player=nil
  223. cloak=false
  224. lightcolor='Bright blue'
  225.  
  226. local Color1=Torso.BrickColor
  227.  
  228.  
  229. mouse=Player:GetMouse()
  230. --save shoulders
  231. RSH, LSH=nil, nil
  232. --welds
  233. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  234. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  235. LH=Torso["Left Hip"]
  236. RH=Torso["Right Hip"]
  237. TorsoColor=Torso.BrickColor
  238. function NoOutline(Part)
  239. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  240. end
  241.  
  242.  
  243.  
  244. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  245. local fp=it("Part")
  246. fp.formFactor=formfactor
  247. fp.Parent=parent
  248. fp.Reflectance=reflectance
  249. fp.Transparency=transparency
  250. fp.CanCollide=false
  251. fp.Locked=true
  252. fp.BrickColor=brickcolor
  253. fp.Name=name
  254. fp.Size=size
  255. fp.Position=Torso.Position
  256. NoOutline(fp)
  257. fp.Material="SmoothPlastic"
  258. fp:BreakJoints()
  259. return fp
  260. end
  261.  
  262. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  263. local mesh=it(Mesh)
  264. mesh.Parent=part
  265. if Mesh=="SpecialMesh" then
  266. mesh.MeshType=meshtype
  267. if meshid~="nil" then
  268. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  269. end
  270. end
  271. mesh.Offset=offset
  272. mesh.Scale=scale
  273. return mesh
  274. end
  275.  
  276. function weld(parent,part0,part1,c0)
  277. local weld=it("Weld")
  278. weld.Parent=parent
  279. weld.Part0=part0
  280. weld.Part1=part1
  281. weld.C0=c0
  282. return weld
  283. end
  284.  
  285. local Color1=Torso.BrickColor
  286.  
  287.  
  288.  
  289.  
  290.  
  291. Player=game:GetService('Players').LocalPlayer
  292. Character=Player.Character
  293. Mouse=Player:GetMouse()
  294. m=Instance.new('Model',Character)
  295.  
  296.  
  297. local function weldBetween(a, b)
  298. local weldd = Instance.new("ManualWeld")
  299. weldd.Part0 = a
  300. weldd.Part1 = b
  301. weldd.C0 = CFrame.new()
  302. weldd.C1 = b.CFrame:inverse() * a.CFrame
  303. weldd.Parent = a
  304. return weldd
  305. end
  306.  
  307. it=Instance.new
  308.  
  309. function nooutline(part)
  310. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  311. end
  312.  
  313. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  314. local fp=it("Part")
  315. fp.formFactor=formfactor
  316. fp.Parent=parent
  317. fp.Reflectance=reflectance
  318. fp.Transparency=transparency
  319. fp.CanCollide=false
  320. fp.Locked=true
  321. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  322. fp.Name=name
  323. fp.Size=size
  324. fp.Position=Character.Torso.Position
  325. nooutline(fp)
  326. fp.Material=material
  327. fp:BreakJoints()
  328. return fp
  329. end
  330.  
  331. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  332. local mesh=it(Mesh)
  333. mesh.Parent=part
  334. if Mesh=="SpecialMesh" then
  335. mesh.MeshType=meshtype
  336. mesh.MeshId=meshid
  337. end
  338. mesh.Offset=offset
  339. mesh.Scale=scale
  340. return mesh
  341. end
  342.  
  343. function weld(parent,part0,part1,c0,c1)
  344. local weld=it("Weld")
  345. weld.Parent=parent
  346. weld.Part0=part0
  347. weld.Part1=part1
  348. weld.C0=c0
  349. weld.C1=c1
  350. return weld
  351. end
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361. --------------------------------
  362. local p = game.Players.LocalPlayer
  363. local char = p.Character
  364. local mouse = p:GetMouse()
  365. local larm = char["Left Arm"]
  366. local rarm = char["Right Arm"]
  367. local lleg = char["Left Leg"]
  368. local rleg = char["Right Leg"]
  369. local hed = char.Head
  370. local torso = char.Torso
  371. local hum = char.Humanoid
  372. local cam = game.Workspace.CurrentCamera
  373. local root = char.HumanoidRootPart
  374. local deb = false
  375. local shot = 0
  376. local debris=game:service"Debris"
  377. local l = game:GetService("Lighting")
  378. local rs = game:GetService("RunService").RenderStepped
  379. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  380. math.randomseed(os.time())
  381. for i,v in pairs(char:children()) do
  382. if v:IsA("Hat") then
  383. v:Destroy()
  384. end
  385. end
  386. for i,v in pairs (hed:GetChildren()) do
  387. if v:IsA("Sound") then
  388. v:Destroy()
  389. end
  390. end
  391. ----------------------------------------------------
  392. z = Instance.new("Sound", torso)
  393. z.SoundId = "rbxassetid://606241996" -- Put Music ID Here.
  394. z.Looped = true
  395. z.Volume = 1
  396. wait(.1)
  397. z:Play()
  398. -----------------------------------------------------
  399. Debounces = {
  400. CanAttack = true;
  401. NoIdl = false;
  402. Slashing = false;
  403. Slashed = false;
  404. RPunch = false;
  405. RPunched = false;
  406. LPunch = false;
  407. LPunched = false;
  408. }
  409. local Touche = {char.Name, }
  410. ----------------------------------------------------
  411. ----------------------------------------------------
  412. ----------------------------------------------------
  413. local LocalPlayer = game:GetService("Players").LocalPlayer
  414. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  415.  
  416.  
  417. local LocalPlayer = game:GetService("Players").LocalPlayer
  418. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  419.  
  420. Character.Head.Transparency = 0
  421.  
  422. local Camisa = Instance.new("Part", Character)
  423. Camisa.Name = "Camisa"
  424.  
  425. Camisa.CanCollide = false
  426. Camisa.BrickColor = BrickColor.new("Institutional white")
  427. Camisa.Transparency = 1
  428. Camisa.Material = "Plastic"
  429. Camisa.Size = Vector3.new(1.5, 1.5, 1)
  430.  
  431. local Weld = Instance.new("Weld", Camisa)
  432. Weld.Part0 = Character.Torso
  433. Weld.Part1 = Camisa
  434. Weld.C1 = CFrame.new(0, 0, 0)
  435. ----------------------------------------
  436. local p = game.Players.LocalPlayer
  437. local char = p.Character
  438. local mouse = p:GetMouse()
  439. local larm = char["Left Arm"]
  440. local rarm = char["Right Arm"]
  441. local lleg = char["Left Leg"]
  442. local rleg = char["Right Leg"]
  443. local hed = char.Head
  444. local torso = char.Torso
  445. local hum = char.Humanoid
  446. local cam = game.Workspace.CurrentCamera
  447. local root = char.HumanoidRootPart
  448. local rj = root.RootJoint
  449. local deb = false
  450. local shot = 0
  451. local stanceToggle = "Idle1"
  452. local l = game:GetService("Lighting")
  453. local rs = game:GetService("RunService").RenderStepped
  454. local hb = game:GetService("RunService").Heartbeat
  455. local Stepped = game:GetService("RunService").Stepped
  456. math.randomseed(os.time())
  457. hum.JumpPower = 100
  458. ----------------------------------------------------
  459. fat = Instance.new("BindableEvent",script)
  460. fat.Name = "Heartbeat"
  461.  
  462. script:WaitForChild("Heartbeat")
  463.  
  464. frame = 1/30
  465. tf = 0
  466. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  467. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  468. lastframe = tick()
  469. script.Heartbeat:Fire() --ayy lmao
  470.  
  471. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  472. tf = tf + s
  473. if tf >= frame then
  474. if allowframeloss then
  475. script.Heartbeat:Fire()
  476. lastframe=tick()
  477. else
  478. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  479. for i=1, math.floor(tf/frame) do
  480. script.Heartbeat:Fire()
  481. end
  482. lastframe=tick()
  483. end
  484. if tossremainder then
  485. tf = 0
  486. else
  487. tf = tf - frame * math.floor(tf/frame)
  488. end
  489. end
  490. end)
  491. ----------------------------------------------------
  492. for i,v in pairs(char:children()) do
  493. if v:IsA("Hat") then
  494. v:Destroy()
  495. end
  496. end
  497. for i,v in pairs (hed:GetChildren()) do
  498. if v:IsA("Sound") then
  499. v:Destroy()
  500. end
  501. end
  502. ----------------------------------------------------
  503. Debounces = {
  504. CanAttack = true;
  505. CanJoke = true;
  506. NoIdl = false;
  507. Slashing = false;
  508. Slashed = false;
  509. ks = false;
  510. }
  511. ----------------------------------------------------
  512. function weld5(part0, part1, c0, c1)
  513. weeld=Instance.new("Weld", part0)
  514. weeld.Part0=part0
  515. weeld.Part1=part1
  516. weeld.C0=c0
  517. weeld.C1=c1
  518. return weeld
  519. end
  520. ----------------------------------------------------
  521. function NewPart(prnt,siz,cf,trans,anc,mat,col)
  522. local prt=Instance.new("Part")
  523. prt.Parent=prnt
  524. prt.Name="Part"
  525. prt.Size=siz
  526. prt.CanCollide=false
  527. prt.Anchored=anc
  528. prt.Locked=true
  529. prt.Transparency = trans
  530. prt.TopSurface=10
  531. prt.BottomSurface=10
  532. prt.FrontSurface=10
  533. prt.BackSurface=10
  534. prt.LeftSurface=10
  535. prt.RightSurface=10
  536. prt:BreakJoints()
  537. prt.CFrame=cf or CFrame.new(30,10,30)
  538. prt.Material=mat
  539. prt.BrickColor=BrickColor.new(col)
  540. m=Instance.new("SpecialMesh",prt)
  541. m.MeshType=6
  542. return prt
  543. end
  544. ----------------------------------------------------
  545. function lerp(a, b, t) -- Linear interpolation
  546. return a + (b - a)*t
  547. end
  548.  
  549. function slerp(a, b, t) --Spherical interpolation
  550. dot = a:Dot(b)
  551. if dot > 0.99999 or dot < -0.99999 then
  552. return t <= 0.5 and a or b
  553. else
  554. r = math.acos(dot)
  555. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  556. end
  557. end
  558.  
  559. function matrixInterpolate(a, b, t)
  560. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  561. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  562. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  563. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  564. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  565. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  566. local t = v1:Dot(v2)
  567. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  568. return CFrame.new()
  569. end
  570. return CFrame.new(
  571. v0.x, v0.y, v0.z,
  572. v1.x, v1.y, v1.z,
  573. v2.x, v2.y, v2.z,
  574. v3.x, v3.y, v3.z)
  575. end
  576. ----------------------------------------------------
  577. function genWeld(a,b)
  578. local w = Instance.new("Weld",a)
  579. w.Part0 = a
  580. w.Part1 = b
  581. return w
  582. end
  583. function weld(a, b)
  584. local weld = Instance.new("Weld")
  585. weld.Name = "W"
  586. weld.Part0 = a
  587. weld.Part1 = b
  588. weld.C0 = a.CFrame:inverse() * b.CFrame
  589. weld.Parent = a
  590. return weld;
  591. end
  592. ----------------------------------------------------
  593. function Lerp(c1,c2,al)
  594. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  595. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  596. for i,v in pairs(com1) do
  597. com1[i] = v+(com2[i]-v)*al
  598. end
  599. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  600. end
  601. ----------------------------------------------------
  602. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  603. local wld = Instance.new("Weld", wp1)
  604. wld.Part0 = wp0
  605. wld.Part1 = wp1
  606. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  607. end
  608. ----------------------------------------------------
  609. newWeld(torso, larm, -1.5, 0.5, 0)
  610. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  611. newWeld(torso, rarm, 1.5, 0.5, 0)
  612. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  613. newWeld(torso, hed, 0, 1.5, 0)
  614. newWeld(torso, lleg, -0.5, -1, 0)
  615. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  616. newWeld(torso, rleg, 0.5, -1, 0)
  617. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  618. newWeld(root, torso, 0, -1, 0)
  619. torso.Weld.C1 = CFrame.new(0, -1, 0)
  620. ----------------------------------------------------
  621. z = Instance.new("Sound",char) --Smile: print("â?º")
  622. z.SoundId = "rbxassetid://0"--410761150, 411368002
  623. z.Looped = true
  624. z.Pitch = 1
  625. z.Volume = 1
  626. wait(0.1)
  627. z:Play()
  628. ----------------------------------------------------
  629. New = function(Object, Parent, Name, Data)
  630. local Object = Instance.new(Object)
  631. for Index, Value in pairs(Data or {}) do
  632. Object[Index] = Value
  633. end
  634. Object.Parent = Parent
  635. Object.Name = Name
  636. return Object
  637. end
  638. ----------------------------------------------------
  639. --Left Arm
  640. m = Instance.new("Model")
  641. m.Name = "LeftArm"
  642.  
  643. p4 = Instance.new("Part", m)
  644. p4.BrickColor = BrickColor.new("Really black")
  645. p4.Material = Enum.Material.SmoothPlastic
  646. p4.Name = "LeftArmPlate"
  647. p4.Size = Vector3.new(1, 2, 1)
  648. p4.Transparency = 1
  649. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  650. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  651. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  652. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  653. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  654. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  655. b4 = Instance.new("SpecialMesh", p4)
  656. b4.MeshType = Enum.MeshType.Brick
  657. b4.Name = "Mesh"
  658. b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  659.  
  660.  
  661.  
  662.  
  663.  
  664. w1 = Instance.new("Weld", p1)
  665. w1.Name = "Part_Weld"
  666. w1.Part0 = p1
  667. w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  668. w1.Part1 = p2
  669. w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  670. w2 = Instance.new("Weld", p2)
  671. w2.Name = "Part_Weld"
  672. w2.Part0 = p2
  673. w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  674. w2.Part1 = p3
  675. w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  676. w3 = Instance.new("Weld", p3)
  677. w3.Name = "LeftArmPlate_Weld"
  678. w3.Part0 = p3
  679. w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  680. w3.Part1 = p4
  681. w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  682. w4 = Instance.new("Weld", p4)
  683. w4.Name = "Part_Weld"
  684. w4.Part0 = p4
  685. w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  686. w4.Part1 = p5
  687. w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  688. w5 = Instance.new("Weld", p5)
  689. w5.Name = "Part_Weld"
  690. w5.Part0 = p5
  691. w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  692. w5.Part1 = p6
  693. w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  694. w6 = Instance.new("Weld", p6)
  695. w6.Name = "Part_Weld"
  696. w6.Part0 = p6
  697. w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  698. w6.Part1 = p7
  699. w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  700. w7 = Instance.new("Weld", p7)
  701. w7.Name = "Part_Weld"
  702. w7.Part0 = p7
  703. w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  704. w7.Part1 = p8
  705. w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  706. w8 = Instance.new("Weld", p8)
  707. w8.Name = "Part_Weld"
  708. w8.Part0 = p8
  709. w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  710. w8.Part1 = p9
  711. w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  712. w9 = Instance.new("Weld", p9)
  713. w9.Name = "Part_Weld"
  714. w9.Part0 = p9
  715. w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  716. w9.Part1 = p10
  717. w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  718. w10 = Instance.new("Weld", p10)
  719. w10.Name = "Part_Weld"
  720. w10.Part0 = p10
  721. w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  722. w10.Part1 = p11
  723. w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  724. w11 = Instance.new("Weld", p11)
  725. w11.Name = "Part_Weld"
  726. w11.Part0 = p11
  727. w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  728. w11.Part1 = p12
  729. w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  730. w12 = Instance.new("Weld", p12)
  731. w12.Name = "Part_Weld"
  732. w12.Part0 = p12
  733. w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  734. w12.Part1 = p13
  735. w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  736. w13 = Instance.new("Weld", p13)
  737. w13.Name = "Part_Weld"
  738. w13.Part0 = p13
  739. w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  740. w13.Part1 = p14
  741. w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  742. w14 = Instance.new("Weld", p14)
  743. w14.Name = "Part_Weld"
  744. w14.Part0 = p14
  745. w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  746. w14.Part1 = p15
  747. w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  748. w15 = Instance.new("Weld", p15)
  749. w15.Name = "Part_Weld"
  750. w15.Part0 = p15
  751. w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  752. w15.Part1 = p16
  753. w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
  754.  
  755. m.Parent = larm
  756. m:MakeJoints()
  757. ----------------------------------------------------
  758. local cor = Instance.new("Part", larm.LeftArm)
  759. cor.Name = "Thingy"
  760. cor.Locked = true
  761. cor.BottomSurface = 0
  762. cor.CanCollide = false
  763. cor.Size = Vector3.new(1, 1, 1)
  764. cor.Transparency = 1
  765. cor.TopSurface = 0
  766. corw = Instance.new("Weld", cor)
  767. corw.Part0 = larm
  768. corw.Part1 = cor
  769. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  770. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  771. weld1 = Instance.new("Weld", larm.LeftArm)
  772. weld1.Part0 = cor
  773. weld1.Part1 = larm.LeftArm.LeftArmPlate
  774. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  775. --Right Arm
  776. m2 = Instance.new("Model")
  777. m2.Name = "RightArm"
  778.  
  779. p7 = Instance.new("Part", m2)
  780. p7.BrickColor = BrickColor.new("Institutional white")
  781. p7.Material = Enum.Material.SmoothPlastic
  782. p7.Transparency = 1
  783. p7.Name = "RightArmPlate"
  784. p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  785. p7.FormFactor = Enum.FormFactor.Symmetric
  786. p7.Size = Vector3.new(1, 2, 1)
  787. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  788. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  789. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  790. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  791. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  792. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  793. b7 = Instance.new("SpecialMesh", p7)
  794. b7.MeshType = Enum.MeshType.Brick
  795. b7.Name = "Mesh"
  796. b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  797.  
  798.  
  799. w1 = Instance.new("Weld", p1)
  800. w1.Name = "Part_Weld"
  801. w1.Part0 = p1
  802. w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  803. w1.Part1 = p2
  804. w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  805. w2 = Instance.new("Weld", p2)
  806. w2.Name = "Part_Weld"
  807. w2.Part0 = p2
  808. w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  809. w2.Part1 = p3
  810. w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  811. w3 = Instance.new("Weld", p3)
  812. w3.Name = "Part_Weld"
  813. w3.Part0 = p3
  814. w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  815. w3.Part1 = p4
  816. w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  817. w4 = Instance.new("Weld", p4)
  818. w4.Name = "Part_Weld"
  819. w4.Part0 = p4
  820. w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  821. w4.Part1 = p5
  822. w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  823. w5 = Instance.new("Weld", p5)
  824. w5.Name = "Part_Weld"
  825. w5.Part0 = p5
  826. w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  827. w5.Part1 = p6
  828. w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  829. w6 = Instance.new("Weld", p6)
  830. w6.Name = "RightArmPlate_Weld"
  831. w6.Part0 = p6
  832. w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  833. w6.Part1 = p7
  834. w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  835. w7 = Instance.new("Weld", p7)
  836. w7.Name = "Part_Weld"
  837. w7.Part0 = p7
  838. w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  839. w7.Part1 = p8
  840. w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  841. w8 = Instance.new("Weld", p8)
  842. w8.Name = "Part_Weld"
  843. w8.Part0 = p8
  844. w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  845. w8.Part1 = p9
  846. w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  847. w9 = Instance.new("Weld", p9)
  848. w9.Name = "Part_Weld"
  849. w9.Part0 = p9
  850. w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  851. w9.Part1 = p10
  852. w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  853. w10 = Instance.new("Weld", p10)
  854. w10.Name = "Part_Weld"
  855. w10.Part0 = p10
  856. w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  857. w10.Part1 = p11
  858. w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  859. w11 = Instance.new("Weld", p11)
  860. w11.Name = "Part_Weld"
  861. w11.Part0 = p11
  862. w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  863. w11.Part1 = p12
  864. w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  865. w12 = Instance.new("Weld", p12)
  866. w12.Name = "Part_Weld"
  867. w12.Part0 = p12
  868. w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  869. w12.Part1 = p13
  870. w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  871. w13 = Instance.new("Weld", p13)
  872. w13.Name = "Part_Weld"
  873. w13.Part0 = p13
  874. w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  875. w13.Part1 = p14
  876. w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  877. w14 = Instance.new("Weld", p14)
  878. w14.Name = "Part_Weld"
  879. w14.Part0 = p14
  880. w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  881. w14.Part1 = p15
  882. w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  883. w15 = Instance.new("Weld", p15)
  884. w15.Name = "Part_Weld"
  885. w15.Part0 = p15
  886. w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  887. w15.Part1 = p16
  888. w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  889. w16 = Instance.new("Weld", p16)
  890. w16.Name = "Part_Weld"
  891. w16.Part0 = p16
  892. w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  893. w16.Part1 = p17
  894. w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  895. w17 = Instance.new("Weld", p17)
  896. w17.Name = "Part_Weld"
  897. w17.Part0 = p17
  898. w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  899. w17.Part1 = p18
  900. w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  901. w18 = Instance.new("Weld", p18)
  902. w18.Name = "Part_Weld"
  903. w18.Part0 = p18
  904. w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  905. w18.Part1 = p19
  906. w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  907. m2.Parent = rarm
  908. m2:MakeJoints()
  909. ----------------------------------------------------
  910. local cor2 = Instance.new("Part", rarm.RightArm)
  911. cor2.Name = "Thingy"
  912. cor2.Locked = true
  913. cor2.BottomSurface = 0
  914. cor2.CanCollide = false
  915. cor2.Size = Vector3.new(1, 1, 1)
  916. cor2.Transparency = 1
  917. cor2.TopSurface = 0
  918. corw2 = Instance.new("Weld", cor2)
  919. corw2.Part0 = rarm
  920. corw2.Part1 = cor2
  921. corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  922. corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  923. weld2 = Instance.new("Weld", rarm.RightArm)
  924. weld2.Part0 = cor2
  925. weld2.Part1 = rarm.RightArm.RightArmPlate
  926. weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  927.  
  928.  
  929. --Zyrodoxa
  930. m8 = Instance.new("Model")
  931. m8.Name = "Zyrodoxa"
  932.  
  933. p16 = Instance.new("Part", m8)
  934. p16.BrickColor = BrickColor.new("Instutional white")
  935. p16.Material = Enum.Material.Metal
  936. p16.Name = "Handle"
  937. p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
  938. p16.CanCollide = false
  939. p16.Locked = true
  940. p16.FormFactor = Enum.FormFactor.Custom
  941. p16.Size = Vector3.new(0, 0, 0)
  942. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  943. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  944. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  945. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  946. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  947. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  948. b16 = Instance.new("BlockMesh", p16)
  949. b16.Name = "Mesh"
  950. b16.Scale = Vector3.new(0, 0, 0)
  951.  
  952. w16 = Instance.new("Weld", p16)
  953. w16.Name = "Block_Weld"
  954. w16.Part0 = p16
  955. w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
  956. w16.Part1 = p17
  957. w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
  958.  
  959. m8.Parent = rarm
  960. m8:MakeJoints()
  961. ----------------------------------------------------
  962. local cor8 = Instance.new("Part", rarm.Zyrodoxa)
  963. cor8.Name = "Thingy"
  964. cor8.Locked = true
  965. cor8.BottomSurface = 0
  966. cor8.CanCollide = false
  967. cor8.Size = Vector3.new(1, 1, 1)
  968. cor8.Transparency = 1
  969. cor8.TopSurface = 0
  970. corw8 = Instance.new("Weld", cor8)
  971. corw8.Part0 = rarm
  972. corw8.Part1 = cor8
  973. corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
  974. corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  975. weld8 = Instance.new("Weld", rarm.Zyrodoxa)
  976. weld8.Part0 = cor8
  977. weld8.Part1 = rarm.Zyrodoxa.Handle
  978. weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  979. ----------------------------------------------------
  980. models = {m,m2,m3,m4,m5,m6,m7,m8}
  981. parts = {}
  982. Stepped:connect(function()
  983. for i,v in pairs(models) do
  984. for _, a in pairs(v:GetChildren()) do
  985. if v:IsA("Part") and v.Name ~= "Thingy" then
  986. table.insert(parts, a)
  987. for i,v in pairs(parts) do
  988. v.CanCollide = false
  989. end
  990. end
  991. end
  992. end
  993. end)
  994. ----------------------------------------------------
  995. local animpose = "Idle1"
  996. local lastanimpose = "Idle1"
  997. local grab = false
  998. local Smooth = 1
  999. local sine = 0
  1000. local change = 1
  1001. local val = 0
  1002. local ffing = false
  1003. ----------------------------------------------------
  1004. --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
  1005.  
  1006. function FindHumanoids()
  1007. local function c_region(Position, Size)
  1008. local SizeOffset = Size/2
  1009. local Point1 = Position - SizeOffset
  1010. local Point2 = Position + SizeOffset
  1011. local a = Instance.new("Part", workspace)
  1012. a.Anchored = true
  1013. a.Size = Size
  1014. a.Position = Position
  1015. print("Hey!, I'm making a part!")
  1016. return Region3.new(Point1, Point2)
  1017. end
  1018.  
  1019. local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1020. local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1021. local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1022. local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1023.  
  1024. local regions = {a, b, c, d}
  1025.  
  1026. local found_humanoids = {}
  1027. local already_found = {char.Name}
  1028.  
  1029. for _, region in pairs(regions) do
  1030. for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
  1031. print(part, part.Parent, part.Name) ---nope
  1032. if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  1033. local humanoid = part.Parent:FindFirstChild("Humanoid")
  1034. local name = humanoid.Parent.Name
  1035. local exists = false
  1036. for _, n in pairs(already_found) do
  1037. if n == name then
  1038. exists = true
  1039. end
  1040. end
  1041. if not exists then
  1042. table.insert(already_found, name)
  1043. table.insert(found_humanoids, humanoid)
  1044. end
  1045. elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  1046. local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  1047. local name = humanoid.Parent.Parent.Name
  1048. local exists = false
  1049. for _, n in pairs(already_found) do
  1050. if n == name then
  1051. exists = true
  1052. end
  1053. end
  1054. if not exists then
  1055. table.insert(already_found, name)
  1056. table.insert(found_humanoids, humanoid)
  1057. end
  1058. end
  1059. end
  1060. end
  1061. return found_humanoids
  1062. end
  1063.  
  1064. local humanoids = FindHumanoids()
  1065. if #humanoids == 0 then
  1066. for i, v in pairs(humanoids) do
  1067. print(v.Parent.Name)
  1068. if Debounces.Slashing == true then
  1069. v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
  1070. elseif Debounces.Slashing == false then
  1071. wait()
  1072. end
  1073. end
  1074. wait(0.3)
  1075. end]]--
  1076. ----------------------------------------------------
  1077. --[[mouse.KeyDown:connect(function(key)
  1078. if key == "f" then
  1079. if Debounces.CanAttack == true then
  1080. Debounces.CanAttack = false
  1081. Debounces.NoIdl = true
  1082. Debounces.on = true
  1083. for i = 1, 20 do
  1084. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1085. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1086. CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
  1087. CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1088. CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1089. CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1090. CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1091. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
  1092. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1093. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
  1094. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1095. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
  1096. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
  1097. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
  1098. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
  1099. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1100. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
  1101. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1102. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
  1103. if Debounces.on == false then
  1104. break
  1105. end
  1106. fat.Event:wait()
  1107. end
  1108. end
  1109. end
  1110. end)]]--
  1111. ----------------------------------------------------
  1112. mod4 = Instance.new("Model",char)
  1113.  
  1114. ptez = {0.7, 0.8, 0.9, 1}
  1115.  
  1116. function FindNearestTorso(Position,Distance,SinglePlayer)
  1117. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1118. local List = {}
  1119. for i,v in pairs(workspace:GetChildren())do
  1120. if v:IsA("Model")then
  1121. if v:findFirstChild("Torso")then
  1122. if v ~= char then
  1123. if(v.Torso.Position -Position).magnitude <= Distance then
  1124. table.insert(List,v)
  1125. end
  1126. end
  1127. end
  1128. end
  1129. end
  1130. return List
  1131. end
  1132.  
  1133. function Slam()
  1134. local part=Instance.new('Part',mod4)
  1135. part.Anchored=true
  1136. part.CanCollide=false
  1137. part.FormFactor='Custom'
  1138. part.Size=Vector3.new(.2,.2,.2)
  1139. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  1140. part.Transparency=.7
  1141. part.BrickColor=BrickColor.new('Really black')
  1142. mesh=Instance.new('SpecialMesh',part)
  1143. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  1144. mesh.Scale=Vector3.new(3,3,3)
  1145. local part2=Instance.new('Part',mod4)
  1146. part2.Anchored=true
  1147. part2.CanCollide=false
  1148. part2.FormFactor='Custom'
  1149. part2.Size=Vector3.new(.2,.2,.2)
  1150. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  1151. part2.Transparency=.7
  1152. part2.BrickColor=BrickColor.new('Institutional white')
  1153. mesh2=Instance.new('SpecialMesh',part2)
  1154. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  1155. mesh2.Scale=Vector3.new(3,1.5,3)
  1156. x = Instance.new("Sound",larm)
  1157. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  1158. x.Pitch = ptez[math.random(1,#ptez)]
  1159. x.Volume = 1
  1160. wait(.1)
  1161. x1 = Instance.new("Sound",larm)
  1162. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  1163. x1.Pitch = ptez[math.random(1,#ptez)]
  1164. x1.Volume = 1
  1165. wait(.1)
  1166. x:Play()
  1167. x1:Play()
  1168. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  1169. if v:FindFirstChild('Humanoid') then
  1170. v.Humanoid:TakeDamage(math.random(30,45))
  1171. end
  1172. end
  1173. coroutine.resume(coroutine.create(function()
  1174. for i=0,0.62,0.13 do
  1175. wait()
  1176. part.CFrame=part.CFrame
  1177. part.Transparency=i
  1178. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  1179. part2.CFrame=part2.CFrame
  1180. part2.Transparency=i
  1181. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  1182. end
  1183. part.Parent=nil
  1184. part2.Parent=nil
  1185. x:Destroy()
  1186. end))
  1187. end
  1188. ----------------------------------------------------
  1189. wPart = function(x,y,z,color,tr,cc,an,parent)
  1190. local wp = Instance.new('WedgePart',parent or Weapon)
  1191. wp.formFactor = 'Custom'
  1192. wp.Size = Vector3.new(x,y,z)
  1193. wp.BrickColor = BrickColor.new(color)
  1194. wp.CanCollide = cc
  1195. wp.Transparency = tr
  1196. wp.Anchored = an
  1197. wp.TopSurface,wp.BottomSurface = 0,0
  1198. return wp
  1199. end
  1200.  
  1201. Mesh = function(par,num,x,y,z)
  1202. local msh = _
  1203. if num == 1 then
  1204. msh = Instance.new("CylinderMesh",par)
  1205. elseif num == 2 then
  1206. msh = Instance.new("SpecialMesh",par)
  1207. msh.MeshType = 3
  1208. elseif num == 3 then
  1209. msh = Instance.new("BlockMesh",par)
  1210. elseif num == 4 then
  1211. msh = Instance.new("SpecialMesh",par)
  1212. msh.MeshType = "Torso"
  1213. elseif type(num) == 'string' then
  1214. msh = Instance.new("SpecialMesh",par)
  1215. msh.MeshId = num
  1216. end
  1217. msh.Scale = Vector3.new(x,y,z)
  1218. return msh
  1219. end
  1220.  
  1221. local function CFrameFromTopBack(at, top, back)
  1222. local right = top:Cross(back)
  1223. return CFrame.new(at.x, at.y, at.z,
  1224. right.x, top.x, back.x,
  1225. right.y, top.y, back.y,
  1226. right.z, top.z, back.z)
  1227. end
  1228.  
  1229. function Triangle(a, b, c)
  1230. local edg1 = (c-a):Dot((b-a).unit)
  1231. local edg2 = (a-b):Dot((c-b).unit)
  1232. local edg3 = (b-c):Dot((a-c).unit)
  1233. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1234. a, b, c = a, b, c
  1235. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1236. a, b, c = b, c, a
  1237. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1238. a, b, c = c, a, b
  1239. else
  1240. print("unreachable")
  1241. end
  1242. local len1 = (c-a):Dot((b-a).unit)
  1243. local len2 = (b-a).magnitude - len1
  1244. local width = (a + (b-a).unit*len1 - c).magnitude
  1245. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1246. local list = {}
  1247. if len1 > 0.01 then
  1248. local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  1249. local sz = Vector3.new(0.2, width, len1)
  1250. w1.Size = sz
  1251. local sp = Mesh(w1,2,0,0,0)
  1252. sp.MeshType='Wedge'
  1253. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  1254. w1:BreakJoints()
  1255. w1.Anchored = true
  1256. w1.Transparency = 0.7
  1257. Spawn(function()
  1258. for i=0,1,0.1 do
  1259. fat.Event:wait()
  1260. w1.Transparency=w1.Transparency+0.03
  1261. end
  1262. end)
  1263. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1264. table.insert(list,w1)
  1265. end
  1266. if len2 > 0.01 then
  1267. local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  1268. local sz = Vector3.new(0.2, width, len2)
  1269. w2.Size = sz
  1270. local sp = Mesh(w2,2,0,0,0)
  1271. sp.MeshType='Wedge'
  1272. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  1273. w2:BreakJoints()
  1274. w2.Anchored = true
  1275. w2.Transparency = 0.7
  1276. Spawn(function()
  1277. for i=0,1,0.1 do
  1278. fat.Event:wait()
  1279. w2.Transparency=w2.Transparency+0.03
  1280. end
  1281. end)
  1282. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1283. table.insert(list,w2)
  1284. end
  1285. return unpack(list)
  1286. end
  1287.  
  1288. function trail(p,t,h)
  1289. Spawn(function()
  1290. local blcf = p.CFrame
  1291. local scfr = blcf
  1292. for i=1,t do
  1293. local blcf = p.CFrame
  1294. if scfr and (p.Position-scfr.p).magnitude > .1 then
  1295. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1296. if a then game.Debris:AddItem(a,1) end
  1297. if b then game.Debris:AddItem(b,1) end
  1298. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1299. if a then game.Debris:AddItem(a,1) end
  1300. if b then game.Debris:AddItem(b,1) end
  1301. scfr = blcf
  1302. elseif not scfr then
  1303. scfr = blcf
  1304. end
  1305. fat.Event:wait()
  1306. end
  1307. scfr=nil
  1308. end)
  1309. end
  1310. --trail(char.Sword.Blade,1e1000,5)
  1311. ----------------------------------------------------
  1312. function Dmg()
  1313. local partofdeath = rarm.Zyrodoxa.Hitbox
  1314. local function CreateRegion3FromLocAndSize(Position, Size)
  1315. local SizeOffset = Size/2
  1316. local Point1 = Position - SizeOffset
  1317. local Point2 = Position + SizeOffset
  1318. return Region3.new(Point1, Point2)
  1319. end
  1320. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  1321. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  1322. Spawn(function()
  1323. if Debounces.Slashing == true and Debounces.Slashed == false then
  1324. Debounces.Slashed = true
  1325. ypcall(function()
  1326. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  1327. humanoid:TakeDamage(math.random(10,18))
  1328. end)
  1329. wait(.4)
  1330. Debounces.Slashed = false
  1331. end
  1332. end)
  1333. end
  1334. end
  1335. ----------------------------------------------------
  1336. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  1337. ptz = {0.7, 0.8, 0.9, 1}
  1338. idz = {"161006212", "161006195"}
  1339. function attackone()
  1340. for i = 1, 13 do
  1341. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  1342. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
  1343. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
  1344. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  1345. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
  1346. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
  1347. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
  1348. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
  1349. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
  1350. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
  1351. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  1352. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
  1353. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  1354. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  1355. if Debounces.on == false then
  1356. break
  1357. end
  1358. fat.Event:wait()
  1359. end
  1360. trail(rarm.Zyrodoxa.Hitbox,20,2)
  1361. Debounces.Slashing = true
  1362. wait(0.2)
  1363. --[[z = Instance.new("Sound", hed)
  1364. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1365. z.Pitch = ptz[math.random(1,#ptz)]
  1366. z.Volume = 1
  1367. wait(.01)
  1368. z:Play()]]--
  1369. for i = 1, 14 do
  1370. Dmg()
  1371. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  1372. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
  1373. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
  1374. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
  1375. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
  1376. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
  1377. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
  1378. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1379. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
  1380. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1381. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  1382. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
  1383. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  1384. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
  1385. if Debounces.on == false then break end
  1386. rs:wait()
  1387. end
  1388. Debounces.Slashing = false
  1389. end
  1390. function attacktwo()
  1391. Debounces.Slashing = true
  1392. for i = 1, 14 do
  1393. Dmg()
  1394. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  1395. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
  1396. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
  1397. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1398. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
  1399. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1400. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
  1401. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1402. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  1403. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1404. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
  1405. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1406. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
  1407. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1408. if Debounces.on == false then
  1409. break
  1410. end
  1411. rs:wait()
  1412. end
  1413. end
  1414. ----------------------------------------------------
  1415.  
  1416. ----------------------------------------------------
  1417. definition = 5
  1418. bc = {}
  1419. bezierparts = {}
  1420. function NoOutline(Part)
  1421. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1422. end
  1423. function draw(p,d)
  1424. for i=1,d do
  1425. local t = i/d
  1426. bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
  1427. end
  1428.  
  1429. Spawn(function() fat.Event:wait()
  1430. for i,v in pairs(bezierparts) do
  1431. v.Transparency = 1
  1432. end
  1433. end)
  1434. end
  1435. --local points = {larm.Position,rarn.Position,invisipart.Position}
  1436. --draw(points,definition)
  1437.  
  1438. fat.Event:wait()
  1439.  
  1440. rpart = Instance.new("Part",rarm)
  1441. NoOutline(rpart)
  1442. rpart.Anchored = false
  1443. rpart.Size = Vector3.new(1,1,1)
  1444. rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  1445. rpart.Transparency = 1
  1446. newWeld(rarm, rpart, 0, 0, 0)
  1447. rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  1448. lpart = Instance.new("Part",larm)
  1449. NoOutline(lpart)
  1450. lpart.Anchored = false
  1451. lpart.Size = Vector3.new(1,1,1)
  1452. lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  1453. lpart.Transparency = 1
  1454. newWeld(larm, lpart, 0, 0, 0)
  1455. lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  1456. invisipart = Instance.new("Part",torso)
  1457. NoOutline(invisipart)
  1458. invisipart.Anchored = false
  1459. invisipart.Size = Vector3.new(1,1,1)
  1460. invisipart.Transparency = 1
  1461. invisipart.CFrame = torso.CFrame
  1462. newWeld(torso, invisipart, 0, 0, 0)
  1463. invisipart.Weld.C1 = CFrame.new(0, 0, 6)
  1464. table.insert(bezierparts, rpart)
  1465. table.insert(bezierparts, lpart)
  1466. table.insert(bezierparts, invisipart)
  1467. for i = 1, 40 do
  1468. local points = {lpart.Position,invisipart.Position,rpart.Position}
  1469. draw(points,definition)
  1470. --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
  1471. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
  1472. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1473. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
  1474. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1475. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
  1476. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1477. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1478. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1479. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
  1480. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1481. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
  1482. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1483. if Debounces.on == false then
  1484. break
  1485. end
  1486. fat.Event:wait()
  1487. end
  1488. for i,v in pairs(bezierparts) do
  1489. v:Destroy()
  1490. end
  1491. --draw(points,definition)
  1492. if Debounces.CanAttack == false then
  1493. Debounces.CanAttack = true
  1494. Debounces.NoIdl = false
  1495. Debounces.on = false
  1496. end
  1497.  
  1498. ----------------------------------------------------
  1499. ----------------------------------------------------
  1500. pt = {6.6, 6.8, 7, 7.2, 7.4}
  1501. mouse.KeyDown:connect(function(key)
  1502. if key == "q" then
  1503. if Debounces.CanJoke == true then
  1504. Debounces.CanJoke = false
  1505. u = Instance.new("Sound",char)
  1506. u.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1507. u.Pitch = pt[math.random(1,#pt)]
  1508. u.Volume = 0.3
  1509. u2 = Instance.new("Sound",char)
  1510. u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1511. u2.Pitch = u.Pitch
  1512. u2.Volume = 0.3
  1513. u3 = Instance.new("Sound",char)
  1514. u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1515. u3.Pitch = u.Pitch
  1516. u3.Volume = 0.3
  1517. wait(.01)
  1518. u:Play()
  1519. u2:Play()
  1520. u3:Play()
  1521. wait(1.5)
  1522. u:Destroy()
  1523. u2:Destroy()
  1524. u3:Destroy()
  1525. if Debounces.CanJoke == false then
  1526. Debounces.CanJoke = true
  1527. end
  1528. end
  1529. end
  1530. end)
  1531. ----------------------------------------------------
  1532. ----------------------------------------------------
  1533. ----------------------------------------------------
  1534. Grab = false
  1535. mouse.KeyDown:connect(function(key)
  1536. if key == "g" then
  1537. Debounces.on = true
  1538. Debounces.NoIdl = true
  1539. Debounces.ks = true
  1540. if Grab == false then
  1541. gp = nil
  1542. for i = 1, 20 do
  1543. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  1544. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1545. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
  1546. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1547. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  1548. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1549. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  1550. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1551. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
  1552. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1553. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
  1554. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1555. if Debounces.on == false then break end
  1556. fat.Event:wait()
  1557. end
  1558. con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
  1559. ht = hit.Parent
  1560. for i,v in pairs(ht:GetChildren()) do
  1561. if v:IsA("Part") then
  1562. v.CanCollide = false
  1563. v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  1564. end
  1565. end
  1566. hum1=ht:FindFirstChild('Humanoid')
  1567. if hum1 ~= nil then
  1568. if Debounces.ks==true then
  1569. z = Instance.new("Sound",hed)
  1570. z.SoundId = "rbxassetid://169380525"
  1571. z.Volume = 1
  1572. z:Play()
  1573. Debounces.ks=false
  1574. end
  1575. hum1.PlatformStand=true
  1576. hum1:ChangeState'Physics'
  1577. gp = ht
  1578. Grab = true
  1579. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
  1580. asd.Parent = larm
  1581. asd.Name = "asd"
  1582. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  1583. stanceToggle = "Grabbed"
  1584. --[[elseif hum1 == nil then
  1585. con1:disconnect()
  1586. wait() return]]--
  1587. end
  1588. end)
  1589. for i = 1, 20 do
  1590. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  1591. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1592. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  1593. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1594. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
  1595. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1596. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1597. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1598. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  1599. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1600. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
  1601. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1602. if Debounces.on == false then break end
  1603. fat.Event:wait()
  1604. end
  1605. con1:disconnect()
  1606. Debounces.on = false
  1607. Debounces.NoIdl = false
  1608. elseif Grab == true then
  1609. Grab = false
  1610. --[[for i = 1, 16 do
  1611. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
  1612. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
  1613. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  1614. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1615. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  1616. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1617. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  1618. if Debounces.on == false then end
  1619. rs:wait()
  1620. end]]--
  1621. for i = 1, 16 do
  1622. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
  1623. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
  1624. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
  1625. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
  1626. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  1627. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1628. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
  1629. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1630. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  1631. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  1632. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1633. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1634. if Debounces.on == false then end
  1635. rs:wait()
  1636. end
  1637. for i = 1, 12 do
  1638. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
  1639. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1640. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
  1641. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1642. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
  1643. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1644. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
  1645. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
  1646. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
  1647. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  1648. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
  1649. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
  1650. if Debounces.on == false then end
  1651. rs:wait()
  1652. end
  1653. Slam()
  1654. if gp ~= nil then
  1655. for i,v in pairs(larm:GetChildren()) do
  1656. if v.Name == "asd" and v:IsA("Weld") then
  1657. v:Remove()
  1658. end
  1659. if v:IsA("Part") then
  1660. v.CanCollide = true
  1661. v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
  1662. end
  1663. end
  1664. end
  1665. stanceToggle = "Idle1"
  1666. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  1667. bv.maxForce = Vector3.new(400000, 400000, 400000)
  1668. bv.P = 125000
  1669. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  1670. ht=nil
  1671. Debounces.on = false
  1672. Debounces.NoIdl = false
  1673. elseif ht == nil then wait()
  1674. Grab = false
  1675. Debounces.on = false
  1676. Debounces.NoIdl = false
  1677. end
  1678. end
  1679. end)
  1680. ----------------------------------------------------
  1681. Change = false
  1682. mouse.KeyDown:connect(function(key)
  1683. if key == "n" then
  1684. if Change == false then
  1685. Change = true
  1686. stanceToggle = "Idle2"
  1687. elseif Change == true then
  1688. Change = false
  1689. stanceToggle = "Idle1"
  1690. end
  1691. end
  1692. end)
  1693. ----------------------------------------------------
  1694. mouse.KeyDown:connect(function(key)
  1695. if string.byte(key) == 52 then
  1696. Swing = 2
  1697. char.Humanoid.WalkSpeed = 28
  1698. end
  1699. end)
  1700. mouse.KeyUp:connect(function(key)
  1701. if string.byte(key) == 52 then
  1702. Swing = 1
  1703. char.Humanoid.WalkSpeed = 16
  1704. end
  1705. end)
  1706. local mouse2 = Player:GetMouse()
  1707. local running = false
  1708.  
  1709. mouse2.KeyDown:connect(function(key) -- Run function
  1710. if key == "e" then
  1711. running = true
  1712. local keyConnection = mouse.KeyUp:connect(function(key)
  1713. if string.byte(key) == 48 then
  1714. running = false
  1715. end
  1716. end)
  1717. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
  1718. end
  1719. end)
  1720.  
  1721. mouse2.KeyUp:connect(function(key)
  1722. if key == "e" then
  1723. running = false
  1724. Character.Humanoid.WalkSpeed = 16
  1725. end
  1726. end)
  1727. function Ban()
  1728. Debounces.on = true
  1729. Debounces.NoIdl = true
  1730. Debounces.ks = true
  1731. local hitbox = Instance.new("Part",banh)
  1732. hitbox.Name = "HurtBox"
  1733. hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
  1734. hitbox.Transparency = 1
  1735. local hitboxwe = Instance.new("Weld",hitbox)
  1736. hitboxwe.Part0 = hitbox
  1737. hitboxwe.Part1 = banh
  1738. hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908)
  1739. function onTouched(part)
  1740. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  1741. if human then
  1742. human.Parent:Destroy()
  1743. ban2:Play()
  1744. wait(1.4)
  1745. ban:Play()
  1746. wait(1.2)
  1747. omg:Play()
  1748. wait(2.6)
  1749. scream:Play()
  1750. wait(4.6)
  1751. scream:Stop()
  1752. end
  1753. end
  1754. hitbox.Touched:connect(onTouched)
  1755. for i = 0,1 , 0.09 do
  1756. banw.C0 = banw.C0:lerp(CFrame.new(0.0185546875, -1.99783754, -0.149715185, -0.997520864, 0.00503101526, 0.0701895654, -0.0643144846, -0.469972789, -0.880334616, 0.0285583287, -0.882666826, 0.469131112),i)
  1757. game:GetService("RunService").RenderStepped:wait()
  1758. end
  1759. hitbox:Destroy()
  1760. banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
  1761. Debounces.on = false
  1762. Debounces.NoIdl = false
  1763. Debounces.ks = false
  1764. end
  1765. mouse.Button1Down:connect(Ban)
  1766. ----------------------------------------------------
  1767.  
  1768. jump = false
  1769. rs:connect(function()
  1770. if char.Humanoid.Jump == true then
  1771. jump = true
  1772. else
  1773. jump = false
  1774. end
  1775. char.Humanoid.FreeFalling:connect(function(f)
  1776. if f then
  1777. ffing = true
  1778. else
  1779. ffing = false
  1780. end
  1781. end)
  1782. sine = sine + change
  1783. if jump == true then
  1784. animpose = "Jumping"
  1785. elseif ffing == true then
  1786. animpose = "Freefalling"
  1787. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1788. animpose = "Idle"
  1789. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1790. animpose = "Walking"
  1791. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1792. animpose = "Running"
  1793. end
  1794. RightLeg = CFrame.new(0.5,-1,0)
  1795. LeftLeg = CFrame.new(-0.5,-1,0)
  1796.  
  1797. lefth = (torso.CFrame*LeftLeg)
  1798. righth = (torso.CFrame*RightLeg)
  1799.  
  1800. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1801.  
  1802. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1803.  
  1804. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1805. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1806. if animpose ~= lastanimpose then
  1807. sine = 0
  1808. if Debounces.NoIdl == false then
  1809. if stanceToggle == "Idle1" then
  1810. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
  1811. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
  1812. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
  1813. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
  1814. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
  1815. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
  1816. elseif stanceToggle == "Idle2" then
  1817. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
  1818. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
  1819. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
  1820. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
  1821. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
  1822. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
  1823. end
  1824. fat.Event:wait()
  1825. end
  1826. else
  1827. end
  1828. lastanimpose = animpose
  1829. if Debounces.NoIdl == false then
  1830. if animpose == "Idle" then
  1831. change = 0.5
  1832. if stanceToggle == "Idle1" then
  1833. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1834. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
  1835.  
  1836. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
  1837. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1838. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
  1839. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1840. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
  1841. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
  1842. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  1843. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
  1844. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  1845. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
  1846. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  1847. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
  1848. elseif stanceToggle == "Idle2" then
  1849.  
  1850. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1851. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
  1852. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  1853. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
  1854. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  1855. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
  1856. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1857. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1858. --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
  1859. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1860. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
  1861. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
  1862. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
  1863. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
  1864. elseif stanceToggle == "Grabbed" then
  1865. grab = true
  1866. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1867. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1868. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
  1869. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  1870. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
  1871. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  1872. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
  1873. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1874. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1875. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1876. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  1877. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1878. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1879. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1880. end
  1881. elseif animpose == "Walking" then
  1882. if stanceToggle == "Grabbed" then
  1883. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1884. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1885. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  1886. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1887. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
  1888. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  1889. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  1890. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  1891. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  1892. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1893. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1894. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  1895. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1896. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  1897. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1898. elseif stanceToggle ~= "Grabbed" then
  1899. change = 1
  1900. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1901. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1902.  
  1903. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  1904. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1905. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  1906. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1907. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  1908. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  1909. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  1910. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1911. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1912. --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  1913. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  1914. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1915. --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  1916. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  1917. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1918. end
  1919. elseif animpose == "Running" then
  1920. change = 1
  1921. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1922. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1923.  
  1924. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
  1925. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1926. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
  1927. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1928. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
  1929. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
  1930. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
  1931. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1932. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  1933. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1934. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  1935. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1936. elseif animpose == "Jumping" then
  1937.  
  1938. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1939. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1940. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
  1941. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1942. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  1943. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1944. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  1945. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1946. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1947. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1948. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1949. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1950. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1951. elseif animpose == "Freefalling" then
  1952.  
  1953. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1954. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1955. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
  1956. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1957. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
  1958. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1959. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  1960. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  1961. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1962. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  1963. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1964. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
  1965. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1966. end
  1967. end
  1968. end)
  1969. hum.MaxHealth = math.huge
  1970. wait(3)
  1971. hum.Health = math.huge
  1972.  
  1973. coroutine.wrap(function()
  1974. wait(0.1)
  1975. game.Base.CanCollide = false
  1976. end)
  1977. --By quuisiYT(quu#9149)
  1978. Player=game:GetService("Players").LocalPlayer
  1979. Character=Player.Character
  1980. char = Character
  1981. local scream = Instance.new("Sound",char.Torso)
  1982. scream.SoundId = "rbxassetid://901030512"
  1983. scream.Volume = 100
  1984. local omg = Instance.new("Sound",char.Torso)
  1985. omg.SoundId = "rbxassetid://1090126885"
  1986. omg.Volume = 1000
  1987. local ban2 = Instance.new("Sound",char.Torso)
  1988. ban2.SoundId = "rbxassetid://135925117"
  1989. ban2.Volume = 100
  1990. local ban = Instance.new("Sound",char.Torso)
  1991. ban.SoundId = "rbxassetid://948494432"
  1992. ban.Volume = 100
  1993. local banh = Instance.new("Part",char)
  1994. banh.Name = "BAN!"
  1995. banh.Size = Vector3.new(1, 5.2, 1)
  1996. banh.CanCollide = false
  1997. local banm = Instance.new("FileMesh",banh)
  1998. banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
  1999. banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
  2000. banm.Scale = Vector3.new(0.5,0.5,0.5)
  2001. local banw = Instance.new("Weld",banh)
  2002. banw.Part0 = banh
  2003. banw.Part1 = char["Right Arm"]
  2004. banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
  2005. PlayerGui=Player.PlayerGui
  2006. Backpack=Player.Backpack
  2007. Torso=Character.Torso
  2008. Head=Character.Head
  2009. Humanoid=Character.Humanoid
  2010. m=Instance.new('Model',Character)
  2011. LeftArm=Character["Left Arm"]
  2012. LeftLeg=Character["Left Leg"]
  2013. RightArm=Character["Right Arm"]
  2014. RightLeg=Character["Right Leg"]
  2015. LS=Torso["Left Shoulder"]
  2016. LH=Torso["Left Hip"]
  2017. RS=Torso["Right Shoulder"]
  2018. RH=Torso["Right Hip"]
  2019. Face = Head.face
  2020. Neck=Torso.Neck
  2021. it=Instance.new
  2022. attacktype=1
  2023. vt=Vector3.new
  2024. cf=CFrame.new
  2025. euler=CFrame.fromEulerAnglesXYZ
  2026. angles=CFrame.Angles
  2027. cloaked=false
  2028. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2029. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2030. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2031. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2032. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2033. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2034. RootPart=Character.HumanoidRootPart
  2035. RootJoint=RootPart.RootJoint
  2036. RootCF=euler(-1.57,0,3.14)
  2037. attack = false
  2038. attackdebounce = false
  2039. deb=false
  2040. equipped=true
  2041. hand=false
  2042. MMouse=nil
  2043. combo=0
  2044. mana=0
  2045. trispeed=1
  2046. pathtrans=.7
  2047. attackmode='none'
  2048. local idle=0
  2049. local Anim="Idle"
  2050. local Effects={}
  2051. local gun=false
  2052. local shoot=false
  2053. player=nil
  2054. cloak=false
  2055. lightcolor='Bright blue'
  2056.  
  2057. local Color1=Torso.BrickColor
  2058.  
  2059.  
  2060. mouse=Player:GetMouse()
  2061. --save shoulders
  2062. RSH, LSH=nil, nil
  2063. --welds
  2064. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2065. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2066. LH=Torso["Left Hip"]
  2067. RH=Torso["Right Hip"]
  2068. TorsoColor=Torso.BrickColor
  2069. function NoOutline(Part)
  2070. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2071. end
  2072.  
  2073.  
  2074.  
  2075. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2076. local fp=it("Part")
  2077. fp.formFactor=formfactor
  2078. fp.Parent=parent
  2079. fp.Reflectance=reflectance
  2080. fp.Transparency=transparency
  2081. fp.CanCollide=false
  2082. fp.Locked=true
  2083. fp.BrickColor=brickcolor
  2084. fp.Name=name
  2085. fp.Size=size
  2086. fp.Position=Torso.Position
  2087. NoOutline(fp)
  2088. fp.Material="SmoothPlastic"
  2089. fp:BreakJoints()
  2090. return fp
  2091. end
  2092.  
  2093. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2094. local mesh=it(Mesh)
  2095. mesh.Parent=part
  2096. if Mesh=="SpecialMesh" then
  2097. mesh.MeshType=meshtype
  2098. if meshid~="nil" then
  2099. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2100. end
  2101. end
  2102. mesh.Offset=offset
  2103. mesh.Scale=scale
  2104. return mesh
  2105. end
  2106.  
  2107. function weld(parent,part0,part1,c0)
  2108. local weld=it("Weld")
  2109. weld.Parent=parent
  2110. weld.Part0=part0
  2111. weld.Part1=part1
  2112. weld.C0=c0
  2113. return weld
  2114. end
  2115.  
  2116. local Color1=Torso.BrickColor
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122. Player=game:GetService('Players').LocalPlayer
  2123. Character=Player.Character
  2124. Mouse=Player:GetMouse()
  2125. m=Instance.new('Model',Character)
  2126.  
  2127.  
  2128. local function weldBetween(a, b)
  2129. local weldd = Instance.new("ManualWeld")
  2130. weldd.Part0 = a
  2131. weldd.Part1 = b
  2132. weldd.C0 = CFrame.new()
  2133. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2134. weldd.Parent = a
  2135. return weldd
  2136. end
  2137.  
  2138. it=Instance.new
  2139.  
  2140. function nooutline(part)
  2141. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2142. end
  2143.  
  2144. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2145. local fp=it("Part")
  2146. fp.formFactor=formfactor
  2147. fp.Parent=parent
  2148. fp.Reflectance=reflectance
  2149. fp.Transparency=transparency
  2150. fp.CanCollide=false
  2151. fp.Locked=true
  2152. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2153. fp.Name=name
  2154. fp.Size=size
  2155. fp.Position=Character.Torso.Position
  2156. nooutline(fp)
  2157. fp.Material=material
  2158. fp:BreakJoints()
  2159. return fp
  2160. end
  2161.  
  2162. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2163. local mesh=it(Mesh)
  2164. mesh.Parent=part
  2165. if Mesh=="SpecialMesh" then
  2166. mesh.MeshType=meshtype
  2167. mesh.MeshId=meshid
  2168. end
  2169. mesh.Offset=offset
  2170. mesh.Scale=scale
  2171. return mesh
  2172. end
  2173.  
  2174. function weld(parent,part0,part1,c0,c1)
  2175. local weld=it("Weld")
  2176. weld.Parent=parent
  2177. weld.Part0=part0
  2178. weld.Part1=part1
  2179. weld.C0=c0
  2180. weld.C1=c1
  2181. return weld
  2182. end
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192. --------------------------------
  2193. local p = game.Players.LocalPlayer
  2194. local char = p.Character
  2195. local mouse = p:GetMouse()
  2196. local larm = char["Left Arm"]
  2197. local rarm = char["Right Arm"]
  2198. local lleg = char["Left Leg"]
  2199. local rleg = char["Right Leg"]
  2200. local hed = char.Head
  2201. local torso = char.Torso
  2202. local hum = char.Humanoid
  2203. local cam = game.Workspace.CurrentCamera
  2204. local root = char.HumanoidRootPart
  2205. local deb = false
  2206. local shot = 0
  2207. local debris=game:service"Debris"
  2208. local l = game:GetService("Lighting")
  2209. local rs = game:GetService("RunService").RenderStepped
  2210. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  2211. math.randomseed(os.time())
  2212. for i,v in pairs(char:children()) do
  2213. if v:IsA("Hat") then
  2214. v:Destroy()
  2215. end
  2216. end
  2217. for i,v in pairs (hed:GetChildren()) do
  2218. if v:IsA("Sound") then
  2219. v:Destroy()
  2220. end
  2221. end
  2222. ----------------------------------------------------
  2223. z = Instance.new("Sound", torso)
  2224. z.SoundId = "rbxassetid://606241996" -- Put Music ID Here.
  2225. z.Looped = true
  2226. z.Volume = 1
  2227. wait(.1)
  2228. z:Play()
  2229. -----------------------------------------------------
  2230. Debounces = {
  2231. CanAttack = true;
  2232. NoIdl = false;
  2233. Slashing = false;
  2234. Slashed = false;
  2235. RPunch = false;
  2236. RPunched = false;
  2237. LPunch = false;
  2238. LPunched = false;
  2239. }
  2240. local Touche = {char.Name, }
  2241. ----------------------------------------------------
  2242. ----------------------------------------------------
  2243. ----------------------------------------------------
  2244. local LocalPlayer = game:GetService("Players").LocalPlayer
  2245. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  2246.  
  2247.  
  2248. local LocalPlayer = game:GetService("Players").LocalPlayer
  2249. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  2250.  
  2251. Character.Head.Transparency = 0
  2252.  
  2253. local Camisa = Instance.new("Part", Character)
  2254. Camisa.Name = "Camisa"
  2255.  
  2256. Camisa.CanCollide = false
  2257. Camisa.BrickColor = BrickColor.new("Institutional white")
  2258. Camisa.Transparency = 1
  2259. Camisa.Material = "Plastic"
  2260. Camisa.Size = Vector3.new(1.5, 1.5, 1)
  2261.  
  2262. local Weld = Instance.new("Weld", Camisa)
  2263. Weld.Part0 = Character.Torso
  2264. Weld.Part1 = Camisa
  2265. Weld.C1 = CFrame.new(0, 0, 0)
  2266. ----------------------------------------
  2267. local p = game.Players.LocalPlayer
  2268. local char = p.Character
  2269. local mouse = p:GetMouse()
  2270. local larm = char["Left Arm"]
  2271. local rarm = char["Right Arm"]
  2272. local lleg = char["Left Leg"]
  2273. local rleg = char["Right Leg"]
  2274. local hed = char.Head
  2275. local torso = char.Torso
  2276. local hum = char.Humanoid
  2277. local cam = game.Workspace.CurrentCamera
  2278. local root = char.HumanoidRootPart
  2279. local rj = root.RootJoint
  2280. local deb = false
  2281. local shot = 0
  2282. local stanceToggle = "Idle1"
  2283. local l = game:GetService("Lighting")
  2284. local rs = game:GetService("RunService").RenderStepped
  2285. local hb = game:GetService("RunService").Heartbeat
  2286. local Stepped = game:GetService("RunService").Stepped
  2287. math.randomseed(os.time())
  2288. hum.JumpPower = 100
  2289. ----------------------------------------------------
  2290. fat = Instance.new("BindableEvent",script)
  2291. fat.Name = "Heartbeat"
  2292.  
  2293. script:WaitForChild("Heartbeat")
  2294.  
  2295. frame = 1/30
  2296. tf = 0
  2297. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  2298. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  2299. lastframe = tick()
  2300. script.Heartbeat:Fire() --ayy lmao
  2301.  
  2302. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  2303. tf = tf + s
  2304. if tf >= frame then
  2305. if allowframeloss then
  2306. script.Heartbeat:Fire()
  2307. lastframe=tick()
  2308. else
  2309. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  2310. for i=1, math.floor(tf/frame) do
  2311. script.Heartbeat:Fire()
  2312. end
  2313. lastframe=tick()
  2314. end
  2315. if tossremainder then
  2316. tf = 0
  2317. else
  2318. tf = tf - frame * math.floor(tf/frame)
  2319. end
  2320. end
  2321. end)
  2322. ----------------------------------------------------
  2323. for i,v in pairs(char:children()) do
  2324. if v:IsA("Hat") then
  2325. v:Destroy()
  2326. end
  2327. end
  2328. for i,v in pairs (hed:GetChildren()) do
  2329. if v:IsA("Sound") then
  2330. v:Destroy()
  2331. end
  2332. end
  2333. ----------------------------------------------------
  2334. Debounces = {
  2335. CanAttack = true;
  2336. CanJoke = true;
  2337. NoIdl = false;
  2338. Slashing = false;
  2339. Slashed = false;
  2340. ks = false;
  2341. }
  2342. ----------------------------------------------------
  2343. function weld5(part0, part1, c0, c1)
  2344. weeld=Instance.new("Weld", part0)
  2345. weeld.Part0=part0
  2346. weeld.Part1=part1
  2347. weeld.C0=c0
  2348. weeld.C1=c1
  2349. return weeld
  2350. end
  2351. ----------------------------------------------------
  2352. function NewPart(prnt,siz,cf,trans,anc,mat,col)
  2353. local prt=Instance.new("Part")
  2354. prt.Parent=prnt
  2355. prt.Name="Part"
  2356. prt.Size=siz
  2357. prt.CanCollide=false
  2358. prt.Anchored=anc
  2359. prt.Locked=true
  2360. prt.Transparency = trans
  2361. prt.TopSurface=10
  2362. prt.BottomSurface=10
  2363. prt.FrontSurface=10
  2364. prt.BackSurface=10
  2365. prt.LeftSurface=10
  2366. prt.RightSurface=10
  2367. prt:BreakJoints()
  2368. prt.CFrame=cf or CFrame.new(30,10,30)
  2369. prt.Material=mat
  2370. prt.BrickColor=BrickColor.new(col)
  2371. m=Instance.new("SpecialMesh",prt)
  2372. m.MeshType=6
  2373. return prt
  2374. end
  2375. ----------------------------------------------------
  2376. function lerp(a, b, t) -- Linear interpolation
  2377. return a + (b - a)*t
  2378. end
  2379.  
  2380. function slerp(a, b, t) --Spherical interpolation
  2381. dot = a:Dot(b)
  2382. if dot > 0.99999 or dot < -0.99999 then
  2383. return t <= 0.5 and a or b
  2384. else
  2385. r = math.acos(dot)
  2386. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  2387. end
  2388. end
  2389.  
  2390. function matrixInterpolate(a, b, t)
  2391. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  2392. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  2393. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  2394. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  2395. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  2396. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  2397. local t = v1:Dot(v2)
  2398. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  2399. return CFrame.new()
  2400. end
  2401. return CFrame.new(
  2402. v0.x, v0.y, v0.z,
  2403. v1.x, v1.y, v1.z,
  2404. v2.x, v2.y, v2.z,
  2405. v3.x, v3.y, v3.z)
  2406. end
  2407. ----------------------------------------------------
  2408. function genWeld(a,b)
  2409. local w = Instance.new("Weld",a)
  2410. w.Part0 = a
  2411. w.Part1 = b
  2412. return w
  2413. end
  2414. function weld(a, b)
  2415. local weld = Instance.new("Weld")
  2416. weld.Name = "W"
  2417. weld.Part0 = a
  2418. weld.Part1 = b
  2419. weld.C0 = a.CFrame:inverse() * b.CFrame
  2420. weld.Parent = a
  2421. return weld;
  2422. end
  2423. ----------------------------------------------------
  2424. function Lerp(c1,c2,al)
  2425. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  2426. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  2427. for i,v in pairs(com1) do
  2428. com1[i] = v+(com2[i]-v)*al
  2429. end
  2430. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  2431. end
  2432. ----------------------------------------------------
  2433. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  2434. local wld = Instance.new("Weld", wp1)
  2435. wld.Part0 = wp0
  2436. wld.Part1 = wp1
  2437. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  2438. end
  2439. ----------------------------------------------------
  2440. newWeld(torso, larm, -1.5, 0.5, 0)
  2441. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  2442. newWeld(torso, rarm, 1.5, 0.5, 0)
  2443. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  2444. newWeld(torso, hed, 0, 1.5, 0)
  2445. newWeld(torso, lleg, -0.5, -1, 0)
  2446. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  2447. newWeld(torso, rleg, 0.5, -1, 0)
  2448. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  2449. newWeld(root, torso, 0, -1, 0)
  2450. torso.Weld.C1 = CFrame.new(0, -1, 0)
  2451. ----------------------------------------------------
  2452. z = Instance.new("Sound",char) --Smile: print("â?º")
  2453. z.SoundId = "rbxassetid://0"--410761150, 411368002
  2454. z.Looped = true
  2455. z.Pitch = 1
  2456. z.Volume = 1
  2457. wait(0.1)
  2458. z:Play()
  2459. ----------------------------------------------------
  2460. New = function(Object, Parent, Name, Data)
  2461. local Object = Instance.new(Object)
  2462. for Index, Value in pairs(Data or {}) do
  2463. Object[Index] = Value
  2464. end
  2465. Object.Parent = Parent
  2466. Object.Name = Name
  2467. return Object
  2468. end
  2469. ----------------------------------------------------
  2470. --Left Arm
  2471. m = Instance.new("Model")
  2472. m.Name = "LeftArm"
  2473.  
  2474. p4 = Instance.new("Part", m)
  2475. p4.BrickColor = BrickColor.new("Really black")
  2476. p4.Material = Enum.Material.SmoothPlastic
  2477. p4.Name = "LeftArmPlate"
  2478. p4.Size = Vector3.new(1, 2, 1)
  2479. p4.Transparency = 1
  2480. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2481. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2482. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2483. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2484. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2485. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2486. b4 = Instance.new("SpecialMesh", p4)
  2487. b4.MeshType = Enum.MeshType.Brick
  2488. b4.Name = "Mesh"
  2489. b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495. w1 = Instance.new("Weld", p1)
  2496. w1.Name = "Part_Weld"
  2497. w1.Part0 = p1
  2498. w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2499. w1.Part1 = p2
  2500. w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2501. w2 = Instance.new("Weld", p2)
  2502. w2.Name = "Part_Weld"
  2503. w2.Part0 = p2
  2504. w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2505. w2.Part1 = p3
  2506. w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2507. w3 = Instance.new("Weld", p3)
  2508. w3.Name = "LeftArmPlate_Weld"
  2509. w3.Part0 = p3
  2510. w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2511. w3.Part1 = p4
  2512. w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2513. w4 = Instance.new("Weld", p4)
  2514. w4.Name = "Part_Weld"
  2515. w4.Part0 = p4
  2516. w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2517. w4.Part1 = p5
  2518. w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2519. w5 = Instance.new("Weld", p5)
  2520. w5.Name = "Part_Weld"
  2521. w5.Part0 = p5
  2522. w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2523. w5.Part1 = p6
  2524. w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2525. w6 = Instance.new("Weld", p6)
  2526. w6.Name = "Part_Weld"
  2527. w6.Part0 = p6
  2528. w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2529. w6.Part1 = p7
  2530. w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2531. w7 = Instance.new("Weld", p7)
  2532. w7.Name = "Part_Weld"
  2533. w7.Part0 = p7
  2534. w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2535. w7.Part1 = p8
  2536. w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2537. w8 = Instance.new("Weld", p8)
  2538. w8.Name = "Part_Weld"
  2539. w8.Part0 = p8
  2540. w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2541. w8.Part1 = p9
  2542. w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2543. w9 = Instance.new("Weld", p9)
  2544. w9.Name = "Part_Weld"
  2545. w9.Part0 = p9
  2546. w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2547. w9.Part1 = p10
  2548. w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2549. w10 = Instance.new("Weld", p10)
  2550. w10.Name = "Part_Weld"
  2551. w10.Part0 = p10
  2552. w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2553. w10.Part1 = p11
  2554. w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2555. w11 = Instance.new("Weld", p11)
  2556. w11.Name = "Part_Weld"
  2557. w11.Part0 = p11
  2558. w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2559. w11.Part1 = p12
  2560. w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2561. w12 = Instance.new("Weld", p12)
  2562. w12.Name = "Part_Weld"
  2563. w12.Part0 = p12
  2564. w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2565. w12.Part1 = p13
  2566. w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2567. w13 = Instance.new("Weld", p13)
  2568. w13.Name = "Part_Weld"
  2569. w13.Part0 = p13
  2570. w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2571. w13.Part1 = p14
  2572. w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2573. w14 = Instance.new("Weld", p14)
  2574. w14.Name = "Part_Weld"
  2575. w14.Part0 = p14
  2576. w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2577. w14.Part1 = p15
  2578. w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2579. w15 = Instance.new("Weld", p15)
  2580. w15.Name = "Part_Weld"
  2581. w15.Part0 = p15
  2582. w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2583. w15.Part1 = p16
  2584. w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
  2585.  
  2586. m.Parent = larm
  2587. m:MakeJoints()
  2588. ----------------------------------------------------
  2589. local cor = Instance.new("Part", larm.LeftArm)
  2590. cor.Name = "Thingy"
  2591. cor.Locked = true
  2592. cor.BottomSurface = 0
  2593. cor.CanCollide = false
  2594. cor.Size = Vector3.new(1, 1, 1)
  2595. cor.Transparency = 1
  2596. cor.TopSurface = 0
  2597. corw = Instance.new("Weld", cor)
  2598. corw.Part0 = larm
  2599. corw.Part1 = cor
  2600. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2601. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2602. weld1 = Instance.new("Weld", larm.LeftArm)
  2603. weld1.Part0 = cor
  2604. weld1.Part1 = larm.LeftArm.LeftArmPlate
  2605. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2606. --Right Arm
  2607. m2 = Instance.new("Model")
  2608. m2.Name = "RightArm"
  2609.  
  2610. p7 = Instance.new("Part", m2)
  2611. p7.BrickColor = BrickColor.new("Institutional white")
  2612. p7.Material = Enum.Material.SmoothPlastic
  2613. p7.Transparency = 1
  2614. p7.Name = "RightArmPlate"
  2615. p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2616. p7.FormFactor = Enum.FormFactor.Symmetric
  2617. p7.Size = Vector3.new(1, 2, 1)
  2618. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2619. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2620. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2621. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2622. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2623. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2624. b7 = Instance.new("SpecialMesh", p7)
  2625. b7.MeshType = Enum.MeshType.Brick
  2626. b7.Name = "Mesh"
  2627. b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  2628.  
  2629.  
  2630. w1 = Instance.new("Weld", p1)
  2631. w1.Name = "Part_Weld"
  2632. w1.Part0 = p1
  2633. w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2634. w1.Part1 = p2
  2635. w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2636. w2 = Instance.new("Weld", p2)
  2637. w2.Name = "Part_Weld"
  2638. w2.Part0 = p2
  2639. w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2640. w2.Part1 = p3
  2641. w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2642. w3 = Instance.new("Weld", p3)
  2643. w3.Name = "Part_Weld"
  2644. w3.Part0 = p3
  2645. w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2646. w3.Part1 = p4
  2647. w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2648. w4 = Instance.new("Weld", p4)
  2649. w4.Name = "Part_Weld"
  2650. w4.Part0 = p4
  2651. w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2652. w4.Part1 = p5
  2653. w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2654. w5 = Instance.new("Weld", p5)
  2655. w5.Name = "Part_Weld"
  2656. w5.Part0 = p5
  2657. w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2658. w5.Part1 = p6
  2659. w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2660. w6 = Instance.new("Weld", p6)
  2661. w6.Name = "RightArmPlate_Weld"
  2662. w6.Part0 = p6
  2663. w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2664. w6.Part1 = p7
  2665. w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2666. w7 = Instance.new("Weld", p7)
  2667. w7.Name = "Part_Weld"
  2668. w7.Part0 = p7
  2669. w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2670. w7.Part1 = p8
  2671. w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2672. w8 = Instance.new("Weld", p8)
  2673. w8.Name = "Part_Weld"
  2674. w8.Part0 = p8
  2675. w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2676. w8.Part1 = p9
  2677. w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2678. w9 = Instance.new("Weld", p9)
  2679. w9.Name = "Part_Weld"
  2680. w9.Part0 = p9
  2681. w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2682. w9.Part1 = p10
  2683. w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2684. w10 = Instance.new("Weld", p10)
  2685. w10.Name = "Part_Weld"
  2686. w10.Part0 = p10
  2687. w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2688. w10.Part1 = p11
  2689. w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2690. w11 = Instance.new("Weld", p11)
  2691. w11.Name = "Part_Weld"
  2692. w11.Part0 = p11
  2693. w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2694. w11.Part1 = p12
  2695. w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2696. w12 = Instance.new("Weld", p12)
  2697. w12.Name = "Part_Weld"
  2698. w12.Part0 = p12
  2699. w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2700. w12.Part1 = p13
  2701. w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2702. w13 = Instance.new("Weld", p13)
  2703. w13.Name = "Part_Weld"
  2704. w13.Part0 = p13
  2705. w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2706. w13.Part1 = p14
  2707. w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2708. w14 = Instance.new("Weld", p14)
  2709. w14.Name = "Part_Weld"
  2710. w14.Part0 = p14
  2711. w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2712. w14.Part1 = p15
  2713. w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2714. w15 = Instance.new("Weld", p15)
  2715. w15.Name = "Part_Weld"
  2716. w15.Part0 = p15
  2717. w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2718. w15.Part1 = p16
  2719. w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2720. w16 = Instance.new("Weld", p16)
  2721. w16.Name = "Part_Weld"
  2722. w16.Part0 = p16
  2723. w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2724. w16.Part1 = p17
  2725. w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2726. w17 = Instance.new("Weld", p17)
  2727. w17.Name = "Part_Weld"
  2728. w17.Part0 = p17
  2729. w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2730. w17.Part1 = p18
  2731. w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2732. w18 = Instance.new("Weld", p18)
  2733. w18.Name = "Part_Weld"
  2734. w18.Part0 = p18
  2735. w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2736. w18.Part1 = p19
  2737. w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2738. m2.Parent = rarm
  2739. m2:MakeJoints()
  2740. ----------------------------------------------------
  2741. local cor2 = Instance.new("Part", rarm.RightArm)
  2742. cor2.Name = "Thingy"
  2743. cor2.Locked = true
  2744. cor2.BottomSurface = 0
  2745. cor2.CanCollide = false
  2746. cor2.Size = Vector3.new(1, 1, 1)
  2747. cor2.Transparency = 1
  2748. cor2.TopSurface = 0
  2749. corw2 = Instance.new("Weld", cor2)
  2750. corw2.Part0 = rarm
  2751. corw2.Part1 = cor2
  2752. corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2753. corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2754. weld2 = Instance.new("Weld", rarm.RightArm)
  2755. weld2.Part0 = cor2
  2756. weld2.Part1 = rarm.RightArm.RightArmPlate
  2757. weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2758.  
  2759.  
  2760. --Zyrodoxa
  2761. m8 = Instance.new("Model")
  2762. m8.Name = "Zyrodoxa"
  2763.  
  2764. p16 = Instance.new("Part", m8)
  2765. p16.BrickColor = BrickColor.new("Instutional white")
  2766. p16.Material = Enum.Material.Metal
  2767. p16.Name = "Handle"
  2768. p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
  2769. p16.CanCollide = false
  2770. p16.Locked = true
  2771. p16.FormFactor = Enum.FormFactor.Custom
  2772. p16.Size = Vector3.new(0, 0, 0)
  2773. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2774. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2775. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2776. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2777. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2778. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2779. b16 = Instance.new("BlockMesh", p16)
  2780. b16.Name = "Mesh"
  2781. b16.Scale = Vector3.new(0, 0, 0)
  2782.  
  2783. w16 = Instance.new("Weld", p16)
  2784. w16.Name = "Block_Weld"
  2785. w16.Part0 = p16
  2786. w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
  2787. w16.Part1 = p17
  2788. w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
  2789.  
  2790. m8.Parent = rarm
  2791. m8:MakeJoints()
  2792. ----------------------------------------------------
  2793. local cor8 = Instance.new("Part", rarm.Zyrodoxa)
  2794. cor8.Name = "Thingy"
  2795. cor8.Locked = true
  2796. cor8.BottomSurface = 0
  2797. cor8.CanCollide = false
  2798. cor8.Size = Vector3.new(1, 1, 1)
  2799. cor8.Transparency = 1
  2800. cor8.TopSurface = 0
  2801. corw8 = Instance.new("Weld", cor8)
  2802. corw8.Part0 = rarm
  2803. corw8.Part1 = cor8
  2804. corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
  2805. corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2806. weld8 = Instance.new("Weld", rarm.Zyrodoxa)
  2807. weld8.Part0 = cor8
  2808. weld8.Part1 = rarm.Zyrodoxa.Handle
  2809. weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2810. ----------------------------------------------------
  2811. models = {m,m2,m3,m4,m5,m6,m7,m8}
  2812. parts = {}
  2813. Stepped:connect(function()
  2814. for i,v in pairs(models) do
  2815. for _, a in pairs(v:GetChildren()) do
  2816. if v:IsA("Part") and v.Name ~= "Thingy" then
  2817. table.insert(parts, a)
  2818. for i,v in pairs(parts) do
  2819. v.CanCollide = false
  2820. end
  2821. end
  2822. end
  2823. end
  2824. end)
  2825. ----------------------------------------------------
  2826. local animpose = "Idle1"
  2827. local lastanimpose = "Idle1"
  2828. local grab = false
  2829. local Smooth = 1
  2830. local sine = 0
  2831. local change = 1
  2832. local val = 0
  2833. local ffing = false
  2834. ----------------------------------------------------
  2835. --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
  2836.  
  2837. function FindHumanoids()
  2838. local function c_region(Position, Size)
  2839. local SizeOffset = Size/2
  2840. local Point1 = Position - SizeOffset
  2841. local Point2 = Position + SizeOffset
  2842. local a = Instance.new("Part", workspace)
  2843. a.Anchored = true
  2844. a.Size = Size
  2845. a.Position = Position
  2846. print("Hey!, I'm making a part!")
  2847. return Region3.new(Point1, Point2)
  2848. end
  2849.  
  2850. local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  2851. local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  2852. local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  2853. local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  2854.  
  2855. local regions = {a, b, c, d}
  2856.  
  2857. local found_humanoids = {}
  2858. local already_found = {char.Name}
  2859.  
  2860. for _, region in pairs(regions) do
  2861. for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
  2862. print(part, part.Parent, part.Name) ---nope
  2863. if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  2864. local humanoid = part.Parent:FindFirstChild("Humanoid")
  2865. local name = humanoid.Parent.Name
  2866. local exists = false
  2867. for _, n in pairs(already_found) do
  2868. if n == name then
  2869. exists = true
  2870. end
  2871. end
  2872. if not exists then
  2873. table.insert(already_found, name)
  2874. table.insert(found_humanoids, humanoid)
  2875. end
  2876. elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  2877. local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  2878. local name = humanoid.Parent.Parent.Name
  2879. local exists = false
  2880. for _, n in pairs(already_found) do
  2881. if n == name then
  2882. exists = true
  2883. end
  2884. end
  2885. if not exists then
  2886. table.insert(already_found, name)
  2887. table.insert(found_humanoids, humanoid)
  2888. end
  2889. end
  2890. end
  2891. end
  2892. return found_humanoids
  2893. end
  2894.  
  2895. local humanoids = FindHumanoids()
  2896. if #humanoids == 0 then
  2897. for i, v in pairs(humanoids) do
  2898. print(v.Parent.Name)
  2899. if Debounces.Slashing == true then
  2900. v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
  2901. elseif Debounces.Slashing == false then
  2902. wait()
  2903. end
  2904. end
  2905. wait(0.3)
  2906. end]]--
  2907. ----------------------------------------------------
  2908. --[[mouse.KeyDown:connect(function(key)
  2909. if key == "f" then
  2910. if Debounces.CanAttack == true then
  2911. Debounces.CanAttack = false
  2912. Debounces.NoIdl = true
  2913. Debounces.on = true
  2914. for i = 1, 20 do
  2915. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2916. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2917. CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
  2918. CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2919. CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2920. CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2921. CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2922. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
  2923. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2924. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
  2925. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2926. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
  2927. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
  2928. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
  2929. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
  2930. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  2931. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
  2932. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  2933. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
  2934. if Debounces.on == false then
  2935. break
  2936. end
  2937. fat.Event:wait()
  2938. end
  2939. end
  2940. end
  2941. end)]]--
  2942. ----------------------------------------------------
  2943. mod4 = Instance.new("Model",char)
  2944.  
  2945. ptez = {0.7, 0.8, 0.9, 1}
  2946.  
  2947. function FindNearestTorso(Position,Distance,SinglePlayer)
  2948. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  2949. local List = {}
  2950. for i,v in pairs(workspace:GetChildren())do
  2951. if v:IsA("Model")then
  2952. if v:findFirstChild("Torso")then
  2953. if v ~= char then
  2954. if(v.Torso.Position -Position).magnitude <= Distance then
  2955. table.insert(List,v)
  2956. end
  2957. end
  2958. end
  2959. end
  2960. end
  2961. return List
  2962. end
  2963.  
  2964. function Slam()
  2965. local part=Instance.new('Part',mod4)
  2966. part.Anchored=true
  2967. part.CanCollide=false
  2968. part.FormFactor='Custom'
  2969. part.Size=Vector3.new(.2,.2,.2)
  2970. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  2971. part.Transparency=.7
  2972. part.BrickColor=BrickColor.new('Really black')
  2973. mesh=Instance.new('SpecialMesh',part)
  2974. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  2975. mesh.Scale=Vector3.new(3,3,3)
  2976. local part2=Instance.new('Part',mod4)
  2977. part2.Anchored=true
  2978. part2.CanCollide=false
  2979. part2.FormFactor='Custom'
  2980. part2.Size=Vector3.new(.2,.2,.2)
  2981. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  2982. part2.Transparency=.7
  2983. part2.BrickColor=BrickColor.new('Institutional white')
  2984. mesh2=Instance.new('SpecialMesh',part2)
  2985. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  2986. mesh2.Scale=Vector3.new(3,1.5,3)
  2987. x = Instance.new("Sound",larm)
  2988. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  2989. x.Pitch = ptez[math.random(1,#ptez)]
  2990. x.Volume = 1
  2991. wait(.1)
  2992. x1 = Instance.new("Sound",larm)
  2993. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  2994. x1.Pitch = ptez[math.random(1,#ptez)]
  2995. x1.Volume = 1
  2996. wait(.1)
  2997. x:Play()
  2998. x1:Play()
  2999. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  3000. if v:FindFirstChild('Humanoid') then
  3001. v.Humanoid:TakeDamage(math.random(30,45))
  3002. end
  3003. end
  3004. coroutine.resume(coroutine.create(function()
  3005. for i=0,0.62,0.13 do
  3006. wait()
  3007. part.CFrame=part.CFrame
  3008. part.Transparency=i
  3009. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  3010. part2.CFrame=part2.CFrame
  3011. part2.Transparency=i
  3012. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  3013. end
  3014. part.Parent=nil
  3015. part2.Parent=nil
  3016. x:Destroy()
  3017. end))
  3018. end
  3019. ----------------------------------------------------
  3020. wPart = function(x,y,z,color,tr,cc,an,parent)
  3021. local wp = Instance.new('WedgePart',parent or Weapon)
  3022. wp.formFactor = 'Custom'
  3023. wp.Size = Vector3.new(x,y,z)
  3024. wp.BrickColor = BrickColor.new(color)
  3025. wp.CanCollide = cc
  3026. wp.Transparency = tr
  3027. wp.Anchored = an
  3028. wp.TopSurface,wp.BottomSurface = 0,0
  3029. return wp
  3030. end
  3031.  
  3032. Mesh = function(par,num,x,y,z)
  3033. local msh = _
  3034. if num == 1 then
  3035. msh = Instance.new("CylinderMesh",par)
  3036. elseif num == 2 then
  3037. msh = Instance.new("SpecialMesh",par)
  3038. msh.MeshType = 3
  3039. elseif num == 3 then
  3040. msh = Instance.new("BlockMesh",par)
  3041. elseif num == 4 then
  3042. msh = Instance.new("SpecialMesh",par)
  3043. msh.MeshType = "Torso"
  3044. elseif type(num) == 'string' then
  3045. msh = Instance.new("SpecialMesh",par)
  3046. msh.MeshId = num
  3047. end
  3048. msh.Scale = Vector3.new(x,y,z)
  3049. return msh
  3050. end
  3051.  
  3052. local function CFrameFromTopBack(at, top, back)
  3053. local right = top:Cross(back)
  3054. return CFrame.new(at.x, at.y, at.z,
  3055. right.x, top.x, back.x,
  3056. right.y, top.y, back.y,
  3057. right.z, top.z, back.z)
  3058. end
  3059.  
  3060. function Triangle(a, b, c)
  3061. local edg1 = (c-a):Dot((b-a).unit)
  3062. local edg2 = (a-b):Dot((c-b).unit)
  3063. local edg3 = (b-c):Dot((a-c).unit)
  3064. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  3065. a, b, c = a, b, c
  3066. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  3067. a, b, c = b, c, a
  3068. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  3069. a, b, c = c, a, b
  3070. else
  3071. print("unreachable")
  3072. end
  3073. local len1 = (c-a):Dot((b-a).unit)
  3074. local len2 = (b-a).magnitude - len1
  3075. local width = (a + (b-a).unit*len1 - c).magnitude
  3076. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  3077. local list = {}
  3078. if len1 > 0.01 then
  3079. local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  3080. local sz = Vector3.new(0.2, width, len1)
  3081. w1.Size = sz
  3082. local sp = Mesh(w1,2,0,0,0)
  3083. sp.MeshType='Wedge'
  3084. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  3085. w1:BreakJoints()
  3086. w1.Anchored = true
  3087. w1.Transparency = 0.7
  3088. Spawn(function()
  3089. for i=0,1,0.1 do
  3090. fat.Event:wait()
  3091. w1.Transparency=w1.Transparency+0.03
  3092. end
  3093. end)
  3094. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  3095. table.insert(list,w1)
  3096. end
  3097. if len2 > 0.01 then
  3098. local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  3099. local sz = Vector3.new(0.2, width, len2)
  3100. w2.Size = sz
  3101. local sp = Mesh(w2,2,0,0,0)
  3102. sp.MeshType='Wedge'
  3103. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  3104. w2:BreakJoints()
  3105. w2.Anchored = true
  3106. w2.Transparency = 0.7
  3107. Spawn(function()
  3108. for i=0,1,0.1 do
  3109. fat.Event:wait()
  3110. w2.Transparency=w2.Transparency+0.03
  3111. end
  3112. end)
  3113. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  3114. table.insert(list,w2)
  3115. end
  3116. return unpack(list)
  3117. end
  3118.  
  3119. function trail(p,t,h)
  3120. Spawn(function()
  3121. local blcf = p.CFrame
  3122. local scfr = blcf
  3123. for i=1,t do
  3124. local blcf = p.CFrame
  3125. if scfr and (p.Position-scfr.p).magnitude > .1 then
  3126. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  3127. if a then game.Debris:AddItem(a,1) end
  3128. if b then game.Debris:AddItem(b,1) end
  3129. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  3130. if a then game.Debris:AddItem(a,1) end
  3131. if b then game.Debris:AddItem(b,1) end
  3132. scfr = blcf
  3133. elseif not scfr then
  3134. scfr = blcf
  3135. end
  3136. fat.Event:wait()
  3137. end
  3138. scfr=nil
  3139. end)
  3140. end
  3141. --trail(char.Sword.Blade,1e1000,5)
  3142. ----------------------------------------------------
  3143. function Dmg()
  3144. local partofdeath = rarm.Zyrodoxa.Hitbox
  3145. local function CreateRegion3FromLocAndSize(Position, Size)
  3146. local SizeOffset = Size/2
  3147. local Point1 = Position - SizeOffset
  3148. local Point2 = Position + SizeOffset
  3149. return Region3.new(Point1, Point2)
  3150. end
  3151. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  3152. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  3153. Spawn(function()
  3154. if Debounces.Slashing == true and Debounces.Slashed == false then
  3155. Debounces.Slashed = true
  3156. ypcall(function()
  3157. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  3158. humanoid:TakeDamage(math.random(10,18))
  3159. end)
  3160. wait(.4)
  3161. Debounces.Slashed = false
  3162. end
  3163. end)
  3164. end
  3165. end
  3166. ----------------------------------------------------
  3167. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  3168. ptz = {0.7, 0.8, 0.9, 1}
  3169. idz = {"161006212", "161006195"}
  3170. function attackone()
  3171. for i = 1, 13 do
  3172. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  3173. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
  3174. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
  3175. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  3176. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
  3177. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
  3178. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
  3179. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
  3180. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
  3181. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
  3182. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  3183. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
  3184. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  3185. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  3186. if Debounces.on == false then
  3187. break
  3188. end
  3189. fat.Event:wait()
  3190. end
  3191. trail(rarm.Zyrodoxa.Hitbox,20,2)
  3192. Debounces.Slashing = true
  3193. wait(0.2)
  3194. --[[z = Instance.new("Sound", hed)
  3195. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  3196. z.Pitch = ptz[math.random(1,#ptz)]
  3197. z.Volume = 1
  3198. wait(.01)
  3199. z:Play()]]--
  3200. for i = 1, 14 do
  3201. Dmg()
  3202. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  3203. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
  3204. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
  3205. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
  3206. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
  3207. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
  3208. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
  3209. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  3210. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
  3211. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3212. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  3213. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
  3214. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  3215. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
  3216. if Debounces.on == false then break end
  3217. rs:wait()
  3218. end
  3219. Debounces.Slashing = false
  3220. end
  3221. function attacktwo()
  3222. Debounces.Slashing = true
  3223. for i = 1, 14 do
  3224. Dmg()
  3225. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  3226. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
  3227. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
  3228. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  3229. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
  3230. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  3231. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
  3232. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  3233. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  3234. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3235. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
  3236. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  3237. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
  3238. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  3239. if Debounces.on == false then
  3240. break
  3241. end
  3242. rs:wait()
  3243. end
  3244. end
  3245. ----------------------------------------------------
  3246.  
  3247. ----------------------------------------------------
  3248. definition = 5
  3249. bc = {}
  3250. bezierparts = {}
  3251. function NoOutline(Part)
  3252. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  3253. end
  3254. function draw(p,d)
  3255. for i=1,d do
  3256. local t = i/d
  3257. bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
  3258. end
  3259.  
  3260. Spawn(function() fat.Event:wait()
  3261. for i,v in pairs(bezierparts) do
  3262. v.Transparency = 1
  3263. end
  3264. end)
  3265. end
  3266. --local points = {larm.Position,rarn.Position,invisipart.Position}
  3267. --draw(points,definition)
  3268.  
  3269. fat.Event:wait()
  3270.  
  3271. rpart = Instance.new("Part",rarm)
  3272. NoOutline(rpart)
  3273. rpart.Anchored = false
  3274. rpart.Size = Vector3.new(1,1,1)
  3275. rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  3276. rpart.Transparency = 1
  3277. newWeld(rarm, rpart, 0, 0, 0)
  3278. rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  3279. lpart = Instance.new("Part",larm)
  3280. NoOutline(lpart)
  3281. lpart.Anchored = false
  3282. lpart.Size = Vector3.new(1,1,1)
  3283. lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  3284. lpart.Transparency = 1
  3285. newWeld(larm, lpart, 0, 0, 0)
  3286. lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  3287. invisipart = Instance.new("Part",torso)
  3288. NoOutline(invisipart)
  3289. invisipart.Anchored = false
  3290. invisipart.Size = Vector3.new(1,1,1)
  3291. invisipart.Transparency = 1
  3292. invisipart.CFrame = torso.CFrame
  3293. newWeld(torso, invisipart, 0, 0, 0)
  3294. invisipart.Weld.C1 = CFrame.new(0, 0, 6)
  3295. table.insert(bezierparts, rpart)
  3296. table.insert(bezierparts, lpart)
  3297. table.insert(bezierparts, invisipart)
  3298. for i = 1, 40 do
  3299. local points = {lpart.Position,invisipart.Position,rpart.Position}
  3300. draw(points,definition)
  3301. --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
  3302. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
  3303. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  3304. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
  3305. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  3306. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
  3307. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  3308. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  3309. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3310. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
  3311. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  3312. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
  3313. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  3314. if Debounces.on == false then
  3315. break
  3316. end
  3317. fat.Event:wait()
  3318. end
  3319. for i,v in pairs(bezierparts) do
  3320. v:Destroy()
  3321. end
  3322. --draw(points,definition)
  3323. if Debounces.CanAttack == false then
  3324. Debounces.CanAttack = true
  3325. Debounces.NoIdl = false
  3326. Debounces.on = false
  3327. end
  3328.  
  3329. ----------------------------------------------------
  3330. ----------------------------------------------------
  3331. pt = {6.6, 6.8, 7, 7.2, 7.4}
  3332. mouse.KeyDown:connect(function(key)
  3333. if key == "q" then
  3334. if Debounces.CanJoke == true then
  3335. Debounces.CanJoke = false
  3336. u = Instance.new("Sound",char)
  3337. u.SoundId = "http://www.roblox.com/asset/?id=261303790"
  3338. u.Pitch = pt[math.random(1,#pt)]
  3339. u.Volume = 0.3
  3340. u2 = Instance.new("Sound",char)
  3341. u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
  3342. u2.Pitch = u.Pitch
  3343. u2.Volume = 0.3
  3344. u3 = Instance.new("Sound",char)
  3345. u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
  3346. u3.Pitch = u.Pitch
  3347. u3.Volume = 0.3
  3348. wait(.01)
  3349. u:Play()
  3350. u2:Play()
  3351. u3:Play()
  3352. wait(1.5)
  3353. u:Destroy()
  3354. u2:Destroy()
  3355. u3:Destroy()
  3356. if Debounces.CanJoke == false then
  3357. Debounces.CanJoke = true
  3358. end
  3359. end
  3360. end
  3361. end)
  3362. ----------------------------------------------------
  3363. ----------------------------------------------------
  3364. ----------------------------------------------------
  3365. Grab = false
  3366. mouse.KeyDown:connect(function(key)
  3367. if key == "g" then
  3368. Debounces.on = true
  3369. Debounces.NoIdl = true
  3370. Debounces.ks = true
  3371. if Grab == false then
  3372. gp = nil
  3373. for i = 1, 20 do
  3374. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  3375. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3376. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
  3377. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3378. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  3379. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3380. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  3381. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3382. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
  3383. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3384. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
  3385. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3386. if Debounces.on == false then break end
  3387. fat.Event:wait()
  3388. end
  3389. con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
  3390. ht = hit.Parent
  3391. for i,v in pairs(ht:GetChildren()) do
  3392. if v:IsA("Part") then
  3393. v.CanCollide = false
  3394. v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  3395. end
  3396. end
  3397. hum1=ht:FindFirstChild('Humanoid')
  3398. if hum1 ~= nil then
  3399. if Debounces.ks==true then
  3400. z = Instance.new("Sound",hed)
  3401. z.SoundId = "rbxassetid://169380525"
  3402. z.Volume = 1
  3403. z:Play()
  3404. Debounces.ks=false
  3405. end
  3406. hum1.PlatformStand=true
  3407. hum1:ChangeState'Physics'
  3408. gp = ht
  3409. Grab = true
  3410. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
  3411. asd.Parent = larm
  3412. asd.Name = "asd"
  3413. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  3414. stanceToggle = "Grabbed"
  3415. --[[elseif hum1 == nil then
  3416. con1:disconnect()
  3417. wait() return]]--
  3418. end
  3419. end)
  3420. for i = 1, 20 do
  3421. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  3422. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3423. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  3424. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3425. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
  3426. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3427. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  3428. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3429. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  3430. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3431. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
  3432. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3433. if Debounces.on == false then break end
  3434. fat.Event:wait()
  3435. end
  3436. con1:disconnect()
  3437. Debounces.on = false
  3438. Debounces.NoIdl = false
  3439. elseif Grab == true then
  3440. Grab = false
  3441. --[[for i = 1, 16 do
  3442. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
  3443. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
  3444. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  3445. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  3446. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  3447. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  3448. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  3449. if Debounces.on == false then end
  3450. rs:wait()
  3451. end]]--
  3452. for i = 1, 16 do
  3453. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
  3454. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
  3455. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
  3456. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
  3457. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  3458. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3459. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
  3460. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3461. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  3462. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  3463. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  3464. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3465. if Debounces.on == false then end
  3466. rs:wait()
  3467. end
  3468. for i = 1, 12 do
  3469. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
  3470. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3471. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
  3472. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3473. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
  3474. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3475. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
  3476. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
  3477. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
  3478. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  3479. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
  3480. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
  3481. if Debounces.on == false then end
  3482. rs:wait()
  3483. end
  3484. Slam()
  3485. if gp ~= nil then
  3486. for i,v in pairs(larm:GetChildren()) do
  3487. if v.Name == "asd" and v:IsA("Weld") then
  3488. v:Remove()
  3489. end
  3490. if v:IsA("Part") then
  3491. v.CanCollide = true
  3492. v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
  3493. end
  3494. end
  3495. end
  3496. stanceToggle = "Idle1"
  3497. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  3498. bv.maxForce = Vector3.new(400000, 400000, 400000)
  3499. bv.P = 125000
  3500. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  3501. ht=nil
  3502. Debounces.on = false
  3503. Debounces.NoIdl = false
  3504. elseif ht == nil then wait()
  3505. Grab = false
  3506. Debounces.on = false
  3507. Debounces.NoIdl = false
  3508. end
  3509. end
  3510. end)
  3511. ----------------------------------------------------
  3512. Change = false
  3513. mouse.KeyDown:connect(function(key)
  3514. if key == "n" then
  3515. if Change == false then
  3516. Change = true
  3517. stanceToggle = "Idle2"
  3518. elseif Change == true then
  3519. Change = false
  3520. stanceToggle = "Idle1"
  3521. end
  3522. end
  3523. end)
  3524. ----------------------------------------------------
  3525. mouse.KeyDown:connect(function(key)
  3526. if string.byte(key) == 52 then
  3527. Swing = 2
  3528. char.Humanoid.WalkSpeed = 28
  3529. end
  3530. end)
  3531. mouse.KeyUp:connect(function(key)
  3532. if string.byte(key) == 52 then
  3533. Swing = 1
  3534. char.Humanoid.WalkSpeed = 16
  3535. end
  3536. end)
  3537. local mouse2 = Player:GetMouse()
  3538. local running = false
  3539.  
  3540. mouse2.KeyDown:connect(function(key) -- Run function
  3541. if key == "e" then
  3542. running = true
  3543. local keyConnection = mouse.KeyUp:connect(function(key)
  3544. if string.byte(key) == 48 then
  3545. running = false
  3546. end
  3547. end)
  3548. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
  3549. end
  3550. end)
  3551.  
  3552. mouse2.KeyUp:connect(function(key)
  3553. if key == "e" then
  3554. running = false
  3555. Character.Humanoid.WalkSpeed = 16
  3556. end
  3557. end)
  3558. function Ban()
  3559. Debounces.on = true
  3560. Debounces.NoIdl = true
  3561. Debounces.ks = true
  3562. local hitbox = Instance.new("Part",banh)
  3563. hitbox.Name = "HurtBox"
  3564. hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
  3565. hitbox.Transparency = 1
  3566. local hitboxwe = Instance.new("Weld",hitbox)
  3567. hitboxwe.Part0 = hitbox
  3568. hitboxwe.Part1 = banh
  3569. hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908)
  3570. function onTouched(part)
  3571. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  3572. if human then
  3573. human.Parent:Destroy()
  3574. ban2:Play()
  3575. wait(1.4)
  3576. ban:Play()
  3577. wait(1.2)
  3578. omg:Play()
  3579. wait(2.6)
  3580. scream:Play()
  3581. wait(4.6)
  3582. scream:Stop()
  3583. end
  3584. end
  3585. hitbox.Touched:connect(onTouched)
  3586. for i = 0,1 , 0.09 do
  3587. banw.C0 = banw.C0:lerp(CFrame.new(0.0185546875, -1.99783754, -0.149715185, -0.997520864, 0.00503101526, 0.0701895654, -0.0643144846, -0.469972789, -0.880334616, 0.0285583287, -0.882666826, 0.469131112),i)
  3588. game:GetService("RunService").RenderStepped:wait()
  3589. end
  3590. hitbox:Destroy()
  3591. banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
  3592. Debounces.on = false
  3593. Debounces.NoIdl = false
  3594. Debounces.ks = false
  3595. end
  3596. mouse.Button1Down:connect(Ban)
  3597. ----------------------------------------------------
  3598.  
  3599. jump = false
  3600. rs:connect(function()
  3601. if char.Humanoid.Jump == true then
  3602. jump = true
  3603. else
  3604. jump = false
  3605. end
  3606. char.Humanoid.FreeFalling:connect(function(f)
  3607. if f then
  3608. ffing = true
  3609. else
  3610. ffing = false
  3611. end
  3612. end)
  3613. sine = sine + change
  3614. if jump == true then
  3615. animpose = "Jumping"
  3616. elseif ffing == true then
  3617. animpose = "Freefalling"
  3618. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  3619. animpose = "Idle"
  3620. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  3621. animpose = "Walking"
  3622. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  3623. animpose = "Running"
  3624. end
  3625. RightLeg = CFrame.new(0.5,-1,0)
  3626. LeftLeg = CFrame.new(-0.5,-1,0)
  3627.  
  3628. lefth = (torso.CFrame*LeftLeg)
  3629. righth = (torso.CFrame*RightLeg)
  3630.  
  3631. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  3632.  
  3633. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  3634.  
  3635. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  3636. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  3637. if animpose ~= lastanimpose then
  3638. sine = 0
  3639. if Debounces.NoIdl == false then
  3640. if stanceToggle == "Idle1" then
  3641. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
  3642. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
  3643. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
  3644. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
  3645. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
  3646. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
  3647. elseif stanceToggle == "Idle2" then
  3648. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
  3649. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
  3650. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
  3651. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
  3652. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
  3653. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
  3654. end
  3655. fat.Event:wait()
  3656. end
  3657. else
  3658. end
  3659. lastanimpose = animpose
  3660. if Debounces.NoIdl == false then
  3661. if animpose == "Idle" then
  3662. change = 0.5
  3663. if stanceToggle == "Idle1" then
  3664. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3665. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
  3666.  
  3667. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
  3668. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3669. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
  3670. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3671. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
  3672. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
  3673. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  3674. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
  3675. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  3676. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
  3677. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  3678. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
  3679. elseif stanceToggle == "Idle2" then
  3680.  
  3681. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3682. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
  3683. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  3684. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
  3685. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  3686. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
  3687. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  3688. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  3689. --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
  3690. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3691. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
  3692. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
  3693. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
  3694. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
  3695. elseif stanceToggle == "Grabbed" then
  3696. grab = true
  3697. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3698. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3699. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
  3700. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  3701. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
  3702. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  3703. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
  3704. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3705. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  3706. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  3707. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  3708. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  3709. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  3710. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  3711. end
  3712. elseif animpose == "Walking" then
  3713. if stanceToggle == "Grabbed" then
  3714. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3715. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3716. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  3717. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  3718. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
  3719. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  3720. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  3721. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  3722. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  3723. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  3724. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  3725. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  3726. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  3727. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  3728. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  3729. elseif stanceToggle ~= "Grabbed" then
  3730. change = 1
  3731. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3732. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3733.  
  3734. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  3735. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  3736. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  3737. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  3738. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  3739. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  3740. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  3741. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  3742. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  3743. --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  3744. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  3745. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  3746. --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  3747. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  3748. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  3749. end
  3750. elseif animpose == "Running" then
  3751. change = 1
  3752. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3753. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3754.  
  3755. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
  3756. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  3757. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
  3758. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3759. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
  3760. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
  3761. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
  3762. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  3763. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  3764. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3765. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  3766. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3767. elseif animpose == "Jumping" then
  3768.  
  3769. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3770. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3771. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
  3772. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  3773. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  3774. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3775. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  3776. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  3777. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  3778. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  3779. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3780. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  3781. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3782. elseif animpose == "Freefalling" then
  3783.  
  3784. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  3785. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3786. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
  3787. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  3788. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
  3789. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  3790. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  3791. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  3792. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  3793. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  3794. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3795. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
  3796. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3797. end
  3798. end
  3799. end)
  3800. hum.MaxHealth = math.huge
  3801. wait(3)
  3802. hum.Health = math.huge
  3803.  
  3804. coroutine.wrap(function()
  3805. wait(0.1)
  3806. game.Base.CanCollide = false
  3807. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement