Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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 -- Services --
- local Player = game:GetService("Players").LocalPlayer
- local RunService = game:GetService("RunService")
- local InputService = game:GetService("UserInputService")
- local ChatService = game:GetService("Chat")
- local Mouse = Player:GetMouse()
- -- Variables --
- local Character = Player.Character
- local Torso = Character.Torso
- local Head = Character.Head
- local HammerHandleWeld = Character.HumanoidRootPart
- local Humanoid = Character:FindFirstChild("Humanoid")
- local Parts = Instance.new("Model",Character)
- local clickDebounce = false
- local hitBoxEnabled = false
- local comboFlag = 0
- local comboFlag2 = 0
- Humanoid.WalkSpeed = 10
- Humanoid.Health = 1000
- Humanoid.MaxHealth = 1000
- Humanoid.JumpPower = 0
- Parts.Name = "Hammer"
- -- Hammer --
- HammerHandle = Instance.new("Part",Parts)
- HammerHandle.Size = Vector3.new(7.7,0.25,0.25)
- HammerHandle.BrickColor = BrickColor.new("Black")
- HammerHandle.Anchored = false
- HammerHandle.Locked = true
- HammerHandle.Material = "Wood"
- HammerHandle.CanCollide = false
- HammerBlock1 = Instance.new("Part",Parts)
- HammerBlock1.Locked = true
- HammerBlock1.Size = Vector3.new(1.74,4.20,1.74)
- HammerBlock1.BrickColor = BrickColor.new("Black")
- HammerBlock1.Anchored = false
- HammerBlock1.Material = "Neon"
- HammerBlock1.CanCollide = false
- HammerBlock1.Locked = true
- HammerBlock2 = Instance.new("Part",Parts)
- HammerBlock2.Size = Vector3.new(1.54,4.45,1.54)
- HammerBlock2.BrickColor = BrickColor.new("Dark stone grey")
- HammerBlock2.Anchored = false
- HammerBlock2.Locked = true
- HammerBlock2.Material = "Neon"
- HammerBlock2.CanCollide = false
- HammerBlock3 = Instance.new("Part",Parts)
- HammerBlock3.Size = Vector3.new(2,1,2)
- HammerBlock3.BrickColor = BrickColor.new("Dark stone grey")
- HammerBlock3.Anchored = false
- HammerBlock3.Locked = true
- HammerBlock3.Material = "Neon"
- HammerBlock3.CanCollide = false
- HammerBlock4 = Instance.new("Part",Parts)
- HammerBlock4.Size = Vector3.new(2,1,2)
- HammerBlock4.BrickColor = BrickColor.new("Dark stone grey")
- HammerBlock4.Anchored = false
- HammerBlock4.Locked = true
- HammerBlock4.Material = "Neon"
- HammerBlock4.CanCollide = false
- HammerBlock5 = Instance.new("Part",Parts)
- HammerBlock5.Size = Vector3.new(1.9,1,1.9)
- HammerBlock5.BrickColor = BrickColor.new("Really black")
- HammerBlock5.Anchored = false
- HammerBlock5.Locked = true
- HammerBlock5.Material = "Wood"
- HammerBlock5.CanCollide = false
- HammerBlock6 = Instance.new("Part",Parts)
- HammerBlock6.Size = Vector3.new(1.9,1,1.9)
- HammerBlock6.BrickColor = BrickColor.new("Really black")
- HammerBlock6.Anchored = false
- HammerBlock6.Locked = true
- HammerBlock6.Material = "Wood"
- HammerBlock6.CanCollide = false
- HammerBlock7 = Instance.new("Part",Parts)
- HammerBlock7.Size = Vector3.new(2.15,0.85,2.1)
- HammerBlock7.BrickColor = BrickColor.new("Really black")
- HammerBlock7.Anchored = false
- HammerBlock7.Locked = true
- HammerBlock7.Material = "Wood"
- HammerBlock7.CanCollide = false
- HammerBlock8 = Instance.new("Part",Parts)
- HammerBlock8.Size = Vector3.new(2.15,0.85,2.1)
- HammerBlock8.BrickColor = BrickColor.new("Really black")
- HammerBlock8.Anchored = false
- HammerBlock8.Locked = true
- HammerBlock8.Material = "Wood"
- HammerBlock8.CanCollide = false
- HammerHitBox = Instance.new("Part",Parts)
- HammerHitBox.Size = Vector3.new(8.2,4.8,2.25)
- HammerHitBox.BrickColor = BrickColor.new("Really red")
- HammerHitBox.Transparency = 1
- HammerHitBox.Anchored = false
- HammerHitBox.Locked = true
- HammerHitBox.Material = "Neon"
- HammerHitBox.CanCollide = false
- HammerHitBoxHandle = Instance.new("Part",Parts)
- HammerHitBoxHandle.Size = Vector3.new(7.92,0.55,0.55)
- HammerHitBoxHandle.BrickColor = BrickColor.new("Really red")
- HammerHitBoxHandle.Transparency = 1
- HammerHitBoxHandle.Anchored = false
- HammerHitBoxHandle.Locked = true
- HammerHitBoxHandle.Material = "Neon"
- HammerHitBoxHandle.CanCollide = false
- HammerSquare1 = Instance.new("Part",Parts)
- HammerSquare1.Size = Vector3.new(0.25,0.45,0.45)
- HammerSquare1.BrickColor = BrickColor.new("Dark stone grey")
- HammerSquare1.Anchored = false
- HammerSquare1.Locked = true
- HammerSquare1.Material = "Concrete"
- HammerSquare1.CanCollide = false
- HammerSquare2 = Instance.new("Part",Parts)
- HammerSquare2.Size = Vector3.new(0.25,0.45,0.45)
- HammerSquare2.BrickColor = BrickColor.new("Dark stone grey")
- HammerSquare2.Anchored = false
- HammerSquare2.Locked = true
- HammerSquare2.Material = "Concrete"
- HammerSquare2.CanCollide = false
- HammerSwing1 = Instance.new("Sound",HammerHitBox)
- HammerSwing1.SoundId = "rbxassetid://145486992"
- HammerSwing1.Volume = 1
- HammerSwing2 = Instance.new("Sound",HammerHitBox)
- HammerSwing2.SoundId = "rbxassetid://246930031"
- HammerSwing2.Volume = 2
- HammerContact = Instance.new("Sound",HammerHitBox)
- HammerContact.SoundId = "rbxassetid://130791043"
- HammerContact.Volume = 1
- HammerContact2 = Instance.new("Sound",HammerHitBox)
- HammerContact2.SoundId = "rbxassetid://146163534"
- HammerContact2.Volume = 1
- -- Welds --
- local leftArmWeld = Instance.new("Weld",Character["Left Arm"])
- local leftLegWeld = Instance.new("Weld",Character["Left Leg"])
- local rightArmWeld = Instance.new("Weld",Character["Right Arm"])
- local rightLegWeld = Instance.new("Weld",Character["Right Leg"])
- local hammerHandleWeld = Instance.new("Weld",Character["Right Arm"])
- local hammerBlock1Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock2Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock3Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock4Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock5Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock6Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock7Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerBlock8Weld = Instance.new("Weld",hammerHandleWeld)
- local hammerHitBoxWeld = Instance.new("Weld",hammerHandleWeld)
- local hammerHitBoxHandleWeld = Instance.new("Weld",hammerHandleWeld)
- local HammerSquare1Weld = Instance.new("Weld",hammerHandleWeld)
- local HammerSquare2Weld = Instance.new("Weld",hammerHandleWeld)
- local headWeld = Instance.new("Weld",Head)
- local torsoWeld = Instance.new("Weld",Torso)
- -- WeldsPartC0 --
- leftArmWeld.Part0 = Torso
- leftArmWeld.Part1 = Character["Left Arm"]
- leftArmWeld.C0 = CFrame.new(-1,0.5,0)
- rightArmWeld.Part0 = Torso
- rightArmWeld.Part1 = Character["Right Arm"]
- rightArmWeld.C0 = CFrame.new(1,0.5,0)
- leftLegWeld.Part0 = Torso
- leftLegWeld.Part1 = Character["Left Leg"]
- leftLegWeld.C0 = CFrame.new(-0.5,-1.0,0)
- rightLegWeld.Part0 = Torso
- rightLegWeld.Part1 = Character["Right Leg"]
- rightLegWeld.C0 = CFrame.new(0.5,-1.0,0)
- hammerHandleWeld.Part0 = Character["Right Arm"]
- hammerHandleWeld.Part1 = HammerHandle
- hammerHandleWeld.C0 = CFrame.new(0,-.90,0)
- hammerBlock1Weld.Part0 = HammerHandle
- hammerBlock1Weld.Part1 = HammerBlock1
- hammerBlock1Weld.C0 = CFrame.new(-2.5,0,0)
- hammerBlock2Weld.Part0 = HammerBlock1
- hammerBlock2Weld.Part1 = HammerBlock2
- hammerBlock2Weld.C0 = CFrame.new(0,0,0)
- hammerBlock3Weld.Part0 = HammerBlock1
- hammerBlock3Weld.Part1 = HammerBlock3
- hammerBlock3Weld.C0 = CFrame.new(0,1.55,0)
- hammerBlock4Weld.Part0 = HammerBlock1
- hammerBlock4Weld.Part1 = HammerBlock4
- hammerBlock4Weld.C0 = CFrame.new(0,-1.55,0)
- hammerBlock5Weld.Part0 = HammerBlock1
- hammerBlock5Weld.Part1 = HammerBlock5
- hammerBlock5Weld.C0 = CFrame.new(0,1,0)
- hammerBlock6Weld.Part0 = HammerBlock1
- hammerBlock6Weld.Part1 = HammerBlock6
- hammerBlock6Weld.C0 = CFrame.new(0,-1,0)
- hammerBlock7Weld.Part0 = HammerBlock1
- hammerBlock7Weld.Part1 = HammerBlock7
- hammerBlock7Weld.C0 = CFrame.new(0,1.7,0)
- hammerBlock8Weld.Part0 = HammerBlock1
- hammerBlock8Weld.Part1 = HammerBlock8
- hammerBlock8Weld.C0 = CFrame.new(0,-1.7,0)
- hammerHitBoxWeld.Part0 = HammerBlock1
- hammerHitBoxWeld.Part1 = HammerHitBox
- hammerHitBoxWeld.C0 = CFrame.new(2.4,0,0)
- hammerHitBoxHandleWeld.Part0 = HammerHandle
- hammerHitBoxHandleWeld.Part1 = HammerHitBoxHandle
- hammerHitBoxHandleWeld.C0 = CFrame.new(0,0,0)
- HammerSquare1Weld.Part0 = HammerBlock1
- HammerSquare1Weld.Part1 = HammerSquare1
- HammerSquare1Weld.C0 = CFrame.new(-.9,0,0)
- HammerSquare2Weld.Part0 = HammerBlock1
- HammerSquare2Weld.Part1 = HammerSquare2
- HammerSquare2Weld.C0 = CFrame.new(.9,0,0)
- torsoWeld.Part0 = HammerHandleWeld
- torsoWeld.Part1 = Torso
- headWeld.Part0 = Torso
- headWeld.Part1 = Head
- headWeld.C0 = CFrame.new(0,1,0)
- --[[
- local billboard = Instance.new("BillboardGui")
- billboard.Size = UDim2.new(1,0,1,0)
- billboard.Parent = HammerSquare1
- billboard.AlwaysOnTop = true
- local frame = Instance.new("Frame",billboard)
- frame.BorderSizePixel = 0
- frame.Transparency = 1
- frame.Size = UDim2.new(1,0,1,0)
- local image = Instance.new("TextLabel",frame)
- image.Size = UDim2.new(1.5,0,1,0)
- image.BorderSizePixel = 2
- image.TextTransparency = 0
- image.TextSize = 35
- image.BackgroundTransparency = 1
- image.Font = Enum.Font.SourceSansBold
- image.TextColor3 = Color3.new(0,0,0)
- image.TextStrokeTransparency = 0
- image.TextStrokeColor3 = Color3.new(255,255,255)
- ]]
- -- Functions --
- local function Debris(x,y,z)
- wait(1)
- for i = 1,14 do
- z.TextTransparency = z.TextTransparency + 0.1
- z.TextStrokeTransparency = z.TextStrokeTransparency + 0.1
- wait()
- end
- game:GetService("Debris"):AddItem(x,y)
- end
- function Chat(playername,pos)
- local billboard = Instance.new("BillboardGui")
- billboard.Size = UDim2.new(1,0,1,0)
- billboard.Parent = HammerSquare1
- billboard.AlwaysOnTop = true
- local frame = Instance.new("Frame",billboard)
- frame.BorderSizePixel = 0
- frame.Transparency = 1
- frame.Size = UDim2.new(1,0,1,0)
- local image = Instance.new("TextLabel",frame)
- image.Size = UDim2.new(1.5,0,1,0)
- image.BorderSizePixel = 2
- image.TextTransparency = 0
- image.TextSize = 35
- image.BackgroundTransparency = 1
- image.Font = Enum.Font.SourceSansBold
- image.TextColor3 = Color3.new(0,0,0)
- image.TextStrokeTransparency = 0
- image.TextStrokeColor3 = Color3.new(255,255,255)
- image.Text = "[ "..playername.." ] has been nil'd."
- Spawn(function()
- Debris(billboard,1,image)
- end)
- end
- -- Walking Idle --
- Spawn(function()
- while RunService.Stepped:Wait() do
- if hitBoxEnabled == true then
- HammerHitBox.Transparency = 0.85
- HammerHitBoxHandle.Transparency = 0.85
- else
- HammerHitBox.Transparency = 01
- HammerHitBoxHandle.Transparency = 1
- end
- local positionSpeed = (HammerHandleWeld.Velocity * Vector3.new(1,0,1)).magnitude
- if positionSpeed < 1 then
- if clickDebounce == true then repeat wait() until clickDebounce == false end
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(-math.rad(70),math.rad(15),-math.rad(45)),0.2)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(45),0,math.rad(45) + -math.cos(tick()*4)/17),0.2)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1 + -math.cos(tick()*4)/17,0) * CFrame.Angles(-math.rad(15),-math.rad(50) + math.cos(tick()*4)/17,0),0.2)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1 + -math.cos(tick()*4)/17,0) * CFrame.Angles(math.rad(15),-math.rad(50) + math.cos(tick()*4)/17,0),0.2)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,math.cos(tick()*4)/17,0) * CFrame.Angles(0,math.rad(55),0),0.2)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(5),-math.rad(45),0),0.2)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.2)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
- elseif positionSpeed > 1 then
- if clickDebounce == true then repeat wait() until clickDebounce == false end
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(-math.rad(120),math.rad(45),math.rad(45)),0.2)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(45),-math.rad(170),math.rad(160) ),0.2)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.cos(tick()*6)/2,-math.rad(50),0),0.2)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.cos(tick()*6)/2,-math.rad(50),0),0.2)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(55),0),0.2)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(5),-math.rad(45),0),0.2)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(45),0,0),0.2)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
- end
- end
- end)
- --
- local lastAttack = 0
- local lastHit = ""
- function KeyPress(Key)
- if Key == Enum.KeyCode.E then
- wait()
- local t = game:GetService("RunService").Stepped:wait()
- if (t - lastAttack) > 0.7 or comboFlag2 == 2 then
- comboFlag2 = 0
- end
- if clickDebounce then return end
- clickDebounce = true
- if comboFlag2 == 0 then
- HammerSwing1:Play()
- for i = 1,15 do
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(55),-math.rad(35),math.rad(45)),0.3)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(120),-math.rad(45),-math.rad(55)),0.3)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(35),0),0.3)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,-math.rad(75),0),0.3)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
- game:GetService("RunService").Stepped:wait()
- end
- local connection1 = HammerHitBox.Touched:connect(function(hit)
- pcall(function()
- if hit.Parent == Character then return end
- if hit.Parent.Name == lastHit then return end
- debounce = true
- local human = hit.Parent:FindFirstChildOfClass("Humanoid")
- if human and debounce then
- asd = hit.Parent
- lastHit = asd.Name
- human:TakeDamage(15)
- HammerContact2:Play()
- asd:FindFirstChild("Torso").Velocity = Torso.CFrame.lookVector * 200
- end
- end)
- end)
- lastHit = ""
- wait()
- for i = 1,9 do -- move 1
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(10),-math.rad(35),math.rad(45)),0.3)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(100),math.rad(75),-math.rad(0)),0.3)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(0),0),0.3)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,math.rad(50),0),0.3)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
- game:GetService("RunService").Stepped:wait()
- end
- connection1:disconnect()
- wait(0.35)
- clickDebounce = false
- debounce = false
- comboFlag2 = comboFlag2 + 1
- lastAttack = t
- elseif comboFlag2 == 1 then
- local connection2 = HammerHitBox.Touched:connect(function(hit)
- pcall(function()
- if hit.Parent == Character then return end
- if hit.Parent.Name == lastHit then return end
- debounce = true
- local human = hit.Parent:FindFirstChildOfClass("Humanoid")
- if human and debounce then
- asd = hit.Parent
- lastHit = asd.Name
- human:TakeDamage(15)
- HammerContact2:Play()
- asd:FindFirstChild("Torso").Velocity = Torso.CFrame.lookVector * 200
- end
- end)
- end)
- for i = 1,15 do -- move 1
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(10),-math.rad(35),math.rad(45)),0.3)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(100),math.rad(75),-math.rad(0)),0.3)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(0),0),0.3)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,math.rad(50),0),0.3)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
- game:GetService("RunService").Stepped:wait()
- end
- wait()
- for i = 1,9 do
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(55),-math.rad(35),math.rad(45)),0.3)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(120),-math.rad(45),-math.rad(55)),0.3)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(35),0),0.3)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,-math.rad(75),0),0.3)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
- game:GetService("RunService").Stepped:wait()
- end
- connection2:disconnect()
- clickDebounce = false
- debounce = false
- lastAttack = t
- comboFlag2 = comboFlag2 + 1
- end
- elseif Key == Enum.KeyCode.Z then
- if hitBoxEnabled == false then
- wait(1)
- hitBoxEnabled = true
- else
- hitBoxEnabled = false
- end
- elseif Key == Enum.KeyCode.Q then
- wait()
- if clickDebounce then return end
- clickDebounce = true
- local connection1 = HammerHitBox.Touched:connect(function(hit)
- pcall(function()
- if hit.Parent == Character then return end
- if hit.Parent.Name == lastHit then return end
- debounce = true
- local human = hit.Parent:FindFirstChildOfClass("Humanoid")
- if human and debounce then
- asd = hit.Parent
- lastHit = asd.Name
- HammerContact:Play()
- asd.Parent = nil
- if asd.Parent == nil then
- Chat(asd.Name)
- end
- end
- end)
- end)
- lastHit = ""
- HammerSwing1:Play()
- for i = 1,15 do
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,1,0) * CFrame.Angles(-math.rad(190),-math.rad(0),math.rad(35)),0.3)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,1,0) * CFrame.Angles(-math.rad(190),math.rad(0),-math.rad(35)),0.3)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.3)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.3)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,-3,0) * CFrame.Angles(-math.rad(35),-math.rad(0),0),0.3)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0.5,0) * CFrame.Angles(math.rad(5),math.rad(90),math.rad(0)),0.3)
- game:GetService("RunService").Stepped:wait()
- end
- wait(0.25)
- HammerSwing2:Play()
- for i = 1,9 do -- move 1
- leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,1,0) * CFrame.Angles(-math.rad(112),math.rad(25),math.rad(35)),0.2)
- rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,1,0) * CFrame.Angles(-math.rad(112),-math.rad(25),-math.rad(35)),0.2)
- leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.2)
- rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.2)
- torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,3,0) * CFrame.Angles(math.rad(145),-math.rad(0),0),0.2)
- headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.2)
- hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(104),0,0),0.2)
- hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(60)),0.2)
- game:GetService("RunService").Stepped:wait()
- end
- connection1:disconnect()
- wait(0.35)
- clickDebounce = false
- debounce = false
- end
- end
- if InputService.KeyboardEnabled then
- function onInput(input,processed)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- KeyPress(input.KeyCode)
- end
- end
- end
- InputService.InputBegan:connect(onInput)
- InputService.InputChanged:connect(onInput)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement