Advertisement
gdgrg

luis911911

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