SilentWraith

Batlle Titan

May 18th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.08 KB | None | 0 0
  1. --Batlle Titan
  2. function Click()
  3.     repeat game:GetService('RunService').Stepped:wait() until game:GetService('Players').LocalPlayer.Character
  4. ----
  5. ----
  6. sit = true
  7. cn = CFrame.new
  8. v3 = Vector3.new
  9. c3 = Color3.new
  10. bn = BrickColor.new
  11. ca2 = CFrame.Angles
  12. ca = function(x,y,z) return ca2(math.rad(x),math.rad(y),math.rad(z)) end
  13. ud2 = UDim2.new
  14. ----
  15. ----
  16. local Player = game:GetService('Players').LocalPlayer
  17. local Char = Player.Character
  18. local Human = Char.Humanoid
  19. local Mouse = Player:GetMouse()
  20. ----
  21. ----
  22. Human.WalkSpeed = 0
  23. print ('Loading...')
  24. wait(.5)
  25. ----
  26. ----
  27. la = Char['Left Arm']
  28. ra = Char['Right Arm']
  29. ll = Char['Left Leg']
  30. rl = Char['Right Leg']
  31. tr = Char['Torso']
  32. hd = Char['Head']
  33. rp = Char['HumanoidRootPart']
  34. ----
  35. ----
  36. ram = tr['Right Shoulder']
  37. lam = tr['Left Shoulder']
  38. llm = tr['Left Hip']
  39. rlm = tr['Right Hip']
  40. hm = tr['Neck']
  41. rj = rp['RootJoint']
  42. ----
  43. ----
  44. InputService = game:GetService('UserInputService')
  45. RunService = game:GetService('RunService')
  46. ----
  47. ----
  48. LastMade = nil
  49.  
  50. xNew=function(Table)
  51.     local Obj=Instance.new(Table[1])
  52.     for Ind,Val in pairs(Table) do
  53.         if Ind~=1 and Ind~=2 then
  54.             Obj[Ind] = Val
  55.         end
  56.     end
  57.     Obj.Parent=Table[2]
  58.     LastMade= Obj
  59.     return Obj
  60. end
  61.  
  62. xPart=function(tab)
  63.     local v=Instance.new(tab.type or "Part")
  64.     if tab.type~="CornerWedgePart" then v.formFactor="Custom" end
  65.     v.CanCollide=false
  66.     v.TopSurface=10 v.BottomSurface=10 v.RightSurface=10 v.LeftSurface=10 v.FrontSurface=10 v.BackSurface=10
  67.     v.Size=v3(tab[2],tab[3],tab[4])
  68.     if tab.co then v.BrickColor=bn(tab.co) end
  69.     if tab.tr then v.Transparency=tab.tr end
  70.     if tab.rf then v.Reflectance=tab.rf end
  71.     if tab.cf then v.CFrame=tab.cf end
  72.     if tab.an then v.Anchored=tab.an end
  73.     if tab.mt then v.Material=tab.mt end
  74.     if tab.ca then v.CanCollide=tab.ca end
  75.     v.Parent=tab[1]
  76.     LastMade= v
  77.     return v
  78. end
  79.  
  80. xWeld = function(a,b,between,type)
  81.     local Weld = xNew{type or 'Weld',a,Part0 = a,Part1 = b, C0 = cn()}
  82.     if between then
  83.         Weld.C1 = b.CFrame:inverse() * a.CFrame
  84.     else
  85.         Weld.C1 = cn()
  86.     end
  87.     return Weld
  88. end
  89.  
  90. function xSound(id,parent,pitch)
  91.     local s = xNew{'Sound', PlayOnRemove = true, SoundId = 'http://roblox.com/asset/?id='..id,Pitch = pitch}
  92.     s.Parent = parent
  93.     s:Destroy()
  94. end
  95.  
  96. ----
  97. ----
  98. do local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end function clerp(a,b,t) local qa = {QuaternionFromCFrame(a)} local qb = {QuaternionFromCFrame(b)} local ax, ay, az = a.x, a.y, a.z local bx, by, bz = b.x, b.y, b.z local _t = 1-t return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) end end
  99. function xlerp(weld,to,tim)
  100.     if weld.C1 ~= to then
  101.     --weld.C1 = clerp(weld.C1,to,tim)
  102.     weld.C1 = weld.C1:lerp(to,tim)
  103.     end
  104. end
  105. function lerp(a,b,c)return a+(b-a)*c end
  106. ----
  107. ----
  108. Char.Health:Destroy()
  109. wait(.25)
  110. ----
  111. ra.Size = ra.Size * 3
  112. la.Size = la.Size * 3
  113. ll.Size = ll.Size * 3
  114. rl.Size = rl.Size * 3
  115. tr.Size = tr.Size * 3
  116. hd.Size = hd.Size * 3
  117. rp.Size = rp.Size * 3
  118. --
  119. local tw = xWeld(rp,tr)
  120. tw.C1 = cn(0,0,0)
  121. local law = xWeld(tr,la)
  122. law.C0 = cn(-4.5,.5,0)
  123. law.C1 = cn(0,.5,0)
  124. local raw = xWeld(tr,ra)
  125. raw.C0 = cn(4.5,.5,0)
  126. raw.C1 = cn(0,.5,0)
  127. local llw = xWeld(tr,ll)
  128. llw.C0 = cn(-1.5,-5,0)
  129. llw.C1 = cn(0,1,0)
  130. local rlw = xWeld(tr,rl)
  131. rlw.C0 = cn(1.5,-5,0)
  132. rlw.C1 = cn(0,1,0)
  133. local hw = xWeld(tr,hd)
  134. hw.C1 = cn(0,-4.5,0)
  135. ras = raw.C1
  136. las = law.C1
  137. lls = llw.C1
  138. rls = rlw.C1
  139. ts = tw.C1
  140. hs = hw.C1
  141. -----
  142. for _,Part in pairs(Char:GetChildren()) do
  143.     if Part:IsA('BasePart') then
  144.         Part.CustomPhysicalProperties = PhysicalProperties.new(0, .3, .5)
  145.     end
  146. end
  147. --------------------------------------------------------
  148. --------------------------------------------------------
  149. -----------------------CONSTANTS------------------------
  150. --------------------------------------------------------
  151. --------------------------------------------------------
  152. REGEN_SPEED = 0
  153. WEAPON_NAME = 'Grandark'
  154. ----------------------------------------------------
  155. ----------------------------------------------------
  156. -----------------------MODEL------------------------
  157. ----------------------------------------------------
  158. ----------------------------------------------------
  159. local Handle
  160. local Blade
  161. local haw
  162. Pack = Instance.new('Model', Char)
  163. Pack.Name = WEAPON_NAME
  164. do
  165.     Handle = xPart{Pack,0.54285717, 4.96428585, 1.02857149} Handle.BrickColor = BrickColor.new('Black') Handle.Material = Enum.Material.Plastic; haw = xWeld(ra,Handle); LastMade.C1 = ca(90,0,180)*cn(0,3,0) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  166.     xNew{'BlockMesh',Handle,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  167.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -3.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  168.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  169.     local Part = xPart{Pack,0.521428645, 0.1, 4.92857265} Part.BrickColor = BrickColor.new('Really black') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -2.59285641, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170.     xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  171.     local Part = xPart{Pack,0.864285767, 0.221428677, 5.65714407} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -2.57142735, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  172.     xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  173.     local Part = xPart{Pack,0.54285717, 1.01428556, 1.02857149} Part.BrickColor = BrickColor.new('Really red') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -1.4428587, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  174.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.FileMesh, MeshId = 'http://www.roblox.com/Asset/?id=9756362', TextureId = '', Scale = v3(0.714285731, 1.42857146, 0.714285731), Offset = v3(0, 0, 0)}
  175.     local Part = xPart{Pack,0.54285717, 0.657142878, 1.02857149} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  176.     xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  177.     local Part = xPart{Pack,0.54285717, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 1.02857018, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  178.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  179.     local Part = xPart{Pack,0.54285717, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 1.02857208, -1, 0, 8.74227695e-008, 0, 1, 0, -8.74227695e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  180.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  181.     local Part = xPart{Pack,0.54285717, 1.11428583, 0.371428579} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.23928523, 0.699998856, 1, -8.74227695e-008, 8.74227837e-008, 8.74227766e-008, 1, -8.74227695e-008, -8.74227766e-008, 8.74227766e-008, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  182.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  183.     local Part = xPart{Pack,0.54285717, 1.11428583, 0.371428579} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.23928547, 0.700000763, -1, 8.74227695e-008, 8.74227837e-008, 8.74227766e-008, 1, 8.74227695e-008, -8.74227695e-008, 8.74227766e-008, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  184.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  185.     local Part = xPart{Pack,0.342857182, 0.585714281, 0.514285684} Part.BrickColor = BrickColor.new('Really red') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(2.91071415, 0, 0.257143021, -5.96046377e-008, 1, 1.49781926e-007, -1, -5.96046306e-008, -3.92309403e-008, -3.92309296e-008, -1.49781926e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  186.     xNew{'CylinderMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  187.     local Part = xPart{Pack,0.342857182, 0.585714281, 0.514285684} Part.BrickColor = BrickColor.new('Really red') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(2.91071415, 0, -0.257143021, -5.96046377e-008, 1, 1.49781926e-007, -1, -5.96046306e-008, -3.92309403e-008, -3.92309296e-008, -1.49781926e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  188.     xNew{'CylinderMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  189.     local Part = xPart{Pack,0.564285755, 0.257142901, 0.514285743} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.35357094, 0.257143021, -1, 8.74227695e-008, 8.74227837e-008, 8.74227766e-008, 1, 8.74227695e-008, -8.74227695e-008, 8.74227766e-008, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  190.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  191.     local Part = xPart{Pack,0.564285755, 0.257142901, 0.514285743} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.35357118, 0.257141113, 1, 3.51124925e-008, -2.6822093e-007, -3.51123965e-008, 1, 3.53819075e-007, 2.6822093e-007, -3.53819075e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  192.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  193.     local Part = xPart{Pack,0.564285755, 1.73571444, 0.200000003} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 1.50000012, 0.0714263916, 1, 3.51124925e-008, -2.6822093e-007, -3.51123965e-008, 1, 3.53819075e-007, 2.6822093e-007, -3.53819075e-007, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  194.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 0.714285672), Offset = v3(0, 0, 0)}
  195.     local Part = xPart{Pack,0.564285755, 1.73571444, 0.200000003} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 1.49999988, 0.0714321136, -1, 6.27284535e-008, 3.87430191e-007, 6.27285388e-008, 1, 2.26830267e-007, -3.87430163e-007, 2.26830295e-007, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  196.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 0.714285672), Offset = v3(0, 0, 0)}
  197.     local Part = xPart{Pack,0.54285717, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.81071377, 1.02857208, -1, 0, 8.74227695e-008, 0, 1, 0, -8.74227695e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  198.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  199.     local Part = xPart{Pack,0.864285767, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.48571396, -1.96071529, 1, -4.47536763e-009, -5.65906291e-008, -5.65906291e-008, -1.58996982e-023, -1, 4.47536763e-009, 1, -2.53263884e-016) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  200.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  201.     local Part = xPart{Pack,0.864285767, 0.657142937, 1.02857149} Part.BrickColor = BrickColor.new('Dark orange') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 2.48571205, -1.96071529, -1, -1.90377425e-009, 5.96046377e-008, 5.96046377e-008, 6.53269716e-010, 1, -1.90377425e-009, 1, -6.53269605e-010) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  202.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  203.     Blade = xPart{Pack,0.285714328, 12.2071428, 2.38571548} Blade.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Blade) LastMade.C1 = CFrame.new(0, -8.56428432, 0.649999619, 1, 0, 0, 0, 1, 0, 0, 0, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  204.     xNew{'BlockMesh',Blade,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  205.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -4.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  206.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  207.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -5.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  208.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  209.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -6.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  210.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  211.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -7.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  212.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  213.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -11.221427, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  214.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  215.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -8.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  216.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  217.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -9.22142696, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  219.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -10.221427, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  220.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  221.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -12.221427, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  222.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  223.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.8714298} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, -13.2214279, 1.4642868, -1, 0, -5.96046377e-008, 0, 1, 0, 5.96046377e-008, 0, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  224.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  225.     local Part = xPart{Pack,0.285714328, 0.949999154, 2.01428699} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 14.1928558, 1.5357151, 1, 1.06776947e-016, 2.85758261e-009, 1.39271539e-016, -1, -1.13713643e-008, 2.85758261e-009, 1.13713643e-008, -1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  227.     local Part = xPart{Pack,0.285714328, 0.949999154, 1.15714407} Part.BrickColor = BrickColor.new('Smoky grey') Handle.Material = Enum.Material.Plastic xWeld(Handle,Part) LastMade.C1 = CFrame.new(0, 14.1928558, 2.3214283, -1, 2.33221598e-009, 0, -2.33221553e-009, -1, -4.92687668e-010, 0, -4.92687668e-010, 1) LastMade.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  228.     xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  229. end
  230. has = haw.C1
  231.  
  232. for _,v in pairs(Pack:GetChildren()) do
  233.     v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  234. end
  235. --------------------------------------------------------
  236. --------------------------------------------------------
  237. -----------------------VARIABLES------------------------
  238. --------------------------------------------------------
  239. --------------------------------------------------------
  240. State = 'Idle'
  241. FallTime = 0
  242. Walk = 0
  243. WalkReverse = false
  244. StompDB = false
  245. JumpDB = false
  246. --
  247. function NewHitbox(Radius,Position)
  248.     local Returning = {}
  249.     for _,v in pairs(workspace:GetChildren()) do
  250.         if v~=Char and v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') then
  251.             local Mag = (v.Torso.Position - Position).magnitude
  252.             if Mag < Radius then
  253.                 table.insert(Returning,v)
  254.             end
  255.         end
  256.     end
  257.     return Returning
  258. end
  259. --
  260. function UpdateState()
  261.     if (rp.Velocity*v3(1, 0, 1)).magnitude > 5 then
  262.         if State == 'Idle' then State = 'Walking' end
  263.     else
  264.         if State == 'Walking' then State = 'Idle'; end
  265.     end
  266.     if WalkReverse then
  267.         Walk = Walk - .5
  268.     else
  269.         Walk = Walk + .5
  270.     end
  271.     if Walk >= 10 then
  272.         WalkReverse = true
  273.     elseif Walk <= -10 then
  274.         WalkReverse = false
  275.     end
  276. end
  277. --
  278. function JumpExplode()
  279.     local Hit = NewHitbox(35,Char.Torso.Position)
  280.     for _,v in pairs(Hit) do
  281.         v.Humanoid.Health = v.Humanoid.Health - 15
  282.         if sit then
  283.             v.Humanoid.Sit = true
  284.         end
  285.     end
  286.     xSound('2233908',tr,1)
  287.     coroutine.wrap(function()
  288.         local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('Earth green')}
  289.         local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  290.         Explosion.CFrame = Char.Torso.CFrame * cn(0,-20,0)
  291.         Mesh.Scale = v3(1,7,1)
  292.         repeat
  293.             Mesh.Scale = Mesh.Scale + v3(1,0,1)
  294.             Explosion.Transparency = Explosion.Transparency + .025
  295.             wait()
  296.         until Explosion.Transparency >= 1
  297.         Explosion:Destroy()
  298.     end)()
  299. end
  300. --
  301. function Stomp()
  302.     if State == 'Walking' or State == 'Idle' then
  303.         if StompDB == false then
  304.             StompDB = true
  305.             State = 'Attacking'
  306.             Human.WalkSpeed = 0
  307.             --
  308.             xSound('138186576',Char.Head,1)
  309.             for _=0,1,.05 do
  310.                 xlerp(tw,ts,.2)
  311.                 xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.2)
  312.                 xlerp(rlw,rls*ca(20,0,0),.2)
  313.                 xlerp(llw,lls*cn(0,-2,1.25),.2)
  314.                 xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.2)
  315.                 xlerp(law,las*ca(20,0,0),.2)
  316.                 wait()
  317.             end
  318.             coroutine.wrap(function()
  319.                 local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('Earth green')}
  320.                 local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=3270017'}
  321.                 Explosion.CFrame = rp.CFrame * cn(0,-7,0)*ca(90,0,0)
  322.                 Mesh.Scale = v3(5,5,10)
  323.                 repeat
  324.                     Mesh.Scale = Mesh.Scale + v3(2,2,.5)
  325.                     Explosion.Transparency = Explosion.Transparency + .01
  326.                     wait()
  327.                 until Explosion.Transparency >= 1
  328.                 Explosion:Destroy()
  329.             end)()
  330.             coroutine.wrap(function()
  331.                 local Already = {}
  332.                 for i=1,50,2 do
  333.                     wait(.1)
  334.                     local Hit = NewHitbox(i*2,Char.Torso.Position)
  335.                     for _,v in pairs(Hit) do
  336.                         if not Already[v] then
  337.                             v.Humanoid.Health = v.Humanoid.Health - 30
  338.                             if sit then
  339.                                 v.Humanoid.Sit = true
  340.                             end
  341.                             Already[v] = true
  342.                         end
  343.                     end
  344.                 end
  345.             end)()
  346.             --attack
  347.             for _=0,1,.05 do
  348.                 xlerp(tw,ts,.3)
  349.                 xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.3)
  350.                 xlerp(rlw,rls*ca(20,0,0),.3)
  351.                 xlerp(llw,lls*cn(0,0,1.25),.3)
  352.                 xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.3)
  353.                 xlerp(law,las*ca(20,0,0),.3)
  354.                 wait()
  355.             end
  356.             State = 'Idle'
  357.             Human.WalkSpeed = 7
  358.             coroutine.wrap(function()
  359.                 wait(15)
  360.                 StompDB = false
  361.             end)()
  362.         end
  363.     end
  364. end
  365. --
  366. function Charge()
  367.     if State == 'Walking' or State == 'Idle' then
  368.         State = 'Charge'
  369.         for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do
  370.             controller.Parent = workspace
  371.         end
  372.         local function Exp()
  373.             local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('White')}
  374.             local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  375.             Explosion.CFrame = rp.CFrame * cn(0,0,-15)*ca(70,0,0)
  376.             Mesh.Scale = v3(1,6,1)
  377.             repeat
  378.                 Mesh.Scale = Mesh.Scale + v3(1,.5,1)
  379.                 Explosion.Transparency = Explosion.Transparency + .05
  380.                 wait()
  381.             until Explosion.Transparency >= 1
  382.             Explosion:Destroy()
  383.         end
  384.         coroutine.wrap(function()
  385.             wait(.25)
  386.             Human.WalkSpeed = 60
  387.             for _=1, 10 do
  388.                 coroutine.wrap(Exp)()
  389.                 local Hit = NewHitbox(10,Char.Torso.Position)
  390.                 for _,v in pairs(Hit) do
  391.                     v.Humanoid.Health = v.Humanoid.Health - 20
  392.                 end
  393.                 wait(.15)
  394.                 xSound('10730819',tr,.8)
  395.             end
  396.             Human.WalkSpeed = 7
  397.             State = 'Idle'
  398.         end)()
  399.         --
  400.         for _=0,1,.05 do
  401.             xlerp(tw,ts*ca(0,-90,0),.4)
  402.             xlerp(hw,hs*ca(0,90,0),.4)
  403.             xlerp(raw,ras*ca(-90,0,-90)*cn(0,-1,0),.4)
  404.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  405.             xlerp(rlw,rls*ca(0,0,10)*cn(1,0,0),.4)
  406.             xlerp(llw,lls*ca(0,0,10)*cn(1,0,0),.4)
  407.             wait()
  408.         end
  409.         --
  410.     end
  411. end
  412. function Combo()
  413.     if State == 'Idle' or State == 'Walking' then
  414.         State = 'Attacking'
  415.         Human.WalkSpeed = 3
  416.         for _=0,1,.2 do
  417.             xlerp(tw,ts*ca(0,20,0),.4)
  418.             xlerp(hw,hs*ca(0,30,0),.4)
  419.             xlerp(raw,ras*ca(0,180,-90)*cn(-1,-1,0),.4)
  420.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  421.             xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  422.             xlerp(llw,lls*cn(0,0,1.25),.4)
  423.             wait()
  424.         end
  425.         local Already = {}
  426.         xSound('231731980',tr,1.3)
  427.         for _=0,1,.1 do
  428.             xlerp(tw,ts*ca(0,-30,0),.4)
  429.             xlerp(hw,hs*ca(0,-50,0),.4)
  430.             xlerp(raw,ras*ca(160,180,-130)*cn(2,-1,1),.4)
  431.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  432.             xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  433.             xlerp(llw,lls*cn(0,0,1.25),.4)
  434.             xlerp(haw,has*ca(40,0,0),.4)
  435.             wait()
  436.             local Hit = NewHitbox(15,(Blade.CFrame).p)
  437.             for _,v in pairs(Hit) do
  438.                 if not Already[v] then
  439.                     v.Humanoid.Health = v.Humanoid.Health - 10
  440.                     Already[v] = true
  441.                 end
  442.             end
  443.         end
  444.         ----Combo2
  445.         for _=0,1,.2 do
  446.             xlerp(tw,ts*ca(0,-35,0),.4)
  447.             xlerp(haw,has,.4)
  448.             xlerp(hw,hs*ca(0,-30,0),.4)
  449.             xlerp(raw,ras*ca(-120,0,-70)*cn(1,-1,0),.4)
  450.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  451.             xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  452.             xlerp(llw,lls*cn(0,0,1.25),.4)
  453.             wait()
  454.         end
  455.         xSound('231731980',tr,1)
  456.         local Already = {}
  457.         for _=0,1,.1 do
  458.             xlerp(tw,ts*ca(0,20,0),.4)
  459.             xlerp(hw,hs*ca(0,30,0),.4)
  460.             xlerp(raw,ras*ca(30,0,-90)*cn(0,-1,0),.4)
  461.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  462.             xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  463.             xlerp(llw,lls*cn(0,0,1.25),.4)
  464.             wait()
  465.             local Hit = NewHitbox(15,(Blade.CFrame).p)
  466.             for _,v in pairs(Hit) do
  467.                 if not Already[v] then
  468.                     v.Humanoid.Health = v.Humanoid.Health - 10
  469.                     Already[v] = true
  470.                 end
  471.             end
  472.         end
  473.         --Combo 3
  474.         for _=0,1,.1 do
  475.             xlerp(tw,ts,.3)
  476.             xlerp(hw,hs,.3)
  477.             xlerp(haw,has,.3)
  478.             xlerp(raw,ras*ca(-140,0,0)*cn(0,-1.5,0),.3)
  479.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.3)
  480.             xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.3)
  481.             xlerp(llw,lls*cn(0,0,1.25),.4)
  482.             wait()
  483.         end
  484.         xSound('231731980',tr,.8)
  485.         local Already = {}
  486.         for _=0,1,.1 do
  487.             xlerp(tw,ts*ca(15,0,0)*cn(0,1.5,0),.4)
  488.             xlerp(hw,hs,.4)
  489.             xlerp(raw,ras*ca(-20,0,0)*cn(0,0,0),.4)
  490.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  491.             xlerp(haw,has*ca(20,0,0),.4)
  492.             wait()
  493.             local Hit = NewHitbox(10,(Blade.CFrame).p)
  494.             for _,v in pairs(Hit) do
  495.                 if not Already[v] then
  496.                     v.Humanoid.Health = v.Humanoid.Health - 20
  497.                     Already[v] = true
  498.                 end
  499.             end
  500.         end
  501.         wait(.2)
  502.         State = 'Idle'
  503.         Human.WalkSpeed = 7
  504.     end
  505. end
  506. --
  507. function SwordSlam()
  508.     if State == 'Walking' or State == 'Idle' then
  509.         State = 'Attacking'
  510.         Human.WalkSpeed = 0
  511.         for _=0,1,.05 do
  512.             xlerp(tw,ts,.2)
  513.             xlerp(hw,hs,.2)
  514.             xlerp(raw,ras*ca(-140,0,0)*cn(0,-1.5,0),.2)
  515.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.2)
  516.             xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.2)
  517.             xlerp(llw,lls*cn(0,0,1.25),.2)
  518.             wait()
  519.         end
  520.         coroutine.wrap(function()
  521.         wait()
  522.         xSound('10730819',tr,.5)
  523.         local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('dsasda')}
  524.         local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  525.         Explosion.CFrame = rp.CFrame * cn(0,-5,-20)
  526.         Mesh.Scale = v3(1,5,1)
  527.         repeat
  528.             Mesh.Scale = Mesh.Scale + v3(1,1,1)
  529.             Explosion.Transparency = Explosion.Transparency + .025
  530.             wait()
  531.         until Explosion.Transparency >= 1
  532.         Explosion:Destroy()
  533.         end)()
  534.         for _=0,1,.15 do
  535.             xlerp(tw,ts*ca(15,0,0)*cn(0,1.5,0),.4)
  536.             xlerp(hw,hs,.4)
  537.             xlerp(raw,ras*ca(-20,0,0)*cn(0,0,0),.4)
  538.             xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  539.             xlerp(haw,has*ca(20,0,0),.4)
  540.             wait()
  541.         end
  542.         local Hit = NewHitbox(40,(rp.CFrame * cn(0,-5,-20)).p)
  543.         for _,v in pairs(Hit) do
  544.         v.Humanoid.Health = v.Humanoid.Health - 40
  545.         if sit then
  546.             v.Humanoid.Sit = true
  547.         end
  548.         end
  549.         wait(.5)
  550.         State = 'Idle'
  551.         Human.WalkSpeed = 7
  552.     end
  553. end
  554. --
  555. Mouse.KeyDown:connect(function(key)
  556.     if key == ' ' then
  557.         if State == 'Walking' or State == 'Idle' then
  558.             if JumpDB == false then
  559.                 JumpDB = true
  560.                 State = 'Jumping'
  561.                 Human.Jump = true
  562.                 Human.WalkSpeed = 50
  563.                 wait(.5)
  564.                 State = 'Falling'
  565.                 coroutine.wrap(function()
  566.                     wait(5)
  567.                     JumpDB = false
  568.                 end)()
  569.             end
  570.         end
  571.     elseif key == 'z' then
  572.         Combo()
  573.     elseif key == 'x' then
  574.         Charge()
  575.     elseif key == 'c' then
  576.         SwordSlam()
  577.     elseif key == 'v' then
  578.         Stomp()
  579.     end
  580. end)
  581. --
  582. Human.Changed:connect(function()
  583.     if State ~= 'Jumping' then
  584.         Human.Jump = false
  585.     end
  586. end)
  587.  
  588. Human.FreeFalling:connect(function(a)
  589.     if a then
  590.         if State == 'Walking' or State == 'Idle' then
  591.             State = 'Falling'
  592.         end
  593.     elseif State == 'Jumping' or State == 'Falling' then
  594.         State = 'Idle'
  595.         if FallTime > 10 then
  596.             print('Boom!')
  597.             JumpExplode()
  598.         end
  599.         Human.WalkSpeed = 7
  600.         FallTime = 0
  601.     end
  602. end)
  603. --
  604. wait(1)
  605. game:GetService('RunService').RenderStepped:connect(function()
  606.     UpdateState()
  607.     if State == 'Jumping' or State == 'Falling' then
  608.         FallTime = FallTime + .1
  609.         xlerp(tw,ts,.3)
  610.         xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.2)
  611.         xlerp(raw,ras*ca(0,0,-90)*cn(-1,-1,0),.2)
  612.         xlerp(law,las*ca(0,0,90)*cn(1,-1,0),.2)
  613.         xlerp(rlw,rls*ca(20,0,0),.2)
  614.         xlerp(llw,lls*cn(0,-.5,1.25),.2)
  615.     elseif State == 'Idle' then
  616.         xlerp(tw,ts*ca(0,25,0),.1)
  617.         xlerp(hw,hs*ca(0,-25,0),.1)
  618.         xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.1)
  619.         xlerp(law,las*ca(20,0,0),.1)
  620.         xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.1)
  621.         xlerp(llw,lls*cn(0,0,1.25),.1)
  622.         xlerp(haw,has,.4)
  623.     elseif State == 'Walking' then
  624.         xlerp(tw,ts,.15)
  625.         xlerp(hw,hs,.15)
  626.         --xlerp(law,las*ca(30,0,0),.3)
  627.         --xlerp(raw,ras*ca(20,0,-40)*cn(-1,-.5,0),.15)
  628.         xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.1)
  629.         xlerp(law,las*ca(20,0,0),.1)
  630.         if WalkReverse then
  631.             xlerp(rlw,rls*ca(30,0,0)*cn(0,-1,-1.5),.05)
  632.             xlerp(llw,lls*ca(-30,0,0)*cn(0,-1,1.5),.05)
  633.         else
  634.             xlerp(rlw,rls*ca(-30,0,0)*cn(0,-1,1.5),.05)
  635.             xlerp(llw,lls*ca(30,0,0)*cn(0,-1,-1.5),.05)
  636.         end
  637.     end
  638. end)
  639. --
  640. Human.WalkSpeed = 7
  641. Human.JumpPower = 250
  642. Human.MaxHealth = 500
  643. Human.Health = 500
  644. print 'salty sieg loaded'
  645. end
  646. script.Parent.MouseButton1Down:connect(Click)
Advertisement
Add Comment
Please, Sign In to add comment