Advertisement
Guest User

Untitled

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