Advertisement
Guest User

Untitled

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