PedroxD3

Untitled

Sep 16th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.00 KB | None | 0 0
  1. repeat game:GetService('RunService').Stepped:wait() until game:GetService('Players').LocalPlayer.Character
  2. ----
  3. ----
  4. sit = true
  5. cn = CFrame.new
  6. v3 = Vector3.new
  7. c3 = Color3.new
  8. bn = BrickColor.new
  9. ca2 = CFrame.Angles
  10. ca = function(x,y,z) return ca2(math.rad(x),math.rad(y),math.rad(z)) end
  11. ud2 = UDim2.new
  12. ----
  13. ----
  14. local Player = game:GetService('Players').LocalPlayer
  15. local Char = Player.Character
  16. local Human = Char.Humanoid
  17. local Mouse = Player:GetMouse()
  18. ----
  19. ----
  20. Human.WalkSpeed = 0
  21. print ('Loading...')
  22. wait(.5)
  23. ----
  24. ----
  25. la = Char['Left Arm']
  26. ra = Char['Right Arm']
  27. ll = Char['Left Leg']
  28. rl = Char['Right Leg']
  29. tr = Char['Torso']
  30. hd = Char['Head']
  31. rp = Char['HumanoidRootPart']
  32. ----
  33. ----
  34. ram = tr['Right Shoulder']
  35. lam = tr['Left Shoulder']
  36. llm = tr['Left Hip']
  37. rlm = tr['Right Hip']
  38. hm = tr['Neck']
  39. rj = rp['RootJoint']
  40. ----
  41. ----
  42. InputService = game:GetService('UserInputService')
  43. RunService = game:GetService('RunService')
  44. ----
  45. ----
  46. LastMade = nil
  47.  
  48. xNew=function(Table)
  49. local Obj=Instance.new(Table[1])
  50. for Ind,Val in pairs(Table) do
  51. if Ind~=1 and Ind~=2 then
  52. Obj[Ind] = Val
  53. end
  54. end
  55. Obj.Parent=Table[2]
  56. LastMade= Obj
  57. return Obj
  58. end
  59.  
  60. xPart=function(tab)
  61. local v=Instance.new(tab.type or "Part")
  62. if tab.type~="CornerWedgePart" then v.formFactor="Custom" end
  63. v.CanCollide=false
  64. v.TopSurface=10 v.BottomSurface=10 v.RightSurface=10 v.LeftSurface=10 v.FrontSurface=10 v.BackSurface=10
  65. v.Size=v3(tab[2],tab[3],tab[4])
  66. if tab.co then v.BrickColor=bn(tab.co) end
  67. if tab.tr then v.Transparency=tab.tr end
  68. if tab.rf then v.Reflectance=tab.rf end
  69. if tab.cf then v.CFrame=tab.cf end
  70. if tab.an then v.Anchored=tab.an end
  71. if tab.mt then v.Material=tab.mt end
  72. if tab.ca then v.CanCollide=tab.ca end
  73. v.Parent=tab[1]
  74. LastMade= v
  75. return v
  76. end
  77.  
  78. xWeld = function(a,b,between,type)
  79. local Weld = xNew{type or 'Weld',a,Part0 = a,Part1 = b, C0 = cn()}
  80. if between then
  81. Weld.C1 = b.CFrame:inverse() * a.CFrame
  82. else
  83. Weld.C1 = cn()
  84. end
  85. return Weld
  86. end
  87.  
  88. function xSound(id,parent,pitch)
  89. local s = xNew{'Sound', PlayOnRemove = true, SoundId = 'http://roblox.com/asset/?id='..id,Pitch = pitch}
  90. s.Parent = parent
  91. s:Destroy()
  92. end
  93.  
  94. ----
  95. ----
  96. 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
  97. function xlerp(weld,to,tim)
  98. if weld.C1 ~= to then
  99. --weld.C1 = clerp(weld.C1,to,tim)
  100. weld.C1 = weld.C1:lerp(to,tim)
  101. end
  102. end
  103. function lerp(a,b,c)return a+(b-a)*c end
  104. ----
  105. ----
  106. Char.Health:Destroy()
  107. wait(.25)
  108. ----
  109. ra.Size = ra.Size * 3
  110. la.Size = la.Size * 3
  111. ll.Size = ll.Size * 3
  112. rl.Size = rl.Size * 3
  113. tr.Size = tr.Size * 3
  114. hd.Size = hd.Size * 3
  115. rp.Size = rp.Size * 3
  116. --
  117. local tw = xWeld(rp,tr)
  118. tw.C1 = cn(0,0,0)
  119. local law = xWeld(tr,la)
  120. law.C0 = cn(-4.5,.5,0)
  121. law.C1 = cn(0,.5,0)
  122. local raw = xWeld(tr,ra)
  123. raw.C0 = cn(4.5,.5,0)
  124. raw.C1 = cn(0,.5,0)
  125. local llw = xWeld(tr,ll)
  126. llw.C0 = cn(-1.5,-5,0)
  127. llw.C1 = cn(0,1,0)
  128. local rlw = xWeld(tr,rl)
  129. rlw.C0 = cn(1.5,-5,0)
  130. rlw.C1 = cn(0,1,0)
  131. local hw = xWeld(tr,hd)
  132. hw.C1 = cn(0,-4.5,0)
  133. ras = raw.C1
  134. las = law.C1
  135. lls = llw.C1
  136. rls = rlw.C1
  137. ts = tw.C1
  138. hs = hw.C1
  139. -----
  140. for _,Part in pairs(Char:GetChildren()) do
  141. if Part:IsA('BasePart') then
  142. Part.CustomPhysicalProperties = PhysicalProperties.new(0, .3, .5)
  143. end
  144. end
  145. --------------------------------------------------------
  146. --------------------------------------------------------
  147. -----------------------CONSTANTS------------------------
  148. --------------------------------------------------------
  149. --------------------------------------------------------
  150. REGEN_SPEED = 0
  151. WEAPON_NAME = 'Grandark'
  152. ----------------------------------------------------
  153. ----------------------------------------------------
  154. -----------------------MODEL------------------------
  155. ----------------------------------------------------
  156. ----------------------------------------------------
  157. local Handle
  158. local Blade
  159. local haw
  160. Pack = Instance.new('Model', Char)
  161. Pack.Name = WEAPON_NAME
  162. do
  163. 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)
  164. xNew{'BlockMesh',Handle,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  165. 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)
  166. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  167. 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)
  168. xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  169. 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)
  170. xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  171. 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)
  172. 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)}
  173. 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)
  174. xNew{'BlockMesh',Part,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  175. 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)
  176. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', 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.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)
  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, 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)
  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.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)
  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.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)
  184. xNew{'CylinderMesh',Part,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.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)
  188. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', 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.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)
  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, 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)
  192. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 0.714285672), 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.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)
  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.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)
  196. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  197. 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)
  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.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)
  200. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  201. 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)
  202. xNew{'BlockMesh',Blade,Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  203. 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)
  204. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', 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, -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)
  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, -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)
  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, -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)
  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, -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)
  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, -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)
  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, -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)
  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, -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)
  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, -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)
  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, -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)
  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, 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)
  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, 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)
  226. xNew{'SpecialMesh',Part,MeshType = Enum.MeshType.Wedge, MeshId = '', TextureId = '', Scale = v3(1, 1, 1), Offset = v3(0, 0, 0)}
  227. end
  228. has = haw.C1
  229.  
  230. for _,v in pairs(Pack:GetChildren()) do
  231. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  232. end
  233. --------------------------------------------------------
  234. --------------------------------------------------------
  235. -----------------------VARIABLES------------------------
  236. --------------------------------------------------------
  237. --------------------------------------------------------
  238. State = 'Idle'
  239. FallTime = 0
  240. Walk = 0
  241. WalkReverse = false
  242. StompDB = false
  243. JumpDB = false
  244. --
  245. function NewHitbox(Radius,Position)
  246. local Returning = {}
  247. for _,v in pairs(workspace:GetChildren()) do
  248. if v~=Char and v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') then
  249. local Mag = (v.Torso.Position - Position).magnitude
  250. if Mag < Radius then
  251. table.insert(Returning,v)
  252. end
  253. end
  254. end
  255. return Returning
  256. end
  257. --
  258. function UpdateState()
  259. if (rp.Velocity*v3(1, 0, 1)).magnitude > 5 then
  260. if State == 'Idle' then State = 'Walking' end
  261. else
  262. if State == 'Walking' then State = 'Idle'; end
  263. end
  264. if WalkReverse then
  265. Walk = Walk - .5
  266. else
  267. Walk = Walk + .5
  268. end
  269. if Walk >= 10 then
  270. WalkReverse = true
  271. elseif Walk <= -10 then
  272. WalkReverse = false
  273. end
  274. end
  275. --
  276. function JumpExplode()
  277. local Hit = NewHitbox(35,Char.Torso.Position)
  278. for _,v in pairs(Hit) do
  279. v.Humanoid.Health = v.Humanoid.Health - 15
  280. if sit then
  281. v.Humanoid.Sit = true
  282. end
  283. end
  284. xSound('2233908',tr,1)
  285. coroutine.wrap(function()
  286. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('Earth green')}
  287. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  288. Explosion.CFrame = Char.Torso.CFrame * cn(0,-20,0)
  289. Mesh.Scale = v3(1,7,1)
  290. repeat
  291. Mesh.Scale = Mesh.Scale + v3(1,0,1)
  292. Explosion.Transparency = Explosion.Transparency + .025
  293. wait()
  294. until Explosion.Transparency >= 1
  295. Explosion:Destroy()
  296. end)()
  297. end
  298. --
  299. function Stomp()
  300. if State == 'Walking' or State == 'Idle' then
  301. if StompDB == false then
  302. StompDB = true
  303. State = 'Attacking'
  304. Human.WalkSpeed = 0
  305. --
  306. xSound('138186576',Char.Head,1)
  307. for _=0,1,.05 do
  308. xlerp(tw,ts,.2)
  309. xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.2)
  310. xlerp(rlw,rls*ca(20,0,0),.2)
  311. xlerp(llw,lls*cn(0,-2,1.25),.2)
  312. xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.2)
  313. xlerp(law,las*ca(20,0,0),.2)
  314. wait()
  315. end
  316. coroutine.wrap(function()
  317. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('Earth green')}
  318. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=3270017'}
  319. Explosion.CFrame = rp.CFrame * cn(0,-7,0)*ca(90,0,0)
  320. Mesh.Scale = v3(5,5,10)
  321. repeat
  322. Mesh.Scale = Mesh.Scale + v3(2,2,.5)
  323. Explosion.Transparency = Explosion.Transparency + .01
  324. wait()
  325. until Explosion.Transparency >= 1
  326. Explosion:Destroy()
  327. end)()
  328. coroutine.wrap(function()
  329. local Already = {}
  330. for i=1,50,2 do
  331. wait(.1)
  332. local Hit = NewHitbox(i*2,Char.Torso.Position)
  333. for _,v in pairs(Hit) do
  334. if not Already[v] then
  335. v.Humanoid.Health = v.Humanoid.Health - 30
  336. if sit then
  337. v.Humanoid.Sit = true
  338. end
  339. Already[v] = true
  340. end
  341. end
  342. end
  343. end)()
  344. --attack
  345. for _=0,1,.05 do
  346. xlerp(tw,ts,.3)
  347. xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.3)
  348. xlerp(rlw,rls*ca(20,0,0),.3)
  349. xlerp(llw,lls*cn(0,0,1.25),.3)
  350. xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.3)
  351. xlerp(law,las*ca(20,0,0),.3)
  352. wait()
  353. end
  354. State = 'Idle'
  355. Human.WalkSpeed = 7
  356. coroutine.wrap(function()
  357. wait(15)
  358. StompDB = false
  359. end)()
  360. end
  361. end
  362. end
  363. --
  364. function Charge()
  365. if State == 'Walking' or State == 'Idle' then
  366. State = 'Charge'
  367. for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do
  368. controller.Parent = workspace
  369. end
  370. local function Exp()
  371. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('White')}
  372. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  373. Explosion.CFrame = rp.CFrame * cn(0,0,-15)*ca(70,0,0)
  374. Mesh.Scale = v3(1,6,1)
  375. repeat
  376. Mesh.Scale = Mesh.Scale + v3(1,.5,1)
  377. Explosion.Transparency = Explosion.Transparency + .05
  378. wait()
  379. until Explosion.Transparency >= 1
  380. Explosion:Destroy()
  381. end
  382. coroutine.wrap(function()
  383. wait(.25)
  384. Human.WalkSpeed = 60
  385. for _=1, 10 do
  386. coroutine.wrap(Exp)()
  387. local Hit = NewHitbox(10,Char.Torso.Position)
  388. for _,v in pairs(Hit) do
  389. v.Humanoid.Health = v.Humanoid.Health - 20
  390. end
  391. wait(.15)
  392. xSound('10730819',tr,.8)
  393. end
  394. Human.WalkSpeed = 7
  395. State = 'Idle'
  396. end)()
  397. --
  398. for _=0,1,.05 do
  399. xlerp(tw,ts*ca(0,-90,0),.4)
  400. xlerp(hw,hs*ca(0,90,0),.4)
  401. xlerp(raw,ras*ca(-90,0,-90)*cn(0,-1,0),.4)
  402. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  403. xlerp(rlw,rls*ca(0,0,10)*cn(1,0,0),.4)
  404. xlerp(llw,lls*ca(0,0,10)*cn(1,0,0),.4)
  405. wait()
  406. end
  407. --
  408. end
  409. end
  410. function Combo()
  411. if State == 'Idle' or State == 'Walking' then
  412. State = 'Attacking'
  413. Human.WalkSpeed = 3
  414. for _=0,1,.2 do
  415. xlerp(tw,ts*ca(0,20,0),.4)
  416. xlerp(hw,hs*ca(0,30,0),.4)
  417. xlerp(raw,ras*ca(0,180,-90)*cn(-1,-1,0),.4)
  418. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  419. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  420. xlerp(llw,lls*cn(0,0,1.25),.4)
  421. wait()
  422. end
  423. local Already = {}
  424. xSound('231731980',tr,1.3)
  425. for _=0,1,.1 do
  426. xlerp(tw,ts*ca(0,-30,0),.4)
  427. xlerp(hw,hs*ca(0,-50,0),.4)
  428. xlerp(raw,ras*ca(160,180,-130)*cn(2,-1,1),.4)
  429. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  430. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  431. xlerp(llw,lls*cn(0,0,1.25),.4)
  432. xlerp(haw,has*ca(40,0,0),.4)
  433. wait()
  434. local Hit = NewHitbox(15,(Blade.CFrame).p)
  435. for _,v in pairs(Hit) do
  436. if not Already[v] then
  437. v.Humanoid.Health = v.Humanoid.Health - 10
  438. Already[v] = true
  439. end
  440. end
  441. end
  442. ----Combo2
  443. for _=0,1,.2 do
  444. xlerp(tw,ts*ca(0,-35,0),.4)
  445. xlerp(haw,has,.4)
  446. xlerp(hw,hs*ca(0,-30,0),.4)
  447. xlerp(raw,ras*ca(-120,0,-70)*cn(1,-1,0),.4)
  448. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  449. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  450. xlerp(llw,lls*cn(0,0,1.25),.4)
  451. wait()
  452. end
  453. xSound('231731980',tr,1)
  454. local Already = {}
  455. for _=0,1,.1 do
  456. xlerp(tw,ts*ca(0,20,0),.4)
  457. xlerp(hw,hs*ca(0,30,0),.4)
  458. xlerp(raw,ras*ca(30,0,-90)*cn(0,-1,0),.4)
  459. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  460. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.4)
  461. xlerp(llw,lls*cn(0,0,1.25),.4)
  462. wait()
  463. local Hit = NewHitbox(15,(Blade.CFrame).p)
  464. for _,v in pairs(Hit) do
  465. if not Already[v] then
  466. v.Humanoid.Health = v.Humanoid.Health - 10
  467. Already[v] = true
  468. end
  469. end
  470. end
  471. --Combo 3
  472. for _=0,1,.1 do
  473. xlerp(tw,ts,.3)
  474. xlerp(hw,hs,.3)
  475. xlerp(haw,has,.3)
  476. xlerp(raw,ras*ca(-140,0,0)*cn(0,-1.5,0),.3)
  477. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.3)
  478. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.3)
  479. xlerp(llw,lls*cn(0,0,1.25),.4)
  480. wait()
  481. end
  482. xSound('231731980',tr,.8)
  483. local Already = {}
  484. for _=0,1,.1 do
  485. xlerp(tw,ts*ca(15,0,0)*cn(0,1.5,0),.4)
  486. xlerp(hw,hs,.4)
  487. xlerp(raw,ras*ca(-20,0,0)*cn(0,0,0),.4)
  488. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  489. xlerp(haw,has*ca(20,0,0),.4)
  490. wait()
  491. local Hit = NewHitbox(10,(Blade.CFrame).p)
  492. for _,v in pairs(Hit) do
  493. if not Already[v] then
  494. v.Humanoid.Health = v.Humanoid.Health - 20
  495. Already[v] = true
  496. end
  497. end
  498. end
  499. wait(.2)
  500. State = 'Idle'
  501. Human.WalkSpeed = 7
  502. end
  503. end
  504. --
  505. function SwordSlam()
  506. if State == 'Walking' or State == 'Idle' then
  507. State = 'Attacking'
  508. Human.WalkSpeed = 0
  509. for _=0,1,.05 do
  510. xlerp(tw,ts,.2)
  511. xlerp(hw,hs,.2)
  512. xlerp(raw,ras*ca(-140,0,0)*cn(0,-1.5,0),.2)
  513. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.2)
  514. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.2)
  515. xlerp(llw,lls*cn(0,0,1.25),.2)
  516. wait()
  517. end
  518. coroutine.wrap(function()
  519. wait()
  520. xSound('10730819',tr,.5)
  521. local Explosion = xNew{'Part',Char,Anchored = true,CanCollide = false,FormFactor = 'Custom',BrickColor = bn('dsasda')}
  522. local Mesh = xNew{'SpecialMesh', Explosion,MeshType = 'FileMesh', MeshId = 'http://www.roblox.com/asset/?id=20329976'}
  523. Explosion.CFrame = rp.CFrame * cn(0,-5,-20)
  524. Mesh.Scale = v3(1,5,1)
  525. repeat
  526. Mesh.Scale = Mesh.Scale + v3(1,1,1)
  527. Explosion.Transparency = Explosion.Transparency + .025
  528. wait()
  529. until Explosion.Transparency >= 1
  530. Explosion:Destroy()
  531. end)()
  532. for _=0,1,.15 do
  533. xlerp(tw,ts*ca(15,0,0)*cn(0,1.5,0),.4)
  534. xlerp(hw,hs,.4)
  535. xlerp(raw,ras*ca(-20,0,0)*cn(0,0,0),.4)
  536. xlerp(law,las*ca(0,0,40)*cn(1,-.5,0),.4)
  537. xlerp(haw,has*ca(20,0,0),.4)
  538. wait()
  539. end
  540. local Hit = NewHitbox(40,(rp.CFrame * cn(0,-5,-20)).p)
  541. for _,v in pairs(Hit) do
  542. v.Humanoid.Health = v.Humanoid.Health - 40
  543. if sit then
  544. v.Humanoid.Sit = true
  545. end
  546. end
  547. wait(.5)
  548. State = 'Idle'
  549. Human.WalkSpeed = 7
  550. end
  551. end
  552. --
  553. Mouse.KeyDown:connect(function(key)
  554. if key == ' ' then
  555. if State == 'Walking' or State == 'Idle' then
  556. if JumpDB == false then
  557. JumpDB = true
  558. State = 'Jumping'
  559. Human.Jump = true
  560. Human.WalkSpeed = 50
  561. wait(.5)
  562. State = 'Falling'
  563. coroutine.wrap(function()
  564. wait(5)
  565. JumpDB = false
  566. end)()
  567. end
  568. end
  569. elseif key == 'z' then
  570. Combo()
  571. elseif key == 'x' then
  572. Charge()
  573. elseif key == 'c' then
  574. SwordSlam()
  575. elseif key == 'v' then
  576. Stomp()
  577. end
  578. end)
  579. --
  580. Human.Changed:connect(function()
  581. if State ~= 'Jumping' then
  582. Human.Jump = false
  583. end
  584. end)
  585.  
  586. Human.FreeFalling:connect(function(a)
  587. if a then
  588. if State == 'Walking' or State == 'Idle' then
  589. State = 'Falling'
  590. end
  591. elseif State == 'Jumping' or State == 'Falling' then
  592. State = 'Idle'
  593. if FallTime > 10 then
  594. print('Boom!')
  595. JumpExplode()
  596. end
  597. Human.WalkSpeed = 7
  598. FallTime = 0
  599. end
  600. end)
  601. --
  602. wait(1)
  603. game:GetService('RunService').RenderStepped:connect(function()
  604. UpdateState()
  605. if State == 'Jumping' or State == 'Falling' then
  606. FallTime = FallTime + .1
  607. xlerp(tw,ts,.3)
  608. xlerp(hw,hs*ca(40,0,0)*cn(0,-1,-1.5),.2)
  609. xlerp(raw,ras*ca(0,0,-90)*cn(-1,-1,0),.2)
  610. xlerp(law,las*ca(0,0,90)*cn(1,-1,0),.2)
  611. xlerp(rlw,rls*ca(20,0,0),.2)
  612. xlerp(llw,lls*cn(0,-.5,1.25),.2)
  613. elseif State == 'Idle' then
  614. xlerp(tw,ts*ca(0,25,0),.1)
  615. xlerp(hw,hs*ca(0,-25,0),.1)
  616. xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.1)
  617. xlerp(law,las*ca(20,0,0),.1)
  618. xlerp(rlw,rls*ca(20,0,0)*cn(0,0,-1),.1)
  619. xlerp(llw,lls*cn(0,0,1.25),.1)
  620. xlerp(haw,has,.4)
  621. elseif State == 'Walking' then
  622. xlerp(tw,ts,.15)
  623. xlerp(hw,hs,.15)
  624. --xlerp(law,las*ca(30,0,0),.3)
  625. --xlerp(raw,ras*ca(20,0,-40)*cn(-1,-.5,0),.15)
  626. xlerp(raw,ras*ca(20,0,-20)*cn(-.5,-.5,0),.1)
  627. xlerp(law,las*ca(20,0,0),.1)
  628. if WalkReverse then
  629. xlerp(rlw,rls*ca(30,0,0)*cn(0,-1,-1.5),.05)
  630. xlerp(llw,lls*ca(-30,0,0)*cn(0,-1,1.5),.05)
  631. else
  632. xlerp(rlw,rls*ca(-30,0,0)*cn(0,-1,1.5),.05)
  633. xlerp(llw,lls*ca(30,0,0)*cn(0,-1,-1.5),.05)
  634. end
  635. end
  636. end)
  637. --
  638. Human.WalkSpeed = 7
  639. Human.JumpPower = 250
  640. Human.MaxHealth = 500
  641. Human.Health = 500
  642. print 'salty sieg loaded'
Add Comment
Please, Sign In to add comment