Advertisement
Sergeant_SethZP

Untitled

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