Advertisement
jhonny44

GIANT SANS

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