Guest User

Untitled

a guest
Dec 11th, 2019
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --xd--
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE script by divcore")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then return s[k] end
  95. end,
  96. __newindex = function(self,k,v)
  97. local s = rawget(self,"_RealService")
  98. if s then s[k]=v end
  99. end,
  100. __call = function(self,...)
  101. local s = rawget(self,"_RealService")
  102. if s then return s(...) end
  103. end
  104. }
  105. local function FakeService(t,RealService)
  106. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107. return setmetatable(t,fsmt)
  108. end
  109.  
  110. --Fake game object
  111. local g = {
  112. GetService = function(self,s)
  113. return self[s]
  114. end,
  115. Players = FakeService({
  116. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117. },"Players"),
  118. UserInputService = FakeService(UIS,"UserInputService"),
  119. ContextActionService = FakeService(CAS,"ContextActionService"),
  120. }
  121. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122. g.service = g.GetService
  123.  
  124. g.RunService = FakeService({
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127.  
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133.  
  134. setmetatable(g,{
  135. __index=function(self,s)
  136. return _rg:GetService(s) or typeof(_rg[s])=="function"
  137. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138. end,
  139. __newindex = fsmt.__newindex,
  140. __call = fsmt.__call
  141. })
  142. --Changing owner to fake player object to support owner:GetMouse()
  143. game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146. Player=game:GetService("Players").LocalPlayer
  147. Character=Player.Character
  148. PlayerGui=Player.PlayerGui
  149. Backpack=Player.Backpack
  150. Torso=Character.Torso
  151. Head=Character.Head
  152. Humanoid=Character.Humanoid
  153. m=Instance.new('Model',Character)
  154. LeftArm=Character["Left Arm"]
  155. LeftLeg=Character["Left Leg"]
  156. RightArm=Character["Right Arm"]
  157. RightLeg=Character["Right Leg"]
  158. LS=Torso["Left Shoulder"]
  159. LH=Torso["Left Hip"]
  160. RS=Torso["Right Shoulder"]
  161. RH=Torso["Right Hip"]
  162. Face = Head.face
  163. Neck=Torso.Neck
  164. it=Instance.new
  165. attacktype=1
  166. vt=Vector3.new
  167. cf=CFrame.new
  168. euler=CFrame.fromEulerAnglesXYZ
  169. angles=CFrame.Angles
  170. cloaked=false
  171. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  172. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  173. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  174. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  175. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  176. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  177. RootPart=Character.HumanoidRootPart
  178. RootJoint=RootPart.RootJoint
  179. RootCF=euler(-1.57,0,3.14)
  180. attack = false
  181. attackdebounce = false
  182. deb=false
  183. equipped=true
  184. hand=false
  185. MMouse=nil
  186. combo=0
  187. mana=0
  188. trispeed=1
  189. pathtrans=.7
  190. attackmode='none'
  191. local idle=0
  192. local Anim="Idle"
  193. local Effects={}
  194. local gun=false
  195. local shoot=false
  196. player=nil
  197. cloak=false
  198. lightcolor='Bright blue'
  199.  
  200. local Color1=Torso.BrickColor
  201.  
  202.  
  203. mouse=Player:GetMouse()
  204. --save shoulders
  205. RSH, LSH=nil, nil
  206. --welds
  207. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  208. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  209. LH=Torso["Left Hip"]
  210. RH=Torso["Right Hip"]
  211. TorsoColor=Torso.BrickColor
  212. function NoOutline(Part)
  213. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  214. end
  215.  
  216.  
  217.  
  218. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  219. local fp=it("Part")
  220. fp.formFactor=formfactor
  221. fp.Parent=parent
  222. fp.Reflectance=reflectance
  223. fp.Transparency=transparency
  224. fp.CanCollide=false
  225. fp.Locked=true
  226. fp.BrickColor=brickcolor
  227. fp.Name=name
  228. fp.Size=size
  229. fp.Position=Torso.Position
  230. NoOutline(fp)
  231. fp.Material="SmoothPlastic"
  232. fp:BreakJoints()
  233. return fp
  234. end
  235.  
  236. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  237. local mesh=it(Mesh)
  238. mesh.Parent=part
  239. if Mesh=="SpecialMesh" then
  240. mesh.MeshType=meshtype
  241. if meshid~="nil" then
  242. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  243. end
  244. end
  245. mesh.Offset=offset
  246. mesh.Scale=scale
  247. return mesh
  248. end
  249.  
  250. function weld(parent,part0,part1,c0)
  251. local weld=it("Weld")
  252. weld.Parent=parent
  253. weld.Part0=part0
  254. weld.Part1=part1
  255. weld.C0=c0
  256. return weld
  257. end
  258.  
  259. local Color1=Torso.BrickColor
  260.  
  261.  
  262.  
  263.  
  264.  
  265. Player=game:GetService('Players').LocalPlayer
  266. Character=Player.Character
  267. Mouse=Player:GetMouse()
  268. m=Instance.new('Model',Character)
  269.  
  270.  
  271. local function weldBetween(a, b)
  272. local weldd = Instance.new("ManualWeld")
  273. weldd.Part0 = a
  274. weldd.Part1 = b
  275. weldd.C0 = CFrame.new()
  276. weldd.C1 = b.CFrame:inverse() * a.CFrame
  277. weldd.Parent = a
  278. return weldd
  279. end
  280.  
  281. it=Instance.new
  282.  
  283. function nooutline(part)
  284. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  285. end
  286.  
  287. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  288. local fp=it("Part")
  289. fp.formFactor=formfactor
  290. fp.Parent=parent
  291. fp.Reflectance=reflectance
  292. fp.Transparency=transparency
  293. fp.CanCollide=false
  294. fp.Locked=true
  295. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  296. fp.Name=name
  297. fp.Size=size
  298. fp.Position=Character.Torso.Position
  299. nooutline(fp)
  300. fp.Material=material
  301. fp:BreakJoints()
  302. return fp
  303. end
  304.  
  305. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  306. local mesh=it(Mesh)
  307. mesh.Parent=part
  308. if Mesh=="SpecialMesh" then
  309. mesh.MeshType=meshtype
  310. mesh.MeshId=meshid
  311. end
  312. mesh.Offset=offset
  313. mesh.Scale=scale
  314. return mesh
  315. end
  316.  
  317. function weld(parent,part0,part1,c0,c1)
  318. local weld=it("Weld")
  319. weld.Parent=parent
  320. weld.Part0=part0
  321. weld.Part1=part1
  322. weld.C0=c0
  323. weld.C1=c1
  324. return weld
  325. end
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. --------------------------------
  336. local p = game.Players.LocalPlayer
  337. local char = p.Character
  338. local mouse = p:GetMouse()
  339. local larm = char["Left Arm"]
  340. local rarm = char["Right Arm"]
  341. local lleg = char["Left Leg"]
  342. local rleg = char["Right Leg"]
  343. local hed = char.Head
  344. local torso = char.Torso
  345. local hum = char.Humanoid
  346. local cam = game.Workspace.CurrentCamera
  347. local root = char.HumanoidRootPart
  348. local deb = false
  349. local shot = 0
  350. local debris=game:service"Debris"
  351. local l = game:GetService("Lighting")
  352. local rs = game:GetService("RunService").RenderStepped
  353. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  354. math.randomseed(os.time())
  355. for i,v in pairs(char:children()) do
  356. if v:IsA("Hat") then
  357. v:Destroy()
  358. end
  359. end
  360. for i,v in pairs (hed:GetChildren()) do
  361. if v:IsA("Sound") then
  362. v:Destroy()
  363. end
  364. end
  365. ----------------------------------------------------
  366. z = Instance.new("Sound", torso)
  367. z.SoundId = "rbxassetid://506033751" -- Put Music ID Here.
  368. z.Looped = true
  369. z.Volume = 1
  370. wait(.1)
  371. z:Play()
  372. -----------------------------------------------------
  373. Debounces = {
  374. CanAttack = true;
  375. NoIdl = false;
  376. Slashing = false;
  377. Slashed = false;
  378. RPunch = false;
  379. RPunched = false;
  380. LPunch = false;
  381. LPunched = false;
  382. }
  383. local Touche = {char.Name, }
  384. ----------------------------------------------------
  385. hed.face.Texture = "rbxassetid://0"
  386. char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  387. char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  388. char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  389. char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  390. char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  391. char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  392. ----------------------------------------------------
  393. ypcall(function()
  394. shirt = Instance.new("Shirt", char)
  395. shirt.Name = "Shirt"
  396. pants = Instance.new("Pants", char)
  397. pants.Name = "Pants"
  398. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=162860579"
  399. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=532642815"
  400. end)
  401. ----------------------------------------------------
  402. local LocalPlayer = game:GetService("Players").LocalPlayer
  403. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  404.  
  405. Character.Head.Transparency = 1
  406.  
  407. local Orb = Instance.new("Part", Character)
  408. Orb.Name = "Orb"
  409.  
  410. Orb.CanCollide = false
  411. Orb.BrickColor = BrickColor.new("Institutional white")
  412. Orb.Transparency = 0
  413. Orb.Material = "Plastic"
  414. Orb.Size = Vector3.new(1, 1, 1)
  415.  
  416.  
  417. local M = Instance.new("SpecialMesh")
  418. M.Parent = Orb
  419. M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  420. M.Scale = Vector3.new(0.8, 3, 0.8)
  421.  
  422.  
  423. local Weld = Instance.new("Weld", Orb)
  424. Weld.Part0 = Character.Head
  425. Weld.Part1 = Orb
  426. Weld.C1 = CFrame.new(0, -0.5, 0)
  427. ------------------------------------------------------
  428. CV="Institutional white"
  429.  
  430. local txt = Instance.new("BillboardGui", char)
  431. txt.Adornee = char .Orb
  432. txt.Name = "_status"
  433. txt.Size = UDim2.new(2, 0, 1.2, 0)
  434. txt.StudsOffset = Vector3.new(-2, 1.5, 0)
  435. local text = Instance.new("TextLabel", txt)
  436. text.Size = UDim2.new(3, 0, 0.5, 0)
  437. text.FontSize = "Size8"
  438. text.TextScaled = true
  439. text.TextTransparency = 1
  440. text.BackgroundTransparency = 1
  441. text.TextTransparency = 1
  442. text.TextStrokeTransparency = 1
  443. text.Font = "Arial"
  444. text.TextStrokeColor3 = Color3.new(0,0,0)
  445.  
  446. v=Instance.new("Part")
  447. v.Name = "ColorBrick"
  448. v.Parent=p.Character
  449. v.FormFactor="Symmetric"
  450. v.Anchored=true
  451. v.CanCollide=false
  452. v.BottomSurface="Smooth"
  453. v.TopSurface="Smooth"
  454. v.Size=Vector3.new(0,0,0)
  455. v.Transparency=1
  456. v.CFrame=char.Torso.CFrame
  457. v.BrickColor=BrickColor.new(CV)
  458. v.Transparency=1
  459. text.TextColor3 = v.BrickColor.Color
  460. v.Shape="Block"
  461. text.Text = " "
  462.  
  463.  
  464.  
  465.  
  466. --------------------------------------------------------
  467. local Orbd = Instance.new("Part", Character)
  468. Orbd.Name = "Orbd"
  469. Orbd.Shape = Enum.PartType.Ball
  470. Orbd.CanCollide = false
  471. Orbd.BrickColor = BrickColor.new("Institutional white")
  472. Orbd.Transparency = 0
  473. Orbd.Material = "Neon"
  474. Orbd.Size = Vector3.new(0.1, 0.1, 0.1)
  475. Orbd.TopSurface = Enum.SurfaceType.Smooth
  476. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  477.  
  478. local Weld = Instance.new("Weld", Orbd)
  479. Weld.Part0 = Character.Head
  480. Weld.Part1 = Orbd
  481. Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
  482.  
  483. --------------------------------------------------------
  484. local Orbvc = Instance.new("Part", Character)
  485. Orbvc.Name = "Orbvc"
  486. Orbvc.Shape = Enum.PartType.Ball
  487. Orbvc.CanCollide = false
  488. Orbvc.BrickColor = BrickColor.new("Institutional white")
  489. Orbvc.Transparency = 0
  490. Orbvc.Material = "Neon"
  491. Orbvc.Size = Vector3.new(0.1, 0.1, 0.1)
  492. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  493. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  494.  
  495. local Weld = Instance.new("Weld", Orbvc)
  496. Weld.Part0 = Character.Head
  497. Weld.Part1 = Orbvc
  498. Weld.C1 = CFrame.new(0.2, -0.2, 0.5)
  499. ---------------------
  500. local LocalPlayer = game:GetService("Players").LocalPlayer
  501. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  502.  
  503. Character.Head.Transparency = 1
  504.  
  505. local Camisa = Instance.new("Part", Character)
  506. Camisa.Name = "Camisa"
  507.  
  508. Camisa.CanCollide = false
  509. Camisa.BrickColor = BrickColor.new("Institutional white")
  510. Camisa.Transparency = 1
  511. Camisa.Material = "Plastic"
  512. Camisa.Size = Vector3.new(1.5, 1.5, 1)
  513.  
  514. local Weld = Instance.new("Weld", Camisa)
  515. Weld.Part0 = Character.Torso
  516. Weld.Part1 = Camisa
  517. Weld.C1 = CFrame.new(0, 0, 0)
  518. ----------------------------------------
  519. local p = game.Players.LocalPlayer
  520. local char = p.Character
  521. local mouse = p:GetMouse()
  522. local larm = char["Left Arm"]
  523. local rarm = char["Right Arm"]
  524. local lleg = char["Left Leg"]
  525. local rleg = char["Right Leg"]
  526. local hed = char.Head
  527. local torso = char.Torso
  528. local hum = char.Humanoid
  529. local cam = game.Workspace.CurrentCamera
  530. local root = char.HumanoidRootPart
  531. local rj = root.RootJoint
  532. local deb = false
  533. local shot = 0
  534. local stanceToggle = "Idle1"
  535. local l = game:GetService("Lighting")
  536. local rs = game:GetService("RunService").RenderStepped
  537. local hb = game:GetService("RunService").Heartbeat
  538. local Stepped = game:GetService("RunService").Stepped
  539. math.randomseed(os.time())
  540. hum.JumpPower = 100
  541. hed.face:Remove()
  542. ----------------------------------------------------
  543. fat = Instance.new("BindableEvent",script)
  544. fat.Name = "Heartbeat"
  545.  
  546. script:WaitForChild("Heartbeat")
  547.  
  548. frame = 1/30
  549. tf = 0
  550. 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.
  551. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  552. lastframe = tick()
  553. script.Heartbeat:Fire() --ayy lmao
  554.  
  555. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  556. tf = tf + s
  557. if tf >= frame then
  558. if allowframeloss then
  559. script.Heartbeat:Fire()
  560. lastframe=tick()
  561. else
  562. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  563. for i=1, math.floor(tf/frame) do
  564. script.Heartbeat:Fire()
  565. end
  566. lastframe=tick()
  567. end
  568. if tossremainder then
  569. tf = 0
  570. else
  571. tf = tf - frame * math.floor(tf/frame)
  572. end
  573. end
  574. end)
  575. ----------------------------------------------------
  576. for i,v in pairs(char:children()) do
  577. if v:IsA("Hat") then
  578. v:Destroy()
  579. end
  580. end
  581. for i,v in pairs (hed:GetChildren()) do
  582. if v:IsA("Sound") then
  583. v:Destroy()
  584. end
  585. end
  586. ----------------------------------------------------
  587. Debounces = {
  588. CanAttack = true;
  589. CanJoke = true;
  590. NoIdl = false;
  591. Slashing = false;
  592. Slashed = false;
  593. ks = false;
  594. }
  595. ----------------------------------------------------
  596. function weld5(part0, part1, c0, c1)
  597. weeld=Instance.new("Weld", part0)
  598. weeld.Part0=part0
  599. weeld.Part1=part1
  600. weeld.C0=c0
  601. weeld.C1=c1
  602. return weeld
  603. end
  604. ----------------------------------------------------
  605. function NewPart(prnt,siz,cf,trans,anc,mat,col)
  606. local prt=Instance.new("Part")
  607. prt.Parent=prnt
  608. prt.Name="Part"
  609. prt.Size=siz
  610. prt.CanCollide=false
  611. prt.Anchored=anc
  612. prt.Locked=true
  613. prt.Transparency = trans
  614. prt.TopSurface=10
  615. prt.BottomSurface=10
  616. prt.FrontSurface=10
  617. prt.BackSurface=10
  618. prt.LeftSurface=10
  619. prt.RightSurface=10
  620. prt:BreakJoints()
  621. prt.CFrame=cf or CFrame.new(30,10,30)
  622. prt.Material=mat
  623. prt.BrickColor=BrickColor.new(col)
  624. m=Instance.new("SpecialMesh",prt)
  625. m.MeshType=6
  626. return prt
  627. end
  628. ----------------------------------------------------
  629. function lerp(a, b, t) -- Linear interpolation
  630. return a + (b - a)*t
  631. end
  632.  
  633. function slerp(a, b, t) --Spherical interpolation
  634. dot = a:Dot(b)
  635. if dot > 0.99999 or dot < -0.99999 then
  636. return t <= 0.5 and a or b
  637. else
  638. r = math.acos(dot)
  639. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  640. end
  641. end
  642.  
  643. function matrixInterpolate(a, b, t)
  644. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  645. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  646. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  647. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  648. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  649. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  650. local t = v1:Dot(v2)
  651. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  652. return CFrame.new()
  653. end
  654. return CFrame.new(
  655. v0.x, v0.y, v0.z,
  656. v1.x, v1.y, v1.z,
  657. v2.x, v2.y, v2.z,
  658. v3.x, v3.y, v3.z)
  659. end
  660. ----------------------------------------------------
  661. function genWeld(a,b)
  662. local w = Instance.new("Weld",a)
  663. w.Part0 = a
  664. w.Part1 = b
  665. return w
  666. end
  667. function weld(a, b)
  668. local weld = Instance.new("Weld")
  669. weld.Name = "W"
  670. weld.Part0 = a
  671. weld.Part1 = b
  672. weld.C0 = a.CFrame:inverse() * b.CFrame
  673. weld.Parent = a
  674. return weld;
  675. end
  676. ----------------------------------------------------
  677. function Lerp(c1,c2,al)
  678. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  679. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  680. for i,v in pairs(com1) do
  681. com1[i] = v+(com2[i]-v)*al
  682. end
  683. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  684. end
  685. ----------------------------------------------------
  686. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  687. local wld = Instance.new("Weld", wp1)
  688. wld.Part0 = wp0
  689. wld.Part1 = wp1
  690. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  691. end
  692. ----------------------------------------------------
  693. newWeld(torso, larm, -1.5, 0.5, 0)
  694. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  695. newWeld(torso, rarm, 1.5, 0.5, 0)
  696. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  697. newWeld(torso, hed, 0, 1.5, 0)
  698. newWeld(torso, lleg, -0.5, -1, 0)
  699. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  700. newWeld(torso, rleg, 0.5, -1, 0)
  701. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  702. newWeld(root, torso, 0, -1, 0)
  703. torso.Weld.C1 = CFrame.new(0, -1, 0)
  704. ----------------------------------------------------
  705. z = Instance.new("Sound",char) --Smile: print("â?º")
  706. z.SoundId = "rbxassetid://0"--410761150, 411368002
  707. z.Looped = true
  708. z.Pitch = 1
  709. z.Volume = 1
  710. wait(0.1)
  711. z:Play()
  712. ----------------------------------------------------
  713. New = function(Object, Parent, Name, Data)
  714. local Object = Instance.new(Object)
  715. for Index, Value in pairs(Data or {}) do
  716. Object[Index] = Value
  717. end
  718. Object.Parent = Parent
  719. Object.Name = Name
  720. return Object
  721. end
  722. ----------------------------------------------------
  723. --Left Arm
  724. m = Instance.new("Model")
  725. m.Name = "LeftArm"
  726.  
  727. p4 = Instance.new("Part", m)
  728. p4.BrickColor = BrickColor.new("Really black")
  729. p4.Material = Enum.Material.SmoothPlastic
  730. p4.Name = "LeftArmPlate"
  731. p4.Size = Vector3.new(1, 2, 1)
  732. p4.Transparency = 1
  733. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  734. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  735. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  736. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  737. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  738. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  739. b4 = Instance.new("SpecialMesh", p4)
  740. b4.MeshType = Enum.MeshType.Brick
  741. b4.Name = "Mesh"
  742. b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  743.  
  744.  
  745.  
  746.  
  747.  
  748. w1 = Instance.new("Weld", p1)
  749. w1.Name = "Part_Weld"
  750. w1.Part0 = p1
  751. w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  752. w1.Part1 = p2
  753. w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  754. w2 = Instance.new("Weld", p2)
  755. w2.Name = "Part_Weld"
  756. w2.Part0 = p2
  757. w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  758. w2.Part1 = p3
  759. w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  760. w3 = Instance.new("Weld", p3)
  761. w3.Name = "LeftArmPlate_Weld"
  762. w3.Part0 = p3
  763. w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  764. w3.Part1 = p4
  765. w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  766. w4 = Instance.new("Weld", p4)
  767. w4.Name = "Part_Weld"
  768. w4.Part0 = p4
  769. w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  770. w4.Part1 = p5
  771. w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  772. w5 = Instance.new("Weld", p5)
  773. w5.Name = "Part_Weld"
  774. w5.Part0 = p5
  775. w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  776. w5.Part1 = p6
  777. w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  778. w6 = Instance.new("Weld", p6)
  779. w6.Name = "Part_Weld"
  780. w6.Part0 = p6
  781. w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  782. w6.Part1 = p7
  783. w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  784. w7 = Instance.new("Weld", p7)
  785. w7.Name = "Part_Weld"
  786. w7.Part0 = p7
  787. w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  788. w7.Part1 = p8
  789. w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  790. w8 = Instance.new("Weld", p8)
  791. w8.Name = "Part_Weld"
  792. w8.Part0 = p8
  793. w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  794. w8.Part1 = p9
  795. w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  796. w9 = Instance.new("Weld", p9)
  797. w9.Name = "Part_Weld"
  798. w9.Part0 = p9
  799. w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  800. w9.Part1 = p10
  801. w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  802. w10 = Instance.new("Weld", p10)
  803. w10.Name = "Part_Weld"
  804. w10.Part0 = p10
  805. w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  806. w10.Part1 = p11
  807. w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  808. w11 = Instance.new("Weld", p11)
  809. w11.Name = "Part_Weld"
  810. w11.Part0 = p11
  811. w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  812. w11.Part1 = p12
  813. w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  814. w12 = Instance.new("Weld", p12)
  815. w12.Name = "Part_Weld"
  816. w12.Part0 = p12
  817. w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  818. w12.Part1 = p13
  819. w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  820. w13 = Instance.new("Weld", p13)
  821. w13.Name = "Part_Weld"
  822. w13.Part0 = p13
  823. w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  824. w13.Part1 = p14
  825. w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  826. w14 = Instance.new("Weld", p14)
  827. w14.Name = "Part_Weld"
  828. w14.Part0 = p14
  829. w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  830. w14.Part1 = p15
  831. w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  832. w15 = Instance.new("Weld", p15)
  833. w15.Name = "Part_Weld"
  834. w15.Part0 = p15
  835. w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  836. w15.Part1 = p16
  837. 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)
  838.  
  839. m.Parent = larm
  840. m:MakeJoints()
  841. ----------------------------------------------------
  842. local cor = Instance.new("Part", larm.LeftArm)
  843. cor.Name = "Thingy"
  844. cor.Locked = true
  845. cor.BottomSurface = 0
  846. cor.CanCollide = false
  847. cor.Size = Vector3.new(1, 1, 1)
  848. cor.Transparency = 1
  849. cor.TopSurface = 0
  850. corw = Instance.new("Weld", cor)
  851. corw.Part0 = larm
  852. corw.Part1 = cor
  853. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  854. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  855. weld1 = Instance.new("Weld", larm.LeftArm)
  856. weld1.Part0 = cor
  857. weld1.Part1 = larm.LeftArm.LeftArmPlate
  858. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  859. --Right Arm
  860. m2 = Instance.new("Model")
  861. m2.Name = "RightArm"
  862.  
  863. p7 = Instance.new("Part", m2)
  864. p7.BrickColor = BrickColor.new("Institutional white")
  865. p7.Material = Enum.Material.SmoothPlastic
  866. p7.Transparency = 1
  867. p7.Name = "RightArmPlate"
  868. p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  869. p7.FormFactor = Enum.FormFactor.Symmetric
  870. p7.Size = Vector3.new(1, 2, 1)
  871. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  872. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  873. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  874. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  875. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  876. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  877. b7 = Instance.new("SpecialMesh", p7)
  878. b7.MeshType = Enum.MeshType.Brick
  879. b7.Name = "Mesh"
  880. b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  881.  
  882.  
  883. w1 = Instance.new("Weld", p1)
  884. w1.Name = "Part_Weld"
  885. w1.Part0 = p1
  886. w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  887. w1.Part1 = p2
  888. w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  889. w2 = Instance.new("Weld", p2)
  890. w2.Name = "Part_Weld"
  891. w2.Part0 = p2
  892. w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  893. w2.Part1 = p3
  894. w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  895. w3 = Instance.new("Weld", p3)
  896. w3.Name = "Part_Weld"
  897. w3.Part0 = p3
  898. w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  899. w3.Part1 = p4
  900. w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  901. w4 = Instance.new("Weld", p4)
  902. w4.Name = "Part_Weld"
  903. w4.Part0 = p4
  904. w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  905. w4.Part1 = p5
  906. w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  907. w5 = Instance.new("Weld", p5)
  908. w5.Name = "Part_Weld"
  909. w5.Part0 = p5
  910. w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  911. w5.Part1 = p6
  912. w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  913. w6 = Instance.new("Weld", p6)
  914. w6.Name = "RightArmPlate_Weld"
  915. w6.Part0 = p6
  916. w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  917. w6.Part1 = p7
  918. w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  919. w7 = Instance.new("Weld", p7)
  920. w7.Name = "Part_Weld"
  921. w7.Part0 = p7
  922. w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  923. w7.Part1 = p8
  924. w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  925. w8 = Instance.new("Weld", p8)
  926. w8.Name = "Part_Weld"
  927. w8.Part0 = p8
  928. w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  929. w8.Part1 = p9
  930. w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  931. w9 = Instance.new("Weld", p9)
  932. w9.Name = "Part_Weld"
  933. w9.Part0 = p9
  934. w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  935. w9.Part1 = p10
  936. w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  937. w10 = Instance.new("Weld", p10)
  938. w10.Name = "Part_Weld"
  939. w10.Part0 = p10
  940. w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  941. w10.Part1 = p11
  942. w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  943. w11 = Instance.new("Weld", p11)
  944. w11.Name = "Part_Weld"
  945. w11.Part0 = p11
  946. w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  947. w11.Part1 = p12
  948. w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  949. w12 = Instance.new("Weld", p12)
  950. w12.Name = "Part_Weld"
  951. w12.Part0 = p12
  952. w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  953. w12.Part1 = p13
  954. w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  955. w13 = Instance.new("Weld", p13)
  956. w13.Name = "Part_Weld"
  957. w13.Part0 = p13
  958. w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  959. w13.Part1 = p14
  960. w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  961. w14 = Instance.new("Weld", p14)
  962. w14.Name = "Part_Weld"
  963. w14.Part0 = p14
  964. w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  965. w14.Part1 = p15
  966. w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  967. w15 = Instance.new("Weld", p15)
  968. w15.Name = "Part_Weld"
  969. w15.Part0 = p15
  970. w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  971. w15.Part1 = p16
  972. w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  973. w16 = Instance.new("Weld", p16)
  974. w16.Name = "Part_Weld"
  975. w16.Part0 = p16
  976. w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  977. w16.Part1 = p17
  978. w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  979. w17 = Instance.new("Weld", p17)
  980. w17.Name = "Part_Weld"
  981. w17.Part0 = p17
  982. w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  983. w17.Part1 = p18
  984. w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  985. w18 = Instance.new("Weld", p18)
  986. w18.Name = "Part_Weld"
  987. w18.Part0 = p18
  988. w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  989. w18.Part1 = p19
  990. w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  991. m2.Parent = rarm
  992. m2:MakeJoints()
  993. ----------------------------------------------------
  994. local cor2 = Instance.new("Part", rarm.RightArm)
  995. cor2.Name = "Thingy"
  996. cor2.Locked = true
  997. cor2.BottomSurface = 0
  998. cor2.CanCollide = false
  999. cor2.Size = Vector3.new(1, 1, 1)
  1000. cor2.Transparency = 1
  1001. cor2.TopSurface = 0
  1002. corw2 = Instance.new("Weld", cor2)
  1003. corw2.Part0 = rarm
  1004. corw2.Part1 = cor2
  1005. corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1006. corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1007. weld2 = Instance.new("Weld", rarm.RightArm)
  1008. weld2.Part0 = cor2
  1009. weld2.Part1 = rarm.RightArm.RightArmPlate
  1010. weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1011.  
  1012.  
  1013. --Zyrodoxa
  1014. m8 = Instance.new("Model")
  1015. m8.Name = "Zyrodoxa"
  1016.  
  1017. p16 = Instance.new("Part", m8)
  1018. p16.BrickColor = BrickColor.new("Instutional white")
  1019. p16.Material = Enum.Material.Metal
  1020. p16.Name = "Handle"
  1021. 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)
  1022. p16.CanCollide = false
  1023. p16.Locked = true
  1024. p16.FormFactor = Enum.FormFactor.Custom
  1025. p16.Size = Vector3.new(0, 0, 0)
  1026. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1027. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1028. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1029. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1030. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1031. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1032. b16 = Instance.new("BlockMesh", p16)
  1033. b16.Name = "Mesh"
  1034. b16.Scale = Vector3.new(0, 0, 0)
  1035.  
  1036. w16 = Instance.new("Weld", p16)
  1037. w16.Name = "Block_Weld"
  1038. w16.Part0 = p16
  1039. 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)
  1040. w16.Part1 = p17
  1041. 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)
  1042.  
  1043. m8.Parent = rarm
  1044. m8:MakeJoints()
  1045. ----------------------------------------------------
  1046. local cor8 = Instance.new("Part", rarm.Zyrodoxa)
  1047. cor8.Name = "Thingy"
  1048. cor8.Locked = true
  1049. cor8.BottomSurface = 0
  1050. cor8.CanCollide = false
  1051. cor8.Size = Vector3.new(1, 1, 1)
  1052. cor8.Transparency = 1
  1053. cor8.TopSurface = 0
  1054. corw8 = Instance.new("Weld", cor8)
  1055. corw8.Part0 = rarm
  1056. corw8.Part1 = cor8
  1057. corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
  1058. corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1059. weld8 = Instance.new("Weld", rarm.Zyrodoxa)
  1060. weld8.Part0 = cor8
  1061. weld8.Part1 = rarm.Zyrodoxa.Handle
  1062. weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1063. ----------------------------------------------------
  1064. models = {m,m2,m3,m4,m5,m6,m7,m8}
  1065. parts = {}
  1066. Stepped:connect(function()
  1067. for i,v in pairs(models) do
  1068. for _, a in pairs(v:GetChildren()) do
  1069. if v:IsA("Part") and v.Name ~= "Thingy" then
  1070. table.insert(parts, a)
  1071. for i,v in pairs(parts) do
  1072. v.CanCollide = false
  1073. end
  1074. end
  1075. end
  1076. end
  1077. end)
  1078. ----------------------------------------------------
  1079. local animpose = "Idle1"
  1080. local lastanimpose = "Idle1"
  1081. local grab = false
  1082. local Smooth = 1
  1083. local sine = 0
  1084. local change = 1
  1085. local val = 0
  1086. local ffing = false
  1087. ----------------------------------------------------
  1088. --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
  1089.  
  1090. function FindHumanoids()
  1091. local function c_region(Position, Size)
  1092. local SizeOffset = Size/2
  1093. local Point1 = Position - SizeOffset
  1094. local Point2 = Position + SizeOffset
  1095. local a = Instance.new("Part", workspace)
  1096. a.Anchored = true
  1097. a.Size = Size
  1098. a.Position = Position
  1099. print("Hey!, I'm making a part!")
  1100. return Region3.new(Point1, Point2)
  1101. end
  1102.  
  1103. local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1104. local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1105. local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1106. local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1107.  
  1108. local regions = {a, b, c, d}
  1109.  
  1110. local found_humanoids = {}
  1111. local already_found = {char.Name}
  1112.  
  1113. for _, region in pairs(regions) do
  1114. for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
  1115. print(part, part.Parent, part.Name) ---nope
  1116. if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  1117. local humanoid = part.Parent:FindFirstChild("Humanoid")
  1118. local name = humanoid.Parent.Name
  1119. local exists = false
  1120. for _, n in pairs(already_found) do
  1121. if n == name then
  1122. exists = true
  1123. end
  1124. end
  1125. if not exists then
  1126. table.insert(already_found, name)
  1127. table.insert(found_humanoids, humanoid)
  1128. end
  1129. elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  1130. local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  1131. local name = humanoid.Parent.Parent.Name
  1132. local exists = false
  1133. for _, n in pairs(already_found) do
  1134. if n == name then
  1135. exists = true
  1136. end
  1137. end
  1138. if not exists then
  1139. table.insert(already_found, name)
  1140. table.insert(found_humanoids, humanoid)
  1141. end
  1142. end
  1143. end
  1144. end
  1145. return found_humanoids
  1146. end
  1147.  
  1148. local humanoids = FindHumanoids()
  1149. if #humanoids == 0 then
  1150. for i, v in pairs(humanoids) do
  1151. print(v.Parent.Name)
  1152. if Debounces.Slashing == true then
  1153. v:TakeDamage(math.random(320,560) * math.random(1,3)) --max 60 damage?
  1154. elseif Debounces.Slashing == false then
  1155. wait()
  1156. end
  1157. end
  1158. wait(0.3)
  1159. end]]--
  1160. ----------------------------------------------------
  1161. --[[mouse.KeyDown:connect(function(key)
  1162. if key == "f" then
  1163. if Debounces.CanAttack == true then
  1164. Debounces.CanAttack = false
  1165. Debounces.NoIdl = true
  1166. Debounces.on = true
  1167. for i = 1, 20 do
  1168. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1169. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1170. CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
  1171. CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1172. CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1173. CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1174. CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1175. 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)
  1176. 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)
  1177. 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)
  1178. 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)
  1179. 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)
  1180. 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)
  1181. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
  1182. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
  1183. 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)
  1184. 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)
  1185. 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)
  1186. 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)
  1187. if Debounces.on == false then
  1188. break
  1189. end
  1190. fat.Event:wait()
  1191. end
  1192. end
  1193. end
  1194. end)]]--
  1195. ----------------------------------------------------
  1196. mod4 = Instance.new("Model",char)
  1197.  
  1198. ptez = {0.7, 0.8, 0.9, 1}
  1199.  
  1200. function FindNearestTorso(Position,Distance,SinglePlayer)
  1201. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1202. local List = {}
  1203. for i,v in pairs(workspace:GetChildren())do
  1204. if v:IsA("Model")then
  1205. if v:findFirstChild("Torso")then
  1206. if v ~= char then
  1207. if(v.Torso.Position -Position).magnitude <= Distance then
  1208. table.insert(List,v)
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. return List
  1215. end
  1216.  
  1217. function Slam()
  1218. local part=Instance.new('Part',mod4)
  1219. part.Anchored=true
  1220. part.CanCollide=false
  1221. part.FormFactor='Custom'
  1222. part.Size=Vector3.new(.2,.2,.2)
  1223. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  1224. part.Transparency=.7
  1225. part.BrickColor=BrickColor.new('Really black')
  1226. mesh=Instance.new('SpecialMesh',part)
  1227. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  1228. mesh.Scale=Vector3.new(3,3,3)
  1229. local part2=Instance.new('Part',mod4)
  1230. part2.Anchored=true
  1231. part2.CanCollide=false
  1232. part2.FormFactor='Custom'
  1233. part2.Size=Vector3.new(.2,.2,.2)
  1234. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  1235. part2.Transparency=.7
  1236. part2.BrickColor=BrickColor.new('Institutional white')
  1237. mesh2=Instance.new('SpecialMesh',part2)
  1238. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  1239. mesh2.Scale=Vector3.new(3,1.5,3)
  1240. x = Instance.new("Sound",larm)
  1241. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  1242. x.Pitch = ptez[math.random(1,#ptez)]
  1243. x.Volume = 1
  1244. wait(.1)
  1245. x1 = Instance.new("Sound",larm)
  1246. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  1247. x1.Pitch = ptez[math.random(1,#ptez)]
  1248. x1.Volume = 1
  1249. wait(.1)
  1250. x:Play()
  1251. x1:Play()
  1252. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  1253. if v:FindFirstChild('Humanoid') then
  1254. v.Humanoid:TakeDamage(math.random(12260,58880))
  1255. end
  1256. end
  1257. coroutine.resume(coroutine.create(function()
  1258. for i=0,0.62,0.13 do
  1259. wait()
  1260. part.CFrame=part.CFrame
  1261. part.Transparency=i
  1262. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  1263. part2.CFrame=part2.CFrame
  1264. part2.Transparency=i
  1265. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  1266. end
  1267. part.Parent=nil
  1268. part2.Parent=nil
  1269. x:Destroy()
  1270. end))
  1271. end
  1272. ----------------------------------------------------
  1273. wPart = function(x,y,z,color,tr,cc,an,parent)
  1274. local wp = Instance.new('WedgePart',parent or Weapon)
  1275. wp.formFactor = 'Custom'
  1276. wp.Size = Vector3.new(x,y,z)
  1277. wp.BrickColor = BrickColor.new(color)
  1278. wp.CanCollide = cc
  1279. wp.Transparency = tr
  1280. wp.Anchored = an
  1281. wp.TopSurface,wp.BottomSurface = 0,0
  1282. return wp
  1283. end
  1284.  
  1285. Mesh = function(par,num,x,y,z)
  1286. local msh = _
  1287. if num == 1 then
  1288. msh = Instance.new("CylinderMesh",par)
  1289. elseif num == 2 then
  1290. msh = Instance.new("SpecialMesh",par)
  1291. msh.MeshType = 3
  1292. elseif num == 3 then
  1293. msh = Instance.new("BlockMesh",par)
  1294. elseif num == 4 then
  1295. msh = Instance.new("SpecialMesh",par)
  1296. msh.MeshType = "Torso"
  1297. elseif type(num) == 'string' then
  1298. msh = Instance.new("SpecialMesh",par)
  1299. msh.MeshId = num
  1300. end
  1301. msh.Scale = Vector3.new(x,y,z)
  1302. return msh
  1303. end
  1304.  
  1305. local function CFrameFromTopBack(at, top, back)
  1306. local right = top:Cross(back)
  1307. return CFrame.new(at.x, at.y, at.z,
  1308. right.x, top.x, back.x,
  1309. right.y, top.y, back.y,
  1310. right.z, top.z, back.z)
  1311. end
  1312.  
  1313. function Triangle(a, b, c)
  1314. local edg1 = (c-a):Dot((b-a).unit)
  1315. local edg2 = (a-b):Dot((c-b).unit)
  1316. local edg3 = (b-c):Dot((a-c).unit)
  1317. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1318. a, b, c = a, b, c
  1319. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1320. a, b, c = b, c, a
  1321. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1322. a, b, c = c, a, b
  1323. else
  1324. print("unreachable")
  1325. end
  1326. local len1 = (c-a):Dot((b-a).unit)
  1327. local len2 = (b-a).magnitude - len1
  1328. local width = (a + (b-a).unit*len1 - c).magnitude
  1329. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1330. local list = {}
  1331. if len1 > 0.01 then
  1332. local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  1333. local sz = Vector3.new(0.2, width, len1)
  1334. w1.Size = sz
  1335. local sp = Mesh(w1,2,0,0,0)
  1336. sp.MeshType='Wedge'
  1337. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  1338. w1:BreakJoints()
  1339. w1.Anchored = true
  1340. w1.Transparency = 0.7
  1341. Spawn(function()
  1342. for i=0,1,0.1 do
  1343. fat.Event:wait()
  1344. w1.Transparency=w1.Transparency+0.03
  1345. end
  1346. end)
  1347. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1348. table.insert(list,w1)
  1349. end
  1350. if len2 > 0.01 then
  1351. local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  1352. local sz = Vector3.new(0.2, width, len2)
  1353. w2.Size = sz
  1354. local sp = Mesh(w2,2,0,0,0)
  1355. sp.MeshType='Wedge'
  1356. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  1357. w2:BreakJoints()
  1358. w2.Anchored = true
  1359. w2.Transparency = 0.7
  1360. Spawn(function()
  1361. for i=0,1,0.1 do
  1362. fat.Event:wait()
  1363. w2.Transparency=w2.Transparency+0.03
  1364. end
  1365. end)
  1366. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1367. table.insert(list,w2)
  1368. end
  1369. return unpack(list)
  1370. end
  1371.  
  1372. function trail(p,t,h)
  1373. Spawn(function()
  1374. local blcf = p.CFrame
  1375. local scfr = blcf
  1376. for i=1,t do
  1377. local blcf = p.CFrame
  1378. if scfr and (p.Position-scfr.p).magnitude > .1 then
  1379. 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)
  1380. if a then game.Debris:AddItem(a,1) end
  1381. if b then game.Debris:AddItem(b,1) end
  1382. 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)
  1383. if a then game.Debris:AddItem(a,1) end
  1384. if b then game.Debris:AddItem(b,1) end
  1385. scfr = blcf
  1386. elseif not scfr then
  1387. scfr = blcf
  1388. end
  1389. fat.Event:wait()
  1390. end
  1391. scfr=nil
  1392. end)
  1393. end
  1394. --trail(char.Sword.Blade,1e1000,5)
  1395. ----------------------------------------------------
  1396. function Dmg()
  1397. local partofdeath = rarm.Zyrodoxa.Hitbox
  1398. local function CreateRegion3FromLocAndSize(Position, Size)
  1399. local SizeOffset = Size/2
  1400. local Point1 = Position - SizeOffset
  1401. local Point2 = Position + SizeOffset
  1402. return Region3.new(Point1, Point2)
  1403. end
  1404. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  1405. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  1406. Spawn(function()
  1407. if Debounces.Slashing == true and Debounces.Slashed == false then
  1408. Debounces.Slashed = true
  1409. ypcall(function()
  1410. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  1411. humanoid:TakeDamage(math.random(30000,480000))
  1412. end)
  1413. wait(.4)
  1414. Debounces.Slashed = false
  1415. end
  1416. end)
  1417. end
  1418. end
  1419. ----------------------------------------------------
  1420. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  1421. ptz = {0.7, 0.8, 0.9, 1}
  1422. idz = {"161006212", "161006195"}
  1423. function attackone()
  1424. for i = 1, 13 do
  1425. 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)
  1426. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
  1427. 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)
  1428. 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)
  1429. 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)
  1430. 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)
  1431. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
  1432. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
  1433. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
  1434. 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)
  1435. 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)
  1436. 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)
  1437. 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)
  1438. 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)
  1439. if Debounces.on == false then
  1440. break
  1441. end
  1442. fat.Event:wait()
  1443. end
  1444. trail(rarm.Zyrodoxa.Hitbox,20,2)
  1445. Debounces.Slashing = true
  1446. wait(0.2)
  1447. --[[z = Instance.new("Sound", hed)
  1448. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1449. z.Pitch = ptz[math.random(1,#ptz)]
  1450. z.Volume = 1
  1451. wait(.01)
  1452. z:Play()]]--
  1453. for i = 1, 14 do
  1454. Dmg()
  1455. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  1456. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
  1457. 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)
  1458. 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)
  1459. 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)
  1460. 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)
  1461. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
  1462. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1463. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
  1464. 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)
  1465. 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)
  1466. 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)
  1467. 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)
  1468. 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)
  1469. if Debounces.on == false then break end
  1470. rs:wait()
  1471. end
  1472. Debounces.Slashing = false
  1473. end
  1474. function attacktwo()
  1475. Debounces.Slashing = true
  1476. for i = 1, 14 do
  1477. Dmg()
  1478. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  1479. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
  1480. 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)
  1481. 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)
  1482. 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)
  1483. 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)
  1484. 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)
  1485. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1486. 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)
  1487. 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)
  1488. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
  1489. 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)
  1490. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
  1491. 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)
  1492. if Debounces.on == false then
  1493. break
  1494. end
  1495. rs:wait()
  1496. end
  1497. end
  1498. ----------------------------------------------------
  1499.  
  1500. ----------------------------------------------------
  1501. definition = 5
  1502. bc = {}
  1503. bezierparts = {}
  1504. function NoOutline(Part)
  1505. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1506. end
  1507. function draw(p,d)
  1508. for i=1,d do
  1509. local t = i/d
  1510. bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
  1511. end
  1512.  
  1513. Spawn(function() fat.Event:wait()
  1514. for i,v in pairs(bezierparts) do
  1515. v.Transparency = 1
  1516. end
  1517. end)
  1518. end
  1519. --local points = {larm.Position,rarn.Position,invisipart.Position}
  1520. --draw(points,definition)
  1521.  
  1522. fat.Event:wait()
  1523.  
  1524. rpart = Instance.new("Part",rarm)
  1525. NoOutline(rpart)
  1526. rpart.Anchored = false
  1527. rpart.Size = Vector3.new(1,1,1)
  1528. rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  1529. rpart.Transparency = 1
  1530. newWeld(rarm, rpart, 0, 0, 0)
  1531. rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  1532. lpart = Instance.new("Part",larm)
  1533. NoOutline(lpart)
  1534. lpart.Anchored = false
  1535. lpart.Size = Vector3.new(1,1,1)
  1536. lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  1537. lpart.Transparency = 1
  1538. newWeld(larm, lpart, 0, 0, 0)
  1539. lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  1540. invisipart = Instance.new("Part",torso)
  1541. NoOutline(invisipart)
  1542. invisipart.Anchored = false
  1543. invisipart.Size = Vector3.new(1,1,1)
  1544. invisipart.Transparency = 1
  1545. invisipart.CFrame = torso.CFrame
  1546. newWeld(torso, invisipart, 0, 0, 0)
  1547. invisipart.Weld.C1 = CFrame.new(0, 0, 6)
  1548. table.insert(bezierparts, rpart)
  1549. table.insert(bezierparts, lpart)
  1550. table.insert(bezierparts, invisipart)
  1551. for i = 1, 40 do
  1552. local points = {lpart.Position,invisipart.Position,rpart.Position}
  1553. draw(points,definition)
  1554. --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
  1555. 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)
  1556. 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)
  1557. 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)
  1558. 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)
  1559. 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)
  1560. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1561. 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)
  1562. 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)
  1563. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
  1564. 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)
  1565. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
  1566. 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)
  1567. if Debounces.on == false then
  1568. break
  1569. end
  1570. fat.Event:wait()
  1571. end
  1572. for i,v in pairs(bezierparts) do
  1573. v:Destroy()
  1574. end
  1575. --draw(points,definition)
  1576. if Debounces.CanAttack == false then
  1577. Debounces.CanAttack = true
  1578. Debounces.NoIdl = false
  1579. Debounces.on = false
  1580. end
  1581.  
  1582. ----------------------------------------------------
  1583. ----------------------------------------------------
  1584. pt = {6.6, 6.8, 7, 7.2, 7.4}
  1585. mouse.KeyDown:connect(function(key)
  1586. if key == "q" then
  1587. if Debounces.CanJoke == true then
  1588. Debounces.CanJoke = false
  1589. u = Instance.new("Sound",char)
  1590. u.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1591. u.Pitch = pt[math.random(1,#pt)]
  1592. u.Volume = 0.3
  1593. u2 = Instance.new("Sound",char)
  1594. u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1595. u2.Pitch = u.Pitch
  1596. u2.Volume = 0.3
  1597. u3 = Instance.new("Sound",char)
  1598. u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1599. u3.Pitch = u.Pitch
  1600. u3.Volume = 0.3
  1601. wait(.01)
  1602. u:Play()
  1603. u2:Play()
  1604. u3:Play()
  1605. wait(1.5)
  1606. u:Destroy()
  1607. u2:Destroy()
  1608. u3:Destroy()
  1609. if Debounces.CanJoke == false then
  1610. Debounces.CanJoke = true
  1611. end
  1612. end
  1613. end
  1614. end)
  1615. ----------------------------------------------------
  1616. ----------------------------------------------------
  1617. mouse.KeyDown:connect(function(key)
  1618. if key == "j" then
  1619. if Debounces.CanJoke == true then
  1620. Debounces.CanJoke = false
  1621. z = Instance.new("Sound",hed)
  1622. z.SoundId = "rbxassetid://415859013"
  1623. z.Pitch = pitches[math.random(1,#pitches)]
  1624. z.Volume = 1
  1625. wait()
  1626. z:Play()
  1627. wait(2)
  1628. z:Destroy()
  1629. if Debounces.CanJoke == false then
  1630. Debounces.CanJoke = true
  1631. end
  1632. end
  1633. end
  1634. end)
  1635.  
  1636. ----------------------------------------------------
  1637. Grab = false
  1638. mouse.KeyDown:connect(function(key)
  1639. if key == "e" then
  1640. Debounces.on = true
  1641. Debounces.NoIdl = true
  1642. Debounces.ks = true
  1643. if Grab == false then
  1644. gp = nil
  1645. for i = 1, 20 do
  1646. 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)
  1647. 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)
  1648. 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)
  1649. 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)
  1650. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  1651. 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)
  1652. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  1653. 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)
  1654. 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)
  1655. 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)
  1656. 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)
  1657. 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)
  1658. if Debounces.on == false then break end
  1659. fat.Event:wait()
  1660. end
  1661. con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
  1662. ht = hit.Parent
  1663. for i,v in pairs(ht:GetChildren()) do
  1664. if v:IsA("Part") then
  1665. v.CanCollide = false
  1666. v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  1667. end
  1668. end
  1669. hum1=ht:FindFirstChild('Humanoid')
  1670. if hum1 ~= nil then
  1671. if Debounces.ks==true then
  1672. z = Instance.new("Sound",hed)
  1673. z.SoundId = "rbxassetid://169380525"
  1674. z.Volume = 1
  1675. z:Play()
  1676. Debounces.ks=false
  1677. end
  1678. hum1.PlatformStand=true
  1679. hum1:ChangeState'Physics'
  1680. gp = ht
  1681. Grab = true
  1682. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
  1683. asd.Parent = larm
  1684. asd.Name = "asd"
  1685. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  1686. stanceToggle = "Grabbed"
  1687. --[[elseif hum1 == nil then
  1688. con1:disconnect()
  1689. wait() return]]--
  1690. end
  1691. end)
  1692. for i = 1, 20 do
  1693. 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)
  1694. 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)
  1695. 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)
  1696. 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)
  1697. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
  1698. 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)
  1699. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1700. 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)
  1701. 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)
  1702. 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)
  1703. 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)
  1704. 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)
  1705. if Debounces.on == false then break end
  1706. fat.Event:wait()
  1707. end
  1708. con1:disconnect()
  1709. Debounces.on = false
  1710. Debounces.NoIdl = false
  1711. elseif Grab == true then
  1712. Grab = false
  1713. --[[for i = 1, 16 do
  1714. 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)
  1715. 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)
  1716. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  1717. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1718. 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)
  1719. 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)
  1720. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  1721. if Debounces.on == false then end
  1722. rs:wait()
  1723. end]]--
  1724. for i = 1, 16 do
  1725. 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)
  1726. 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)
  1727. 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)
  1728. 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)
  1729. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  1730. 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)
  1731. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
  1732. 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)
  1733. 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)
  1734. 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)
  1735. 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)
  1736. 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)
  1737. if Debounces.on == false then end
  1738. rs:wait()
  1739. end
  1740. for i = 1, 12 do
  1741. 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)
  1742. 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)
  1743. 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)
  1744. 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)
  1745. 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)
  1746. 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)
  1747. 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)
  1748. 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)
  1749. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
  1750. 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)
  1751. 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)
  1752. 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)
  1753. if Debounces.on == false then end
  1754. rs:wait()
  1755. end
  1756. Slam()
  1757. if gp ~= nil then
  1758. for i,v in pairs(larm:GetChildren()) do
  1759. if v.Name == "asd" and v:IsA("Weld") then
  1760. v:Remove()
  1761. end
  1762. if v:IsA("Part") then
  1763. v.CanCollide = true
  1764. v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
  1765. end
  1766. end
  1767. end
  1768. stanceToggle = "Idle1"
  1769. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  1770. bv.maxForce = Vector3.new(400000, 400000, 400000)
  1771. bv.P = 125000
  1772. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  1773. ht=nil
  1774. Debounces.on = false
  1775. Debounces.NoIdl = false
  1776. elseif ht == nil then wait()
  1777. Grab = false
  1778. Debounces.on = false
  1779. Debounces.NoIdl = false
  1780. end
  1781. end
  1782. end)
  1783. ----------------------------------------------------
  1784. Change = false
  1785. mouse.KeyDown:connect(function(key)
  1786. if key == "n" then
  1787. if Change == false then
  1788. Change = true
  1789. stanceToggle = "Idle2"
  1790. elseif Change == true then
  1791. Change = false
  1792. stanceToggle = "Idle1"
  1793. end
  1794. end
  1795. end)
  1796. ----------------------------------------------------
  1797. mouse.KeyDown:connect(function(key)
  1798. if string.byte(key) == 52 then
  1799. Swing = 2
  1800. char.Humanoid.WalkSpeed = 28
  1801. end
  1802. end)
  1803. mouse.KeyUp:connect(function(key)
  1804. if string.byte(key) == 52 then
  1805. Swing = 1
  1806. char.Humanoid.WalkSpeed = 16
  1807. end
  1808. end)
  1809. ----------------------------------------------------
  1810.  
  1811. jump = false
  1812. rs:connect(function()
  1813. if char.Humanoid.Jump == true then
  1814. jump = true
  1815. else
  1816. jump = false
  1817. end
  1818. char.Humanoid.FreeFalling:connect(function(f)
  1819. if f then
  1820. ffing = true
  1821. else
  1822. ffing = false
  1823. end
  1824. end)
  1825. sine = sine + change
  1826. if jump == true then
  1827. animpose = "Jumping"
  1828. elseif ffing == true then
  1829. animpose = "Freefalling"
  1830. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1831. animpose = "Idle"
  1832. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1833. animpose = "Walking"
  1834. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1835. animpose = "Running"
  1836. end
  1837. RightLeg = CFrame.new(0.5,-1,0)
  1838. LeftLeg = CFrame.new(-0.5,-1,0)
  1839.  
  1840. lefth = (torso.CFrame*LeftLeg)
  1841. righth = (torso.CFrame*RightLeg)
  1842.  
  1843. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1844.  
  1845. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1846.  
  1847. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1848. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1849. if animpose ~= lastanimpose then
  1850. sine = 0
  1851. if Debounces.NoIdl == false then
  1852. if stanceToggle == "Idle1" then
  1853. 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)
  1854. 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)
  1855. 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)
  1856. 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)
  1857. 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)
  1858. 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)
  1859. elseif stanceToggle == "Idle2" then
  1860. 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)
  1861. 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)
  1862. 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)
  1863. 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)
  1864. 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)
  1865. 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)
  1866. end
  1867. fat.Event:wait()
  1868. end
  1869. else
  1870. end
  1871. lastanimpose = animpose
  1872. if Debounces.NoIdl == false then
  1873. if animpose == "Idle" then
  1874. change = 0.5
  1875. if stanceToggle == "Idle1" then
  1876. 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)
  1877. 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)
  1878.  
  1879. 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)
  1880. 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)
  1881. 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)
  1882. 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)
  1883. 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)
  1884. 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)
  1885. 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)
  1886. 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)
  1887. 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)
  1888. 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)
  1889. 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)
  1890. 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)
  1891. elseif stanceToggle == "Idle2" then
  1892.  
  1893. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1894. 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)
  1895. 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)
  1896. 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)
  1897. 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)
  1898. 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)
  1899. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1900. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1901. --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)
  1902. 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)
  1903. 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)
  1904. 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)
  1905. 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)
  1906. 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)
  1907. elseif stanceToggle == "Grabbed" then
  1908. grab = true
  1909. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1910. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1911. 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)
  1912. 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)
  1913. 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)
  1914. 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)
  1915. 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)
  1916. 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)
  1917. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1918. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1919. 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)
  1920. 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)
  1921. 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)
  1922. 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)
  1923. end
  1924. elseif animpose == "Walking" then
  1925. if stanceToggle == "Grabbed" then
  1926. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1927. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1928. 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)
  1929. 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)
  1930. 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)
  1931. 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)
  1932. 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)
  1933. 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)
  1934. 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)
  1935. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1936. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1937. 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)
  1938. 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)
  1939. 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)
  1940. 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)
  1941. elseif stanceToggle ~= "Grabbed" then
  1942. change = 1
  1943. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1944. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1945.  
  1946. 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)
  1947. 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)
  1948. 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)
  1949. 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)
  1950. 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)
  1951. 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)
  1952. 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)
  1953. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1954. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1955. --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)
  1956. 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)
  1957. 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)
  1958. --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)
  1959. 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)
  1960. 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)
  1961. end
  1962. elseif animpose == "Running" then
  1963. change = 1
  1964. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1965. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1966.  
  1967. 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)
  1968. 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)
  1969. 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)
  1970. 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)
  1971. 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)
  1972. 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)
  1973. 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)
  1974. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1975. 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)
  1976. 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)
  1977. 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)
  1978. 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)
  1979. elseif animpose == "Jumping" then
  1980.  
  1981. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1982. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1983. 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)
  1984. 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)
  1985. 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)
  1986. 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)
  1987. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  1988. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1989. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1990. 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)
  1991. 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)
  1992. 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)
  1993. 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)
  1994. elseif animpose == "Freefalling" then
  1995.  
  1996. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1997. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1998. 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)
  1999. 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)
  2000. 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)
  2001. 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)
  2002. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  2003. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  2004. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2005. 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)
  2006. 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)
  2007. 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)
  2008. 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)
  2009. end
  2010. end
  2011. end)
  2012. hum.MaxHealth = math.huge
  2013. wait(3)
  2014. hum.Health = math.huge
  2015. sg = Instance.new("ShirtGraphic",game.Players.LocalPlayer.Character)
  2016. sg.Graphic = "http://www.roblox.com/asset/?id=129899427"
  2017.  
  2018. for _,n in pairs(Character:GetChildren()) do
  2019. if n:IsA("Accessory") then n:Remove() end
  2020. end
RAW Paste Data