SHOW:
|
|
- or go back to the newest paste.
| 1 | --Ahuhuhuhu it's a good hammer amirite ahuahuahuahua | |
| 2 | --Credits to W8X for helping out with the magnitude damage function and stuff | |
| 3 | --Credits to MakerModelLua to fix a small problem ;D | |
| 4 | ||
| 5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 6 | print(" this script was converted by An ignorant / zach ")
| |
| 7 | warn(" credits goes to real creators ")
| |
| 8 | warn(" Credits to W8X ")
| |
| 9 | warn(" and Credits to MakerModelLua")
| |
| 10 | local Player,game,owner = owner,game | |
| 11 | local RealPlayer = Player | |
| 12 | do | |
| 13 | print("FE Compatibility code by Mokiros")
| |
| 14 | local rp = RealPlayer | |
| 15 | script.Parent = rp.Character | |
| 16 | ||
| 17 | --RemoteEvent for communicating | |
| 18 | local Event = Instance.new("RemoteEvent")
| |
| 19 | Event.Name = "UserInput_Event" | |
| 20 | ||
| 21 | --Fake event to make stuff like Mouse.KeyDown work | |
| 22 | local function fakeEvent() | |
| 23 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 24 | t.connect = t.Connect | |
| 25 | return t | |
| 26 | end | |
| 27 | ||
| 28 | --Creating fake input objects with fake variables | |
| 29 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 30 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 31 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 32 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 33 | end} | |
| 34 | --Merged 2 functions into one by checking amount of arguments | |
| 35 | CAS.UnbindAction = CAS.BindAction | |
| 36 | ||
| 37 | --This function will trigger the events that have been :Connect()'ed | |
| 38 | local function te(self,ev,...) | |
| 39 | local t = m[ev] | |
| 40 | if t and t._fakeEvent then | |
| 41 | for _,f in pairs(t.Functions) do | |
| 42 | f(...) | |
| 43 | end | |
| 44 | end | |
| 45 | end | |
| 46 | m.TrigEvent = te | |
| 47 | UIS.TrigEvent = te | |
| 48 | ||
| 49 | Event.OnServerEvent:Connect(function(plr,io) | |
| 50 | if plr~=rp then return end | |
| 51 | m.Target = io.Target | |
| 52 | m.Hit = io.Hit | |
| 53 | if not io.isMouse then | |
| 54 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 55 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 56 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 57 | end | |
| 58 | for _,t in pairs(CAS.Actions) do | |
| 59 | for _,k in pairs(t.Keys) do | |
| 60 | if k==io.KeyCode then | |
| 61 | t.Function(t.Name,io.UserInputState,io) | |
| 62 | end | |
| 63 | end | |
| 64 | end | |
| 65 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 66 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 67 | end | |
| 68 | end) | |
| 69 | Event.Parent = NLS([==[ | |
| 70 | local Player = game:GetService("Players").LocalPlayer
| |
| 71 | local Event = script:WaitForChild("UserInput_Event")
| |
| 72 | ||
| 73 | local Mouse = Player:GetMouse() | |
| 74 | local UIS = game:GetService("UserInputService")
| |
| 75 | local input = function(io,a) | |
| 76 | if a then return end | |
| 77 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 78 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 79 | end | |
| 80 | UIS.InputBegan:Connect(input) | |
| 81 | UIS.InputEnded:Connect(input) | |
| 82 | ||
| 83 | local h,t | |
| 84 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 85 | --If player is not moving their mouse, client won't fire events | |
| 86 | while wait(1/30) do | |
| 87 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 88 | h,t=Mouse.Hit,Mouse.Target | |
| 89 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 90 | end | |
| 91 | end]==],Player.Character) | |
| 92 | ||
| 93 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 94 | --Real game object | |
| 95 | local _rg = game | |
| 96 | ||
| 97 | --Metatable for fake service | |
| 98 | local fsmt = {
| |
| 99 | __index = function(self,k) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s[k] end | |
| 102 | end, | |
| 103 | __newindex = function(self,k,v) | |
| 104 | local s = rawget(self,"_RealService") | |
| 105 | if s then s[k]=v end | |
| 106 | end, | |
| 107 | __call = function(self,...) | |
| 108 | local s = rawget(self,"_RealService") | |
| 109 | if s then return s(...) end | |
| 110 | end | |
| 111 | } | |
| 112 | local function FakeService(t,RealService) | |
| 113 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 114 | return setmetatable(t,fsmt) | |
| 115 | end | |
| 116 | ||
| 117 | --Fake game object | |
| 118 | local g = {
| |
| 119 | GetService = function(self,s) | |
| 120 | return self[s] | |
| 121 | end, | |
| 122 | Players = FakeService({
| |
| 123 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 124 | },"Players"), | |
| 125 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 126 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 127 | } | |
| 128 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 129 | g.service = g.GetService | |
| 130 | ||
| 131 | g.RunService = FakeService({
| |
| 132 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 133 | BindToRenderStep = function(self,name,_,fun) | |
| 134 | ||
| 135 | end, | |
| 136 | UnbindFromRenderStep = function(self,name) | |
| 137 | self._btrs[name]:Disconnect() | |
| 138 | end, | |
| 139 | },"RunService") | |
| 140 | ||
| 141 | setmetatable(g,{
| |
| 142 | __index=function(self,s) | |
| 143 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 144 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 145 | end, | |
| 146 | __newindex = fsmt.__newindex, | |
| 147 | __call = fsmt.__call | |
| 148 | }) | |
| 149 | --Changing owner to fake player object to support owner:GetMouse() | |
| 150 | game,owner = g,g.Players.LocalPlayer | |
| 151 | end | |
| 152 | ||
| 153 | ||
| 154 | ||
| 155 | function lerp(weld,beglerp,endlerp,speed) | |
| 156 | weld.C0 = beglerp:lerp(endlerp,speed) | |
| 157 | return weld.C0 | |
| 158 | end | |
| 159 | local speed = 0.2 | |
| 160 | local angle = 0 | |
| 161 | local anglespeed = 1.5 | |
| 162 | local armspeed = 0.2 | |
| 163 | local armangle = 0 | |
| 164 | local armanglespeed = 1.5 | |
| 165 | local legspeed = 0.2 | |
| 166 | local legangle = 0 | |
| 167 | local leganglespeed = 1.5 | |
| 168 | x2enabled = true | |
| 169 | ignore = {}
| |
| 170 | action = "Idle" | |
| 171 | Mode = "TwoHanded" | |
| 172 | on = false | |
| 173 | enabled = true | |
| 174 | jumping = false | |
| 175 | falling = false | |
| 176 | handleexception = false | |
| 177 | combo = 1 | |
| 178 | Player = game.Players.LocalPlayer | |
| 179 | Char = Player.Character | |
| 180 | Anim = Char:FindFirstChild("Animate")
| |
| 181 | Human = Char.Humanoid | |
| 182 | Human.WalkSpeed = 14 | |
| 183 | mouse = Player:GetMouse() | |
| 184 | Sounds = {"rbxasset://sounds/unsheath.wav", "rbxassetid://161006212", "rbxassetid://2248511", "rbxassetid://2101137", "rbxassetid://2248511","rbxassetid://157631498","rbxassetid://161006195","rbxassetid://157878578"}
| |
| 185 | T = Char:findFirstChild("Torso")
| |
| 186 | Head = Char.Head | |
| 187 | LA = Char:findFirstChild("Left Arm")
| |
| 188 | RA = Char:findFirstChild("Right Arm")
| |
| 189 | LL = Char:findFirstChild("Left Leg")
| |
| 190 | RL = Char:findFirstChild("Right Leg")
| |
| 191 | LS = T:findFirstChild("Left Shoulder")
| |
| 192 | RS = T:findFirstChild("Right Shoulder")
| |
| 193 | LH = T:findFirstChild("Left Hip")
| |
| 194 | RH = T:findFirstChild("Right Hip")
| |
| 195 | Neck = T:findFirstChild("Neck")
| |
| 196 | HM = Char:findFirstChild("HumanoidRootPart")
| |
| 197 | RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
| |
| 198 | WLS = Instance.new("Weld", nil)
| |
| 199 | WLS.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 200 | WLS.C1 = CFrame.new(0, 0.5, 0) | |
| 201 | WLS.Part0 = T | |
| 202 | WLS.Part1 = LA | |
| 203 | WRS = Instance.new("Weld", nil)
| |
| 204 | WRS.Part0 = T | |
| 205 | WRS.Part1 = RA | |
| 206 | WRS.C0 = CFrame.new(1.5, 0.5, 0) | |
| 207 | WRS.C1 = CFrame.new(0, 0.5, 0) | |
| 208 | WLH = LH | |
| 209 | WRH = RH | |
| 210 | WeldLH = Instance.new("Weld", nil)
| |
| 211 | WeldLH.C0 = CFrame.new(-0.5, -1, 0) | |
| 212 | WeldLH.C1 = CFrame.new(0, 1, 0) | |
| 213 | WeldLH.Part0 = T | |
| 214 | WeldLH.Part1 = LL | |
| 215 | WeldRH = Instance.new("Weld", nil)
| |
| 216 | WeldRH.C0 = CFrame.new(0.5, -1, 0) | |
| 217 | WeldRH.C1 = CFrame.new(0, 1, 0) | |
| 218 | WeldRH.Part0 = T | |
| 219 | WeldRH.Part1 = RL | |
| 220 | LSC0 = WLS.C0 | |
| 221 | RSC0 = WRS.C0 | |
| 222 | LHC0 = WLH.C0 | |
| 223 | RHC0 = WRH.C0 | |
| 224 | WLHC0 = WeldLH.C0 | |
| 225 | WRHC0 = WeldRH.C0 | |
| 226 | WRJ = RJ | |
| 227 | RJC0 = WRJ.C0 | |
| 228 | NC0 = Neck.C0 | |
| 229 | hopbin = Instance.new("HopperBin", Player.Backpack)
| |
| 230 | hopbin.Name = "Xyphon" | |
| 231 | Run = game:GetService("RunService")
| |
| 232 | ||
| 233 | New = function(Object, Parent, Name, Data) | |
| 234 | local Object = Instance.new(Object) | |
| 235 | for Index, Value in pairs(Data or {}) do
| |
| 236 | Object[Index] = Value | |
| 237 | end | |
| 238 | Object.Parent = Parent | |
| 239 | Object.Name = Name | |
| 240 | return Object | |
| 241 | end | |
| 242 | ||
| 243 | Hammer = New("Model",Char,"Hammer",{})
| |
| 244 | Part = New("Part",Hammer,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-89.0500031, 1.85000014, 88.3500061, 0.999999642, 0, -5.96046448e-008, 5.96046448e-008, 0, 0.999999642, 0, -1, 0),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
| |
| 245 | coolpart = Part | |
| 246 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 3, 5),})
| |
| 247 | Part = New("Part",Hammer,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-89.0500031, 3.25000048, 87.9500122, -0.999999404, -2.98023366e-008, -1.73452321e-007, 1.73452307e-007, -2.45785998e-007, -0.999999404, 2.98023206e-008, -0.999999404, 3.05390671e-007),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
| |
| 248 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0250000004, -0.100000001),Scale = Vector3.new(1, 1.5, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 249 | Part = New("Part",Hammer,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-89.0500031, 3.25000048, 88.75, 0.999999642, 1.21847012e-008, -1.34932521e-009, -1.34931466e-009, -1.49011612e-008, -0.999999404, -1.2184695e-008, 0.999999583, 4.47034836e-008),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
| |
| 250 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0250000004, -0.100000001),Scale = Vector3.new(1, 1.5, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 251 | Part = New("Part",Hammer,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-89.0500031, 0.450000226, 88.75, -0.999999404, -1.21847004e-008, 4.47034836e-008, 4.47034836e-008, 1.49011559e-008, 0.999999404, -1.2184695e-008, 0.999999583, 4.47034836e-008),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
| |
| 252 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0250000004, -0.100000001),Scale = Vector3.new(1, 1.5, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 253 | Part = New("Part",Hammer,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-89.0500031, 0.450000226, 87.9500122, 0.999999285, 2.98023295e-008, 1.34110451e-007, -1.34110451e-007, 2.45785998e-007, 0.999999285, 2.98023206e-008, -0.999999404, 3.05390671e-007),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
| |
| 254 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0250000004, -0.100000001),Scale = Vector3.new(1, 1.5, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 255 | Handle = New("Part",Hammer,"Handle",{BrickColor = BrickColor.new("Dark orange"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-89.0500031, 1.85000014, 91.75, -1, 0, 0, 0, 0, -1, 0, -1, 0),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.627451, 0.372549, 0.207843),})
| |
| 256 | Mesh = New("CylinderMesh",Handle,"Mesh",{Scale = Vector3.new(1, 11, 1),})
| |
| 257 | ||
| 258 | ||
| 259 | Parts = {}
| |
| 260 | for i,v in pairs(Hammer:GetChildren()) do | |
| 261 | table.insert(Parts,v) | |
| 262 | end | |
| 263 | ||
| 264 | local prev | |
| 265 | local parts = Parts | |
| 266 | ||
| 267 | for i = 1,#parts do | |
| 268 | if (parts[i].className == "Part" or parts[i].className == "WedgePart") then | |
| 269 | if (prev ~= nil) then | |
| 270 | local weld = Instance.new("Weld")
| |
| 271 | weld.Part0 = prev | |
| 272 | weld.Part1 = parts[i] | |
| 273 | weld.C0 = prev.CFrame:inverse() | |
| 274 | weld.C1 = parts[i].CFrame:inverse() | |
| 275 | weld.Parent = Hammer | |
| 276 | end | |
| 277 | prev = parts[i] | |
| 278 | end | |
| 279 | end | |
| 280 | ||
| 281 | handle = Handle | |
| 282 | handleweld = Instance.new("Weld",T)
| |
| 283 | handleweld.Part0 = RA | |
| 284 | handleweld.Part1 = handle | |
| 285 | handleweld.C0 = CFrame.new(0,-0.8,-1) *CFrame.Angles(-math.pi/2,0,0) | |
| 286 | handleweld.C1 = CFrame.new(0,0,0.5) | |
| 287 | hanw = handleweld.C0 | |
| 288 | saven = Neck.C0 | |
| 289 | ||
| 290 | PlaySound = function(part,volume,pitch,id) | |
| 291 | local Sound = Instance.new("Sound", part)
| |
| 292 | Sound.SoundId = id | |
| 293 | Sound.Pitch = pitch | |
| 294 | Sound.Volume = volume | |
| 295 | coroutine.wrap(function() | |
| 296 | wait() | |
| 297 | Sound:Play() | |
| 298 | game.Debris:AddItem(Sound,1) | |
| 299 | end)() | |
| 300 | end | |
| 301 | ||
| 302 | function GetDistance(Obj,Mag) | |
| 303 | for _,v in pairs(workspace:GetChildren()) do | |
| 304 | if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Char then
| |
| 305 | local Mag2 = (v.Torso.Position - Obj.Position).magnitude | |
| 306 | if Mag2 < Mag then | |
| 307 | return v | |
| 308 | end | |
| 309 | end | |
| 310 | end | |
| 311 | end | |
| 312 | ||
| 313 | ShowDmg = function(totake) | |
| 314 | local modl = Instance.new("Model", workspace)
| |
| 315 | modl.Name = tostring(totake) | |
| 316 | local prt = Instance.new("Part", modl)
| |
| 317 | prt.CanCollide = false | |
| 318 | prt.BrickColor = BrickColor.Red() | |
| 319 | prt.Name = "Head" | |
| 320 | prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0) | |
| 321 | prt.TopSurface = 0 | |
| 322 | prt.BottomSurface = 0 | |
| 323 | prt.FormFactor = 3 | |
| 324 | prt.Size = Vector3.new(1, 0.2, 1) | |
| 325 | local bm = Instance.new("BlockMesh", prt)
| |
| 326 | local hum = Instance.new("Humanoid", modl)
| |
| 327 | hum.Health = 0 | |
| 328 | hum.MaxHealth = 0 | |
| 329 | hum.WalkSpeed = 0 | |
| 330 | bodypos = Instance.new("BodyPosition", prt)
| |
| 331 | bodypos.position = Head.Position +Vector3.new(0, 1, 0) | |
| 332 | bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 333 | game.Debris:AddItem(modl, 1) | |
| 334 | coroutine.resume(coroutine.create(function() | |
| 335 | for i = 1, 3 do | |
| 336 | bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0) | |
| 337 | Rwait() | |
| 338 | end | |
| 339 | end)) | |
| 340 | end | |
| 341 | ||
| 342 | --Credits to MakerModelLua for helping me fix a small problem ;D | |
| 343 | function Denature(Body) | |
| 344 | local pr = Instance.new("Part",Body)
| |
| 345 | pr.CanCollide = false | |
| 346 | pr.TopSurface = 0 | |
| 347 | pr.BottomSurface = 0 | |
| 348 | pr.FormFactor = 3 | |
| 349 | pr.BrickColor = BrickColor.new("Really black")
| |
| 350 | pr.Size = Vector3.new(0.2,0.2,0.2) | |
| 351 | pr.CFrame = Body.Torso.CFrame | |
| 352 | local prm = Instance.new("SpecialMesh",pr)
| |
| 353 | prm.MeshType = "Sphere" | |
| 354 | local prw = Instance.new("Weld",pr)
| |
| 355 | prw.Part0 = pr | |
| 356 | prw.Part1 = Body.Torso | |
| 357 | game.Debris:AddItem(pr,1.5) | |
| 358 | local pmscale = prm.Scale | |
| 359 | spawn(function() | |
| 360 | for i = 1,3 do | |
| 361 | Body.Humanoid:TakeDamage(1) | |
| 362 | ShowDmg(5) | |
| 363 | Rwait(38) | |
| 364 | end | |
| 365 | end) | |
| 366 | spawn(function() | |
| 367 | for i = 1,3 do | |
| 368 | for i = 0,1.25,0.25/5 do | |
| 369 | local pra = Instance.new("Part",Body)
| |
| 370 | pra.Anchored = true | |
| 371 | pra.CanCollide = false | |
| 372 | pra.TopSurface = 0 | |
| 373 | pra.BottomSurface = 0 | |
| 374 | pra.FormFactor = 3 | |
| 375 | pra.BrickColor = BrickColor.new("Really black")
| |
| 376 | pra.Size = Vector3.new(0.2,0.2,0.2) | |
| 377 | pra.CFrame = Body.Torso.CFrame *CFrame.new(math.random(-40,40)/10,math.random(-20,20)/10,math.random(-15,15)/10) | |
| 378 | game.Debris:AddItem(pra,0.5) | |
| 379 | pra.Transparency = i/4 | |
| 380 | pr.Transparency = i | |
| 381 | prm.Scale = pmscale +Vector3.new(50*i,50*i,50*i) | |
| 382 | Rwait() | |
| 383 | end | |
| 384 | Rwait(5) | |
| 385 | end | |
| 386 | end) | |
| 387 | end | |
| 388 | ||
| 389 | ||
| 390 | function Damage(magnitude,part,damg,knockback,ignoretime) | |
| 391 | if ignoretime == 0 or ignoretime == nil then | |
| 392 | ignoretime = 0.5 | |
| 393 | end | |
| 394 | local Body = GetDistance(part,magnitude) | |
| 395 | if Body ~= nil and Body.Humanoid and Body ~= Char and not ignore[Body] then | |
| 396 | ignore[Body] = true | |
| 397 | Body.Humanoid:TakeDamage(damg) | |
| 398 | spawn(function() | |
| 399 | ShowDmg(damg) | |
| 400 | end) | |
| 401 | if knockback ~= nil and knockback >= 0 then | |
| 402 | local v = Instance.new("BodyVelocity",Body.Torso)
| |
| 403 | v.maxForce = Vector3.new(1e4,0,1e4) | |
| 404 | v.P = 1e15 | |
| 405 | v.velocity = Body.Torso.CFrame.lookVector *-knockback | |
| 406 | game.Debris:AddItem(v,0.3) | |
| 407 | end | |
| 408 | coroutine.resume(coroutine.create(function() | |
| 409 | wait(ignoretime) | |
| 410 | ignore[Body] = false | |
| 411 | end)) | |
| 412 | end | |
| 413 | end | |
| 414 | ||
| 415 | function LiftDamage(magnitude,part,damg,knockback,ignoretime) | |
| 416 | if lifted == true then return end | |
| 417 | if ignoretime == 0 or ignoretime == nil then | |
| 418 | ignoretime = 0.5 | |
| 419 | end | |
| 420 | Body = GetDistance(part,magnitude) | |
| 421 | if Body ~= nil and Body.Humanoid and Body ~= Char and not ignore[Body] then | |
| 422 | lifted = true | |
| 423 | ignore[Body] = true | |
| 424 | Body.Humanoid:TakeDamage(damg) | |
| 425 | spawn(function() | |
| 426 | ShowDmg(damg) | |
| 427 | end) | |
| 428 | if knockback ~= nil and knockback >= 0 then | |
| 429 | local v = Instance.new("BodyVelocity",Body.Torso)
| |
| 430 | v.maxForce = Vector3.new(1e4,0,1e4) | |
| 431 | v.P = 1e15 | |
| 432 | v.velocity = Body.Torso.CFrame.lookVector *-knockback | |
| 433 | game.Debris:AddItem(v,0.3) | |
| 434 | end | |
| 435 | coroutine.resume(coroutine.create(function() | |
| 436 | wait(ignoretime) | |
| 437 | ignore[Body] = false | |
| 438 | end)) | |
| 439 | end | |
| 440 | end | |
| 441 | ||
| 442 | function PowerDamage(magnitude,part,damg,knockback,ignoretime) | |
| 443 | if ignoretime == 0 or ignoretime == nil then | |
| 444 | ignoretime = 0.5 | |
| 445 | end | |
| 446 | local Body = GetDistance(part,magnitude) | |
| 447 | if Body ~= nil and Body.Humanoid and Body ~= Char and not ignore[Body] then | |
| 448 | hit = Body | |
| 449 | ignore[Body] = true | |
| 450 | Body.Humanoid:TakeDamage(damg) | |
| 451 | spawn(function() | |
| 452 | ShowDmg(damg) | |
| 453 | end) | |
| 454 | spawn(function() | |
| 455 | Denature(hit) | |
| 456 | end) | |
| 457 | if knockback ~= nil and knockback >= 0 then | |
| 458 | local v = Instance.new("BodyVelocity",Body.Torso)
| |
| 459 | v.maxForce = Vector3.new(1e4,0,1e4) | |
| 460 | v.P = 1e15 | |
| 461 | v.velocity = Body.Torso.CFrame.lookVector *-knockback | |
| 462 | game.Debris:AddItem(v,0.3) | |
| 463 | end | |
| 464 | coroutine.resume(coroutine.create(function() | |
| 465 | wait(ignoretime) | |
| 466 | ignore[Body] = false | |
| 467 | end)) | |
| 468 | end | |
| 469 | end | |
| 470 | ||
| 471 | function Rwait(long) | |
| 472 | if long == 0 or long == nil then | |
| 473 | Run.RenderStepped:wait() | |
| 474 | else | |
| 475 | for i = 0,long do | |
| 476 | Run.RenderStepped:wait() | |
| 477 | end | |
| 478 | end | |
| 479 | end | |
| 480 | ||
| 481 | function TwoHandedSlash1() | |
| 482 | handleexception = true | |
| 483 | for i = 1,20 do | |
| 484 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,0.4) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 485 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-2,0,-0.25) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 486 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 487 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 488 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/3.5),speed) | |
| 489 | lerp(Neck,Neck.C0,NC0,speed) | |
| 490 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,1.5,0),0.2) | |
| 491 | Rwait() | |
| 492 | end | |
| 493 | PlaySound(Head,1,0.5,Sounds[2]) | |
| 494 | for i = 1,20 do | |
| 495 | Damage(2,coolpart,math.random(9,15)) | |
| 496 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(3.2,0,-0.5) *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed) | |
| 497 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,0.25) *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed) | |
| 498 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 499 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 500 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3.5),speed) | |
| 501 | lerp(Neck,Neck.C0,NC0,speed) | |
| 502 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,1.5,0),0.2) | |
| 503 | Rwait() | |
| 504 | end | |
| 505 | handleexception = false | |
| 506 | end | |
| 507 | ||
| 508 | function TwoHandedSlash2() | |
| 509 | handleexception = true | |
| 510 | for i = 1,20 do | |
| 511 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(3,0,-0.5) *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed) | |
| 512 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,0.25) *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed) | |
| 513 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 514 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 515 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3.5),speed) | |
| 516 | lerp(Neck,Neck.C0,NC0,speed) | |
| 517 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,-1.5,-1) *CFrame.Angles(math.pi,0,0),0.2) | |
| 518 | Rwait() | |
| 519 | end | |
| 520 | PlaySound(Head,1,0.55,Sounds[2]) | |
| 521 | for i = 1,20 do | |
| 522 | Damage(2,coolpart,math.random(9,15)) | |
| 523 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(3,0,-0.5) *CFrame.Angles(0,math.pi/5,math.pi/2),armspeed) | |
| 524 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,0.25) *CFrame.Angles(0,math.pi/5,math.pi/2),armspeed) | |
| 525 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 526 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 527 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/3.5),speed) | |
| 528 | lerp(Neck,Neck.C0,NC0,speed) | |
| 529 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0.05,0) *CFrame.Angles(-math.pi/2.5,0,0),0.2) | |
| 530 | Rwait() | |
| 531 | end | |
| 532 | handleexception = false | |
| 533 | end | |
| 534 | ||
| 535 | function TwoHandedSlash3() | |
| 536 | handleexception = true | |
| 537 | for i = 1,20 do | |
| 538 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2,0,0) *CFrame.Angles(math.pi/1.05,0,math.pi/6),armspeed) | |
| 539 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.05,0,0),armspeed) | |
| 540 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/5),legspeed) | |
| 541 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,-math.pi/5),legspeed) | |
| 542 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 543 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 544 | lerp(handleweld,handleweld.C0,hanw *CFrame.Angles(-math.pi/5,0,0),0.2) | |
| 545 | Rwait() | |
| 546 | end | |
| 547 | PlaySound(Head,1,0.8,Sounds[2]) | |
| 548 | for i = 1,20 do | |
| 549 | Damage(2,coolpart,math.random(9,15)) | |
| 550 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2,0,0) *CFrame.Angles(math.pi/10,0,math.pi/6),armspeed) | |
| 551 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/10,0,0),armspeed) | |
| 552 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/5),legspeed) | |
| 553 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/5),legspeed) | |
| 554 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
| 555 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
| 556 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 557 | Rwait() | |
| 558 | end | |
| 559 | handleexception = false | |
| 560 | end | |
| 561 | ||
| 562 | function OneHandedSlash1() | |
| 563 | handleexception = true | |
| 564 | for i = 1,20 do | |
| 565 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 566 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/1.75,math.pi/2),armspeed) | |
| 567 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 568 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 569 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/4),speed) | |
| 570 | lerp(Neck,Neck.C0,NC0,speed) | |
| 571 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 572 | Rwait() | |
| 573 | end | |
| 574 | PlaySound(Head,1,0.4,Sounds[2]) | |
| 575 | for i = 1,20 do | |
| 576 | Damage(2,coolpart,math.random(9,15)) | |
| 577 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 578 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/10,math.pi/2),armspeed) | |
| 579 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 580 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 581 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/4),speed) | |
| 582 | lerp(Neck,Neck.C0,NC0,speed) | |
| 583 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,-0.5,-0.9) *CFrame.Angles(-math.pi/3,0,0),0.2) | |
| 584 | Rwait() | |
| 585 | end | |
| 586 | handleexception = false | |
| 587 | end | |
| 588 | ||
| 589 | function OneHandedSlash2() | |
| 590 | handleexception = true | |
| 591 | for i = 1,20 do | |
| 592 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 593 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi,-math.pi/5,math.pi/5),armspeed) | |
| 594 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 595 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 596 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/4),speed) | |
| 597 | lerp(Neck,Neck.C0,NC0,speed) | |
| 598 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 599 | Rwait() | |
| 600 | end | |
| 601 | PlaySound(Head,1,0.5,Sounds[2]) | |
| 602 | for i = 1,20 do | |
| 603 | Damage(2,coolpart,math.random(9,15)) | |
| 604 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 605 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-1,0,-0.7) *CFrame.Angles(math.pi/25,-math.pi/25,-math.pi/10),armspeed) | |
| 606 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 607 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 608 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/4),speed) | |
| 609 | lerp(Neck,Neck.C0,NC0,speed) | |
| 610 | Rwait() | |
| 611 | end | |
| 612 | handleexception = false | |
| 613 | end | |
| 614 | ||
| 615 | function OneHandedSlash3() | |
| 616 | handleexception = true | |
| 617 | for i = 1,20 do | |
| 618 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 619 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-1,0,-0.7) *CFrame.Angles(math.pi,math.pi/5,-math.pi/5),armspeed) | |
| 620 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 621 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 622 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/4),speed) | |
| 623 | lerp(Neck,Neck.C0,NC0,speed) | |
| 624 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 625 | Rwait() | |
| 626 | end | |
| 627 | PlaySound(Head,1,0.45,Sounds[2]) | |
| 628 | for i = 1,20 do | |
| 629 | Damage(2,coolpart,math.random(9,15)) | |
| 630 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 631 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/5,math.pi/5),armspeed) | |
| 632 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 633 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 634 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/4),speed) | |
| 635 | lerp(Neck,Neck.C0,NC0,speed) | |
| 636 | Rwait() | |
| 637 | end | |
| 638 | handleexception = false | |
| 639 | end | |
| 640 | ||
| 641 | function Fissure() | |
| 642 | handleexception = true | |
| 643 | for i = 1,20 do | |
| 644 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2,0,0) *CFrame.Angles(math.pi/1.05,0,math.pi/6),armspeed) | |
| 645 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.05,0,0),armspeed) | |
| 646 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/5),legspeed) | |
| 647 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,-math.pi/5),legspeed) | |
| 648 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 649 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 650 | lerp(handleweld,handleweld.C0,hanw *CFrame.Angles(-math.pi/5,0,0),0.2) | |
| 651 | Rwait() | |
| 652 | end | |
| 653 | PlaySound(Head,1,0.8,Sounds[2]) | |
| 654 | Human.WalkSpeed = 0 | |
| 655 | for i = 1,100 do | |
| 656 | Damage(2,coolpart,math.random(9,15)) | |
| 657 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2,0,0) *CFrame.Angles(math.pi/10,0,math.pi/6),armspeed) | |
| 658 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/10,0,0),armspeed) | |
| 659 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/5),legspeed) | |
| 660 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/5),legspeed) | |
| 661 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(math.pi/5,0,0),speed) | |
| 662 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
| 663 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0.2,0),0.2) | |
| 664 | if i == 7 then | |
| 665 | PlaySound(Head,1,1.5,Sounds[8]) | |
| 666 | coroutine.resume(coroutine.create(function() | |
| 667 | local Parts = {}
| |
| 668 | local distance = 0.45 | |
| 669 | local HMCF = HM.CFrame | |
| 670 | for i = 1, 75 do | |
| 671 | local fispart = Instance.new("Part")
| |
| 672 | fispart.Anchored = true | |
| 673 | fispart.CanCollide = false | |
| 674 | fispart.TopSurface = 0 | |
| 675 | fispart.BottomSurface = 0 | |
| 676 | fispart.FormFactor = 3 | |
| 677 | fispart.Size = Vector3.new(1,1,1) | |
| 678 | local fispartm = Instance.new("BlockMesh", fispart)
| |
| 679 | fispartm.Name = "Mesh" | |
| 680 | fispartm.Scale = Vector3.new(5,5,5) | |
| 681 | table.insert(Parts,fispart) | |
| 682 | end | |
| 683 | Rwait(1) | |
| 684 | local Ignore = {}
| |
| 685 | for I_shall,ignore_this in pairs(workspace:GetChildren()) do | |
| 686 | if ignore_this:IsA("Model") then
| |
| 687 | if ignore_this:FindFirstChild("Humanoid") then
| |
| 688 | Ignore[#Ignore +1] = ignore_this | |
| 689 | end | |
| 690 | end | |
| 691 | end | |
| 692 | for num,partrr in pairs(Parts) do | |
| 693 | partrr.Parent = Char | |
| 694 | distance = distance +0.8 | |
| 695 | partrr.CFrame = HMCF *CFrame.new(1.25,3,-4-distance) *CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
| 696 | coroutine.resume(coroutine.create(function() | |
| 697 | for i = 0,1,0.1 do | |
| 698 | Damage(4,partrr,math.random(4,8),50,0.25) | |
| 699 | if partrr:FindFirstChild("Mesh") ~= nil then
| |
| 700 | partrr.Mesh.Scale = partrr.Mesh.Scale -Vector3.new(0.3635,0.3635,0.3635) | |
| 701 | end | |
| 702 | Rwait() | |
| 703 | end | |
| 704 | end)) | |
| 705 | local Ray = Ray.new(partrr.Position + Vector3.new(0,0.1,0),Vector3.new(0,-999,0)) | |
| 706 | local Hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
| 707 | if Hit == nil then partrr:Destroy() end | |
| 708 | if Hit ~= nil then | |
| 709 | partrr.CFrame = CFrame.new(pos) *CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
| 710 | partrr.BrickColor = Hit.BrickColor | |
| 711 | partrr.Material = Hit.Material | |
| 712 | end | |
| 713 | game.Debris:AddItem(partrr,1) | |
| 714 | Rwait() | |
| 715 | end | |
| 716 | Parts = {}
| |
| 717 | end)) | |
| 718 | end | |
| 719 | Rwait() | |
| 720 | end | |
| 721 | Human.WalkSpeed = 14 | |
| 722 | handleexception = false | |
| 723 | end | |
| 724 | ||
| 725 | function SlamHammer() | |
| 726 | Human.WalkSpeed = 0 | |
| 727 | for i = 1,20 do | |
| 728 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
| 729 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.05,0,math.pi/5),armspeed) | |
| 730 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.25,0,-0.25) *CFrame.Angles(0,-math.pi/4,0),legspeed) | |
| 731 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(-0.5,0,-0.25) *CFrame.Angles(0,-math.pi/4,0),legspeed) | |
| 732 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/4),speed) | |
| 733 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/4),speed) | |
| 734 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 735 | Rwait() | |
| 736 | end | |
| 737 | local BV = Instance.new("BodyVelocity",HM)
| |
| 738 | BV.maxForce = Vector3.new(1e5,0,1e5) | |
| 739 | BV.P = 1e8 | |
| 740 | BV.Velocity = HM.CFrame.lookVector *80 | |
| 741 | game.Debris:AddItem(BV,0.3) | |
| 742 | PlaySound(Head,1,0.4,Sounds[2]) | |
| 743 | LH.Part0 = nil | |
| 744 | RH.Part0 = nil | |
| 745 | WeldLH.Parent = T | |
| 746 | WeldRH.Parent = T | |
| 747 | for i = 1,50 do | |
| 748 | lerp(WeldLH,WeldLH.C0,WLHC0,legspeed) | |
| 749 | lerp(WeldRH,WeldRH.C0,WRHC0,legspeed) | |
| 750 | end | |
| 751 | for i = 1,40 do | |
| 752 | Damage(4,coolpart,math.random(9,15)) | |
| 753 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/8),armspeed) | |
| 754 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.4,0,-0.1) *CFrame.Angles(math.pi/8.1,-math.pi/4,math.pi/8),armspeed) | |
| 755 | lerp(WeldLH,WeldLH.C0,WLHC0 *CFrame.new(0.5,0,0) *CFrame.Angles(-math.pi/2,0,-math.pi/4),legspeed/1.5) | |
| 756 | lerp(WeldRH,WeldRH.C0,WRHC0 *CFrame.new(0.4,1.5,-0.1) *CFrame.Angles(0,-math.pi/4,0),legspeed/1.5) | |
| 757 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-1.5) *CFrame.Angles(0,0,math.pi/4),speed) | |
| 758 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/4),speed) | |
| 759 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 760 | Rwait() | |
| 761 | end | |
| 762 | LH.Part0 = T | |
| 763 | RH.Part0 = T | |
| 764 | WeldLH.Parent = nil | |
| 765 | WeldRH.Parent = nil | |
| 766 | Human.WalkSpeed = 14 | |
| 767 | end | |
| 768 | ||
| 769 | function DashSpin() | |
| 770 | Human.WalkSpeed = 0 | |
| 771 | local BV = Instance.new("BodyVelocity",HM)
| |
| 772 | BV.maxForce = Vector3.new(1e5,0,1e5) | |
| 773 | BV.P = 1e8 | |
| 774 | BV.Velocity = HM.CFrame.lookVector *80 | |
| 775 | game.Debris:AddItem(BV,0.3) | |
| 776 | local eff = Instance.new("Part",Char)
| |
| 777 | eff.Anchored = true | |
| 778 | eff.CanCollide = false | |
| 779 | eff.TopSurface = 0 | |
| 780 | eff.BottomSurface = 0 | |
| 781 | eff.FormFactor = 3 | |
| 782 | eff.BrickColor = BrickColor.new("Institutional white")
| |
| 783 | eff.Size = Vector3.new(1,1,1) | |
| 784 | eff.CFrame = HM.CFrame *CFrame.new(0,0,4) *CFrame.Angles(math.pi/2,0,0) | |
| 785 | effm = Instance.new("SpecialMesh",eff)
| |
| 786 | effm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 787 | effm.Scale = Vector3.new(2,5,2) | |
| 788 | game.Debris:AddItem(eff,1) | |
| 789 | spawn(function() | |
| 790 | for i = 0,1,0.02 do | |
| 791 | eff.Transparency = i | |
| 792 | Rwait() | |
| 793 | end | |
| 794 | end) | |
| 795 | for i = 1,40 do | |
| 796 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,math.pi/4,0),armspeed) | |
| 797 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,math.pi/2,0),armspeed) | |
| 798 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
| 799 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 800 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/2.05),speed) | |
| 801 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/2.05),speed) | |
| 802 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 803 | Rwait() | |
| 804 | end | |
| 805 | Human.WalkSpeed = 14 | |
| 806 | for i = 1,5 do | |
| 807 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,0.4) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 808 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-2,0,-0.25) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 809 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 810 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 811 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/3.5),speed) | |
| 812 | lerp(Neck,Neck.C0,NC0,speed) | |
| 813 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,1.5,0),0,0.2) | |
| 814 | Rwait() | |
| 815 | end | |
| 816 | for i = 1,3 do | |
| 817 | for i = 0,1,0.05 do | |
| 818 | Damage(4,coolpart,math.random(9,15),0.2) | |
| 819 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,0.4) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 820 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-2,0,-0.25) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 821 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 822 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 823 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi*i*2),speed) | |
| 824 | lerp(Neck,Neck.C0,NC0,speed) | |
| 825 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,1.5,0),0.2) | |
| 826 | Rwait() | |
| 827 | end | |
| 828 | Rwait() | |
| 829 | PlaySound(Head,1,1,Sounds[2]) | |
| 830 | end | |
| 831 | end | |
| 832 | ||
| 833 | function Pummeler() | |
| 834 | pummel = false | |
| 835 | local BV = Instance.new("BodyVelocity",HM)
| |
| 836 | BV.maxForce = Vector3.new(1e5,0,1e5) | |
| 837 | BV.P = 1e10 | |
| 838 | BV.Velocity = HM.CFrame.lookVector *40 | |
| 839 | game.Debris:AddItem(BV,0.3) | |
| 840 | LH.Part0 = nil | |
| 841 | RH.Part0 = nil | |
| 842 | WeldLH.Parent = T | |
| 843 | WeldRH.Parent = T | |
| 844 | deb = false | |
| 845 | for i = 1,50 do | |
| 846 | lerp(WeldLH,WeldLH.C0,WLHC0,legspeed) | |
| 847 | lerp(WeldRH,WeldRH.C0,WRHC0,legspeed) | |
| 848 | end | |
| 849 | for i = 1,20 do | |
| 850 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,math.pi/4,0),armspeed) | |
| 851 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,math.pi/2,0),armspeed) | |
| 852 | lerp(WeldLH,WeldLH.C0,WLHC0,legspeed) | |
| 853 | lerp(WeldRH,WeldRH.C0,WRHC0 *CFrame.Angles(math.pi/2.2,0,0),legspeed) | |
| 854 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 855 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
| 856 | lerp(handleweld,handleweld.C0,hanw,0.2) | |
| 857 | if i == 8 then | |
| 858 | con1 = RL.Touched:connect(function(hit) | |
| 859 | if deb == false and hit.Parent ~= nil and hit.Parent:FindFirstChild("Torso") ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health >= 0 then
| |
| 860 | deb = true | |
| 861 | BV:Destroy() | |
| 862 | BG = Instance.new("BodyGyro",hit.Parent.Torso)
| |
| 863 | BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 864 | BG.P = 10000 | |
| 865 | BG.CFrame = hit.Parent.Torso.CFrame *CFrame.Angles(math.rad(90),0,0) | |
| 866 | BP = Instance.new("BodyPosition",hit.Parent.Torso)
| |
| 867 | BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 868 | BP.P = 10000 | |
| 869 | BP.Position = hit.Parent.Torso.Position -Vector3.new(0,3,0) | |
| 870 | game.Debris:AddItem(BG,0.5) | |
| 871 | game.Debris:AddItem(BP,0.5) | |
| 872 | pummel = true | |
| 873 | end | |
| 874 | end) | |
| 875 | end | |
| 876 | Rwait() | |
| 877 | end | |
| 878 | con1:disconnect() | |
| 879 | if pummel == true then | |
| 880 | for i = 1,10 do | |
| 881 | lerp(Neck,Neck.C0,NC0,speed) | |
| 882 | lerp(WeldLH,WeldLH.C0,WLHC0,legspeed) | |
| 883 | lerp(WeldRH,WeldRH.C0,WRHC0,legspeed) | |
| 884 | Rwait() | |
| 885 | end | |
| 886 | LH.Part0 = T | |
| 887 | RH.Part0 = T | |
| 888 | WeldLH.Parent = nil | |
| 889 | WeldRH.Parent = nil | |
| 890 | for i = 1,3 do | |
| 891 | for i = 1,15 do | |
| 892 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2,0,0) *CFrame.Angles(math.pi/1.05,0,math.pi/6),armspeed) | |
| 893 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.05,0,0),armspeed) | |
| 894 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/5),legspeed) | |
| 895 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,-math.pi/5),legspeed) | |
| 896 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 897 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 898 | lerp(handleweld,handleweld.C0,hanw *CFrame.Angles(-math.pi/5,0,0),0.2) | |
| 899 | Rwait() | |
| 900 | end | |
| 901 | PlaySound(Head,1,0.5,Sounds[2]) | |
| 902 | for i = 1,15 do | |
| 903 | Damage(2,coolpart,math.random(9,15)) | |
| 904 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2,0,0) *CFrame.Angles(math.pi/10,0,math.pi/6),armspeed) | |
| 905 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/10,0,0),armspeed) | |
| 906 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/5),legspeed) | |
| 907 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/5),legspeed) | |
| 908 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(math.pi/5,0,0),speed) | |
| 909 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
| 910 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0.2,0),0.2) | |
| 911 | Rwait() | |
| 912 | end | |
| 913 | Rwait() | |
| 914 | end | |
| 915 | end | |
| 916 | if pummel == false then | |
| 917 | for i = 1,10 do | |
| 918 | lerp(Neck,Neck.C0,NC0,speed) | |
| 919 | lerp(WeldLH,WeldLH.C0,WLHC0,legspeed) | |
| 920 | lerp(WeldRH,WeldRH.C0,WRHC0,legspeed) | |
| 921 | Rwait() | |
| 922 | end | |
| 923 | LH.Part0 = T | |
| 924 | RH.Part0 = T | |
| 925 | WeldLH.Parent = nil | |
| 926 | WeldRH.Parent = nil | |
| 927 | end | |
| 928 | deb = false | |
| 929 | end | |
| 930 | ||
| 931 | function PowerSlash() | |
| 932 | for i = 1,20 do | |
| 933 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,0),armspeed) | |
| 934 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.4,0,-0.5) *CFrame.Angles(math.pi/1.2,math.pi/10,-math.pi/4),armspeed) | |
| 935 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 936 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 937 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 938 | lerp(Neck,Neck.C0,NC0,speed) | |
| 939 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0.2,0),0.2) | |
| 940 | Rwait() | |
| 941 | end | |
| 942 | for i = 1,30 do | |
| 943 | local p = Instance.new("Part",Char)
| |
| 944 | p.Anchored = true | |
| 945 | p.CanCollide = false | |
| 946 | p.FormFactor = 3 | |
| 947 | p.BrickColor = BrickColor.new("Really black")
| |
| 948 | p.Size = Vector3.new(0.5,0.5,0.5) | |
| 949 | p.CFrame = coolpart.CFrame *CFrame.new(math.random(-40,40)/20,0,math.random(-40,40)/20) *CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
| 950 | game.Debris:AddItem(p,0.7) | |
| 951 | coroutine.resume(coroutine.create(function() | |
| 952 | for i = 0,1.05,0.05 do | |
| 953 | p.Transparency = i | |
| 954 | p.CFrame = coolpart.CFrame *CFrame.new(math.random(-40,40)/20,0,math.random(-40,40)/20) *CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
| 955 | Rwait() | |
| 956 | end | |
| 957 | end)) | |
| 958 | end | |
| 959 | for i = 1,20 do | |
| 960 | PowerDamage(4,coolpart,math.random(4,18),50,0.45) | |
| 961 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,0),armspeed) | |
| 962 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/30,math.pi/3),armspeed) | |
| 963 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 964 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 965 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 966 | lerp(Neck,Neck.C0,NC0,speed) | |
| 967 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0.2,0),0.2) | |
| 968 | Rwait() | |
| 969 | end | |
| 970 | end | |
| 971 | ||
| 972 | function LiftSpinwheel() | |
| 973 | handleexception = true | |
| 974 | for i = 1,20 do | |
| 975 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.4,0,-1) *CFrame.Angles(math.pi/2,0,-math.pi/5),armspeed) | |
| 976 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0.2,0,-0.1) *CFrame.Angles(math.pi/2,0,-math.pi/5),armspeed) | |
| 977 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 978 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 979 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed) | |
| 980 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed) | |
| 981 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(-1,-1,-0.5) *CFrame.Angles(0,-math.pi/2,math.pi/2),0.2) | |
| 982 | Rwait() | |
| 983 | end | |
| 984 | lifted = false | |
| 985 | for i = 1,20 do | |
| 986 | LiftDamage(2,coolpart,math.random(16,24)) | |
| 987 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.8,1,-1) *CFrame.Angles(math.pi/1.2,math.pi/10,0),armspeed) | |
| 988 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0.2,0,-0.1) *CFrame.Angles(math.pi/1.2,-math.pi/10,-math.pi/10),armspeed) | |
| 989 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 990 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 991 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed) | |
| 992 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed) | |
| 993 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(-1,-1,-0.5) *CFrame.Angles(0,-math.pi/2,math.pi/2),0.2) | |
| 994 | Rwait() | |
| 995 | end | |
| 996 | print(lifted) | |
| 997 | if lifted == true then | |
| 998 | BP = Instance.new("BodyPosition",Body.Torso)
| |
| 999 | BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1000 | BP.P = 2e4 | |
| 1001 | BP.Position = Body.Torso.CFrame.p +Vector3.new(0,20,0) | |
| 1002 | Rwait(50) | |
| 1003 | PBP = Instance.new("BodyPosition",T)
| |
| 1004 | PBP.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1005 | PBP.P = 1e6 | |
| 1006 | PBP.Position = Body.Torso.CFrame.p+(Body.Torso.CFrame.lookVector *5) | |
| 1007 | for i = 1,3 do | |
| 1008 | for i = 0,1.05,0.05 do | |
| 1009 | Damage(2,coolpart,math.random(4,8),0,0.2) | |
| 1010 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,0.4) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 1011 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-2,0,-0.25) *CFrame.Angles(0,math.pi/1.05,math.pi/2),armspeed) | |
| 1012 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 1013 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 1014 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,math.pi/2,-math.pi*i*2),speed) | |
| 1015 | lerp(Neck,Neck.C0,NC0,speed) | |
| 1016 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,1.5,0),0.2) | |
| 1017 | Rwait() | |
| 1018 | end | |
| 1019 | PlaySound(Head,1,1.1,Sounds[2]) | |
| 1020 | Rwait() | |
| 1021 | end | |
| 1022 | BP:Destroy() | |
| 1023 | PBP:Destroy() | |
| 1024 | Body = nil | |
| 1025 | end | |
| 1026 | handleexception = false | |
| 1027 | end | |
| 1028 | ||
| 1029 | function Selected() | |
| 1030 | click = mouse.Button1Down:connect(function() | |
| 1031 | if combo == 1 and on == true and enabled == true and Mode == "TwoHanded" then | |
| 1032 | enabled = false | |
| 1033 | coroutine.resume(coroutine.create(function() | |
| 1034 | Rwait(100) | |
| 1035 | if enabled == true then | |
| 1036 | combo = 1 | |
| 1037 | end | |
| 1038 | end)) | |
| 1039 | TwoHandedSlash1() | |
| 1040 | combo = 2 | |
| 1041 | enabled = true | |
| 1042 | elseif combo == 1 and on == true and enabled == true and Mode == "OneHanded" then | |
| 1043 | enabled = false | |
| 1044 | coroutine.resume(coroutine.create(function() | |
| 1045 | Rwait(100) | |
| 1046 | if enabled == true then | |
| 1047 | combo = 1 | |
| 1048 | end | |
| 1049 | end)) | |
| 1050 | OneHandedSlash1() | |
| 1051 | combo = 2 | |
| 1052 | enabled = true | |
| 1053 | elseif combo == 2 and on == true and enabled == true and Mode == "TwoHanded" then | |
| 1054 | enabled = false | |
| 1055 | coroutine.resume(coroutine.create(function() | |
| 1056 | Rwait(100) | |
| 1057 | if enabled == true then | |
| 1058 | combo = 1 | |
| 1059 | end | |
| 1060 | end)) | |
| 1061 | TwoHandedSlash2() | |
| 1062 | enabled = true | |
| 1063 | combo = 3 | |
| 1064 | elseif combo == 2 and on == true and enabled == true and Mode == "OneHanded" then | |
| 1065 | enabled = false | |
| 1066 | coroutine.resume(coroutine.create(function() | |
| 1067 | Rwait(100) | |
| 1068 | if enabled == true then | |
| 1069 | combo = 1 | |
| 1070 | end | |
| 1071 | end)) | |
| 1072 | OneHandedSlash2() | |
| 1073 | combo = 3 | |
| 1074 | enabled = true | |
| 1075 | elseif combo == 3 and on == true and enabled == true and Mode == "TwoHanded" then | |
| 1076 | enabled = false | |
| 1077 | TwoHandedSlash3() | |
| 1078 | enabled = true | |
| 1079 | combo = 1 | |
| 1080 | elseif combo == 3 and on == true and enabled == true and Mode == "OneHanded" then | |
| 1081 | enabled = false | |
| 1082 | OneHandedSlash3() | |
| 1083 | combo = 1 | |
| 1084 | enabled = true | |
| 1085 | end | |
| 1086 | end) | |
| 1087 | keys = mouse.KeyDown:connect(function(key) | |
| 1088 | key = key:lower() | |
| 1089 | if enabled == false then return end | |
| 1090 | if key == "e" then | |
| 1091 | if Mode == "TwoHanded" then | |
| 1092 | Mode = "OneHanded" | |
| 1093 | elseif Mode == "OneHanded" then | |
| 1094 | Mode = "TwoHanded" | |
| 1095 | end | |
| 1096 | end | |
| 1097 | if key == "f" then | |
| 1098 | on = not on | |
| 1099 | if on == false then | |
| 1100 | for i = 1, 10 do | |
| 1101 | lerp(WLS,WLS.C0,LSC0,armspeed) | |
| 1102 | lerp(WRS,WRS.C0,RSC0,armspeed) | |
| 1103 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 1104 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 1105 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 1106 | lerp(Neck,Neck.C0,NC0,speed) | |
| 1107 | Rwait() | |
| 1108 | end | |
| 1109 | WLS.Parent = nil | |
| 1110 | WRS.Parent = nil | |
| 1111 | LSH.Parent = T | |
| 1112 | RSH.Parent = T | |
| 1113 | Neck.C0 = saven | |
| 1114 | end | |
| 1115 | if on == true then | |
| 1116 | --EquipAnim() | |
| 1117 | RJC = RJ:Clone() | |
| 1118 | LSH = LS:Clone() | |
| 1119 | RSH = RS:Clone() | |
| 1120 | Neck.C0 = saven | |
| 1121 | WLS.Parent = T | |
| 1122 | WRS.Parent = T | |
| 1123 | end | |
| 1124 | end | |
| 1125 | if key == "z" and on == true and Mode == "TwoHanded" then | |
| 1126 | enabled = false | |
| 1127 | Fissure() | |
| 1128 | enabled = true | |
| 1129 | wait(0.5) | |
| 1130 | elseif key == "z" and on == true and Mode == "OneHanded" then | |
| 1131 | enabled = false | |
| 1132 | SlamHammer() | |
| 1133 | enabled = true | |
| 1134 | end | |
| 1135 | if key == "x" and on == true and Mode == "TwoHanded" then | |
| 1136 | enabled = false | |
| 1137 | DashSpin() | |
| 1138 | enabled = true | |
| 1139 | elseif key == "x" and x2enabled == true and on == true and Mode == "OneHanded" then | |
| 1140 | enabled = false | |
| 1141 | x2enabled = false | |
| 1142 | PowerSlash() | |
| 1143 | enabled = true | |
| 1144 | wait(5) | |
| 1145 | x2enabled = true | |
| 1146 | end | |
| 1147 | if key == "c" and on == true and Mode == "TwoHanded" then | |
| 1148 | enabled = false | |
| 1149 | Pummeler() | |
| 1150 | enabled = true | |
| 1151 | end | |
| 1152 | if key == "v" and on == true and Mode == "TwoHanded" then | |
| 1153 | enabled = false | |
| 1154 | LiftSpinwheel() | |
| 1155 | enabled = true | |
| 1156 | end | |
| 1157 | end) | |
| 1158 | end | |
| 1159 | ||
| 1160 | function Deselected() | |
| 1161 | click:disconnect() | |
| 1162 | keys:disconnect() | |
| 1163 | end | |
| 1164 | ||
| 1165 | hopbin.Selected:connect(Selected) | |
| 1166 | hopbin.Deselected:connect(Deselected) | |
| 1167 | ||
| 1168 | while true do | |
| 1169 | if enabled == true then | |
| 1170 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0,0.2),0.2) | |
| 1171 | elseif enabled == false then | |
| 1172 | if handleexception == false then | |
| 1173 | lerp(handleweld,handleweld.C0,hanw *CFrame.new(0,0,0.2),0.2) | |
| 1174 | end | |
| 1175 | end | |
| 1176 | if on == true then | |
| 1177 | angle = (angle % 100) +anglespeed/10 | |
| 1178 | armangle = (armangle % 100) +armanglespeed/10 | |
| 1179 | legangle = (legangle % 100) +leganglespeed/10 | |
| 1180 | if action == "Idle" and enabled == true and Mode == "TwoHanded" then | |
| 1181 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,math.pi/4,0),armspeed) | |
| 1182 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,math.pi/2,0),armspeed) | |
| 1183 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
| 1184 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 1185 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/20,0,0),speed) | |
| 1186 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/20,0,0),speed) | |
| 1187 | end | |
| 1188 | if action == "Idle" and enabled == true and Mode == "OneHanded" then | |
| 1189 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/10),armspeed) | |
| 1190 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/8),armspeed) | |
| 1191 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/30),legspeed) | |
| 1192 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/30),legspeed) | |
| 1193 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/10),speed) | |
| 1194 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25/2)*0.3/2,0,math.pi/10),speed) | |
| 1195 | end | |
| 1196 | if action == "Walk" and enabled == true and Mode == "TwoHanded" then | |
| 1197 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,math.pi/4,0),armspeed) | |
| 1198 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,0.05) *CFrame.Angles(math.pi/2,math.pi/2,0),armspeed) | |
| 1199 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed) | |
| 1200 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
| 1201 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 1202 | lerp(Neck,Neck.C0,NC0,speed) | |
| 1203 | end | |
| 1204 | if action == "Walk" and enabled == true and Mode == "OneHanded" then | |
| 1205 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/40),armspeed) | |
| 1206 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/3.5,math.pi/10),armspeed) | |
| 1207 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 1208 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 1209 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 1210 | lerp(Neck,Neck.C0,NC0,speed) | |
| 1211 | end | |
| 1212 | if HM.Velocity.Y >= 10 and enabled == true and Mode == "TwoHanded" then | |
| 1213 | while HM.Velocity.Y >= 10 and enabled == true do | |
| 1214 | action = "Jump" | |
| 1215 | jumping = true | |
| 1216 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,math.pi/4,0),armspeed) | |
| 1217 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,math.pi/2,0),armspeed) | |
| 1218 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/15),legspeed) | |
| 1219 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/10),legspeed) | |
| 1220 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 1221 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed) | |
| 1222 | Rwait() | |
| 1223 | end | |
| 1224 | end | |
| 1225 | if HM.Velocity.Y >= 5 and enabled == true and Mode == "OneHanded" then | |
| 1226 | while HM.Velocity.Y >= 5 and enabled == true do | |
| 1227 | action = "Jump" | |
| 1228 | jumping = true | |
| 1229 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/40),armspeed) | |
| 1230 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/3.5,math.pi/10),armspeed) | |
| 1231 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/15),legspeed) | |
| 1232 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/10),legspeed) | |
| 1233 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 1234 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed) | |
| 1235 | Rwait() | |
| 1236 | end | |
| 1237 | end | |
| 1238 | if HM.Velocity.Y <= -5 and enabled == true and Mode == "TwoHanded" then | |
| 1239 | while HM.Velocity.Y <= -5 and enabled == true do | |
| 1240 | action = "Fall" | |
| 1241 | falling = true | |
| 1242 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,math.pi/4,0),armspeed) | |
| 1243 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,math.pi/2,0),armspeed) | |
| 1244 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
| 1245 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/3),legspeed) | |
| 1246 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed) | |
| 1247 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/8,0,0),speed) | |
| 1248 | Rwait() | |
| 1249 | end | |
| 1250 | end | |
| 1251 | if HM.Velocity.Y <= -5 and enabled == true and Mode == "OneHanded" then | |
| 1252 | while HM.Velocity.Y <= -5 and enabled == true do | |
| 1253 | action = "Fall" | |
| 1254 | falling = true | |
| 1255 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/40),armspeed) | |
| 1256 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/3.5,math.pi/10),armspeed) | |
| 1257 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
| 1258 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/3),legspeed) | |
| 1259 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed) | |
| 1260 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/8,0,0),speed) | |
| 1261 | Rwait() | |
| 1262 | end | |
| 1263 | end | |
| 1264 | if Vector3.new(T.Velocity.X,0,T.Velocity.Z).magnitude <= 2 then | |
| 1265 | action = "Idle" | |
| 1266 | elseif Vector3.new(T.Velocity.X,0,T.Velocity.Z).magnitude <= 20 then | |
| 1267 | action = "Walk" | |
| 1268 | end | |
| 1269 | end | |
| 1270 | Rwait() | |
| 1271 | end |