Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 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 = 40
- player = game.Players.LocalPlayer
- chara = player.Character
- debby = game.Debris
- local Mouse = player:GetMouse()
- --Name Tag--
- local naeeym = Instance.new("BillboardGui",chara)
- naeeym.Size = UDim2.new(0,100,0,40)
- naeeym.StudsOffset = Vector3.new(0,2,0)
- naeeym.Adornee = chara.Head
- local tecks = Instance.new("TextLabel",naeeym)
- tecks.BackgroundTransparency = 1
- tecks.BorderSizePixel = 0
- tecks.Text = "Andre"
- tecks.Font = "Fantasy"
- tecks.FontSize = "Size24"
- tecks.TextStrokeTransparency = 0
- tecks.TextStrokeColor3 = Color3.new(0,0,0)
- tecks.TextColor3 = BrickColor.new("Neon orange").Color
- tecks.Size = UDim2.new(1,0,0.5,0)
- local htecks = Instance.new("TextLabel",naeeym)
- htecks.BackgroundTransparency = 1
- htecks.BorderSizePixel = 0
- shirt = Instance.new("Shirt", Player.Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", Player.Character)
- pants.Name = "Pants"
- Player.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
- Player.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
- for _,v in pairs(Player.Character:children()) do
- if v:IsA("Accessory") then
- v:Remove()
- end
- end
- Head.face.Texture = "rbxassetid://0"
- Player.Character["Body Colors"].HeadColor = BrickColor.new("Neon orange")
- Player.Character["Body Colors"].TorsoColor = BrickColor.new("Neon orange")
- Player.Character["Body Colors"].LeftArmColor = BrickColor.new("Neon orange")
- Player.Character["Body Colors"].RightArmColor = BrickColor.new("Neon orange")
- Player.Character["Body Colors"].LeftLegColor = BrickColor.new("Neon orange")
- Player.Character["Body Colors"].RightLegColor = BrickColor.new("Neon orange")
- Parts.Name = "Hammer"
- HammerHandle = Instance.new("Part",Parts)
- HammerHandle.Size = Vector3.new(7.7,0.25,0.25)
- HammerHandle.BrickColor = BrickColor.new("Neon orange")
- 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("Bright orange")
- 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("CGA brown")
- 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("Bright orange")
- 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("CGA brown")
- 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("Neon orange")
- 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("Neon orange")
- 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("Neon orange")
- 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("Neon orange")
- 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("CGA brown")
- 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("Bright orange")
- 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 txt = Instance.new("BillboardGui", char)
- txt.Adornee = Player.Character.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Bodoni"
- text.TextStrokeColor3 = Color3.new(255,160,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=Player.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=Player.Character.Torso.CFrame
- v.BrickColor=BrickColor.new("Neon orange")
- v.Transparency=1
- text.TextColor3 = Color3.new(255,140,0)
- v.Shape="Block"
- text.Text = "Andre"
- ]]
- -- 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