Advertisement
lafur

Untitled

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