SyntaxIsHere

Untitled

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