View difference between Paste ID: 2LyvQGhM and CpezWusy
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2-
-- Services --
2+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end -- Services --
6
local Player = game:GetService("Players").LocalPlayer
7
local RunService = game:GetService("RunService")
8
local InputService = game:GetService("UserInputService")
9
local ChatService = game:GetService("Chat")
10
local Mouse = Player:GetMouse()
11
-- Variables -- 
12
local Character = Player.Character
13
local Torso = Character.Torso
14
local Head = Character.Head
15
local HammerHandleWeld = Character.HumanoidRootPart
16
local Humanoid = Character:FindFirstChild("Humanoid")
17
local Parts = Instance.new("Model",Character)
18
local clickDebounce = false
19
local hitBoxEnabled = false
20
local comboFlag = 0
21
local comboFlag2 = 0
22
Humanoid.WalkSpeed = 10
23
Humanoid.Health = 1000
24
Humanoid.MaxHealth = 1000
25
Humanoid.JumpPower = 0
26
Parts.Name = "Hammer"
27
-- Hammer --
28
HammerHandle = Instance.new("Part",Parts)
29
HammerHandle.Size = Vector3.new(7.7,0.25,0.25)
30
HammerHandle.BrickColor = BrickColor.new("Black")
31
HammerHandle.Anchored = false
32
HammerHandle.Locked = true
33
HammerHandle.Material = "Wood"
34
HammerHandle.CanCollide = false
35
36
HammerBlock1 = Instance.new("Part",Parts)
37
HammerBlock1.Locked = true
38
HammerBlock1.Size = Vector3.new(1.74,4.20,1.74)
39
HammerBlock1.BrickColor = BrickColor.new("Black")
40
HammerBlock1.Anchored = false
41
HammerBlock1.Material = "Neon"
42
HammerBlock1.CanCollide = false
43
HammerBlock1.Locked = true
44
45
HammerBlock2 = Instance.new("Part",Parts)
46
HammerBlock2.Size = Vector3.new(1.54,4.45,1.54)
47
HammerBlock2.BrickColor = BrickColor.new("Dark stone grey")
48
HammerBlock2.Anchored = false
49
HammerBlock2.Locked = true
50
HammerBlock2.Material = "Neon"
51
HammerBlock2.CanCollide = false
52
53
HammerBlock3 = Instance.new("Part",Parts)
54
HammerBlock3.Size = Vector3.new(2,1,2)
55
HammerBlock3.BrickColor = BrickColor.new("Dark stone grey")
56
HammerBlock3.Anchored = false
57
HammerBlock3.Locked = true
58
HammerBlock3.Material = "Neon"
59
HammerBlock3.CanCollide = false
60
61
HammerBlock4 = Instance.new("Part",Parts)
62
HammerBlock4.Size = Vector3.new(2,1,2)
63
HammerBlock4.BrickColor = BrickColor.new("Dark stone grey")
64
HammerBlock4.Anchored = false
65
HammerBlock4.Locked = true
66
HammerBlock4.Material = "Neon"
67
HammerBlock4.CanCollide = false
68
69
HammerBlock5 = Instance.new("Part",Parts)
70
HammerBlock5.Size = Vector3.new(1.9,1,1.9)
71
HammerBlock5.BrickColor = BrickColor.new("Really black")
72
HammerBlock5.Anchored = false
73
HammerBlock5.Locked = true
74
HammerBlock5.Material = "Wood"
75
HammerBlock5.CanCollide = false
76
77
HammerBlock6 = Instance.new("Part",Parts)
78
HammerBlock6.Size = Vector3.new(1.9,1,1.9)
79
HammerBlock6.BrickColor = BrickColor.new("Really black")
80
HammerBlock6.Anchored = false
81
HammerBlock6.Locked = true
82
HammerBlock6.Material = "Wood"
83
HammerBlock6.CanCollide = false
84
85
HammerBlock7 = Instance.new("Part",Parts)
86
HammerBlock7.Size = Vector3.new(2.15,0.85,2.1)
87
HammerBlock7.BrickColor = BrickColor.new("Really black")
88
HammerBlock7.Anchored = false
89
HammerBlock7.Locked = true
90
HammerBlock7.Material = "Wood"
91
HammerBlock7.CanCollide = false
92
93
HammerBlock8 = Instance.new("Part",Parts)
94
HammerBlock8.Size = Vector3.new(2.15,0.85,2.1)
95
HammerBlock8.BrickColor = BrickColor.new("Really black")
96
HammerBlock8.Anchored = false
97
HammerBlock8.Locked = true
98
HammerBlock8.Material = "Wood"
99
HammerBlock8.CanCollide = false
100
HammerHitBox = Instance.new("Part",Parts)
101
HammerHitBox.Size = Vector3.new(8.2,4.8,2.25)
102
HammerHitBox.BrickColor = BrickColor.new("Really red")
103
HammerHitBox.Transparency = 1
104
HammerHitBox.Anchored = false
105
HammerHitBox.Locked = true
106
HammerHitBox.Material = "Neon"
107
HammerHitBox.CanCollide = false
108
HammerHitBoxHandle = Instance.new("Part",Parts)
109
HammerHitBoxHandle.Size = Vector3.new(7.92,0.55,0.55)
110
HammerHitBoxHandle.BrickColor = BrickColor.new("Really red")
111
HammerHitBoxHandle.Transparency = 1
112
HammerHitBoxHandle.Anchored = false
113
HammerHitBoxHandle.Locked = true
114
HammerHitBoxHandle.Material = "Neon"
115
HammerHitBoxHandle.CanCollide = false
116
HammerSquare1 = Instance.new("Part",Parts)
117
HammerSquare1.Size = Vector3.new(0.25,0.45,0.45)
118
HammerSquare1.BrickColor = BrickColor.new("Dark stone grey")
119
HammerSquare1.Anchored = false
120
HammerSquare1.Locked = true
121
HammerSquare1.Material = "Concrete"
122
HammerSquare1.CanCollide = false
123
HammerSquare2 = Instance.new("Part",Parts)
124
HammerSquare2.Size = Vector3.new(0.25,0.45,0.45)
125
HammerSquare2.BrickColor = BrickColor.new("Dark stone grey")
126
HammerSquare2.Anchored = false
127
HammerSquare2.Locked = true
128
HammerSquare2.Material = "Concrete"
129
HammerSquare2.CanCollide = false
130
HammerSwing1 = Instance.new("Sound",HammerHitBox)
131
HammerSwing1.SoundId = "rbxassetid://145486992"
132
HammerSwing1.Volume = 1
133
HammerSwing2 = Instance.new("Sound",HammerHitBox)
134
HammerSwing2.SoundId = "rbxassetid://246930031"
135
HammerSwing2.Volume = 2
136
HammerContact = Instance.new("Sound",HammerHitBox)
137
HammerContact.SoundId = "rbxassetid://130791043"
138
HammerContact.Volume = 1
139
HammerContact2 = Instance.new("Sound",HammerHitBox)
140
HammerContact2.SoundId = "rbxassetid://146163534"
141
HammerContact2.Volume = 1
142
143
-- Welds --
144
local leftArmWeld = Instance.new("Weld",Character["Left Arm"])
145
local leftLegWeld = Instance.new("Weld",Character["Left Leg"])
146
local rightArmWeld = Instance.new("Weld",Character["Right Arm"])
147
local rightLegWeld = Instance.new("Weld",Character["Right Leg"])
148
local hammerHandleWeld = Instance.new("Weld",Character["Right Arm"])
149
local hammerBlock1Weld = Instance.new("Weld",hammerHandleWeld)
150
local hammerBlock2Weld = Instance.new("Weld",hammerHandleWeld)
151
local hammerBlock3Weld = Instance.new("Weld",hammerHandleWeld)
152
local hammerBlock4Weld = Instance.new("Weld",hammerHandleWeld)
153
local hammerBlock5Weld = Instance.new("Weld",hammerHandleWeld)
154
local hammerBlock6Weld = Instance.new("Weld",hammerHandleWeld)
155
local hammerBlock7Weld = Instance.new("Weld",hammerHandleWeld)
156
local hammerBlock8Weld = Instance.new("Weld",hammerHandleWeld)
157
local hammerHitBoxWeld = Instance.new("Weld",hammerHandleWeld)
158
local hammerHitBoxHandleWeld = Instance.new("Weld",hammerHandleWeld)
159
local HammerSquare1Weld = Instance.new("Weld",hammerHandleWeld)
160
local HammerSquare2Weld = Instance.new("Weld",hammerHandleWeld)
161
local headWeld = Instance.new("Weld",Head)
162
local torsoWeld = Instance.new("Weld",Torso)
163
-- WeldsPartC0 --
164
leftArmWeld.Part0 = Torso
165
leftArmWeld.Part1 = Character["Left Arm"]
166
leftArmWeld.C0 = CFrame.new(-1,0.5,0)
167
rightArmWeld.Part0 = Torso
168
rightArmWeld.Part1 = Character["Right Arm"]
169
rightArmWeld.C0 = CFrame.new(1,0.5,0)
170
leftLegWeld.Part0 = Torso
171
leftLegWeld.Part1 = Character["Left Leg"]
172
leftLegWeld.C0 = CFrame.new(-0.5,-1.0,0)
173
rightLegWeld.Part0 = Torso
174
rightLegWeld.Part1 = Character["Right Leg"]
175
rightLegWeld.C0 = CFrame.new(0.5,-1.0,0)
176
hammerHandleWeld.Part0 = Character["Right Arm"]
177
hammerHandleWeld.Part1 = HammerHandle
178
hammerHandleWeld.C0 = CFrame.new(0,-.90,0)
179
hammerBlock1Weld.Part0 = HammerHandle
180
hammerBlock1Weld.Part1 = HammerBlock1
181
hammerBlock1Weld.C0 = CFrame.new(-2.5,0,0)
182
hammerBlock2Weld.Part0 = HammerBlock1
183
hammerBlock2Weld.Part1 = HammerBlock2
184
hammerBlock2Weld.C0 = CFrame.new(0,0,0)
185
hammerBlock3Weld.Part0 = HammerBlock1
186
hammerBlock3Weld.Part1 = HammerBlock3
187
hammerBlock3Weld.C0 = CFrame.new(0,1.55,0)
188
hammerBlock4Weld.Part0 = HammerBlock1
189
hammerBlock4Weld.Part1 = HammerBlock4
190
hammerBlock4Weld.C0 = CFrame.new(0,-1.55,0)
191
hammerBlock5Weld.Part0 = HammerBlock1
192
hammerBlock5Weld.Part1 = HammerBlock5
193
hammerBlock5Weld.C0 = CFrame.new(0,1,0)
194
hammerBlock6Weld.Part0 = HammerBlock1
195
hammerBlock6Weld.Part1 = HammerBlock6
196
hammerBlock6Weld.C0 = CFrame.new(0,-1,0)
197
hammerBlock7Weld.Part0 = HammerBlock1
198
hammerBlock7Weld.Part1 = HammerBlock7
199
hammerBlock7Weld.C0 = CFrame.new(0,1.7,0)
200
hammerBlock8Weld.Part0 = HammerBlock1
201
hammerBlock8Weld.Part1 = HammerBlock8
202
hammerBlock8Weld.C0 = CFrame.new(0,-1.7,0)
203
hammerHitBoxWeld.Part0 = HammerBlock1
204
hammerHitBoxWeld.Part1 = HammerHitBox
205
hammerHitBoxWeld.C0 = CFrame.new(2.4,0,0)
206
hammerHitBoxHandleWeld.Part0 = HammerHandle
207
hammerHitBoxHandleWeld.Part1 = HammerHitBoxHandle
208
hammerHitBoxHandleWeld.C0 = CFrame.new(0,0,0)
209
HammerSquare1Weld.Part0 = HammerBlock1
210
HammerSquare1Weld.Part1 = HammerSquare1 
211
HammerSquare1Weld.C0 = CFrame.new(-.9,0,0)
212
HammerSquare2Weld.Part0 = HammerBlock1
213
HammerSquare2Weld.Part1 = HammerSquare2
214
HammerSquare2Weld.C0 = CFrame.new(.9,0,0)
215
torsoWeld.Part0 = HammerHandleWeld
216
torsoWeld.Part1 = Torso
217
headWeld.Part0 = Torso
218
headWeld.Part1 = Head
219
headWeld.C0 = CFrame.new(0,1,0)
220
--[[
221
local billboard = Instance.new("BillboardGui")
222
billboard.Size = UDim2.new(1,0,1,0)
223
billboard.Parent = HammerSquare1
224
billboard.AlwaysOnTop = true
225
	
226
local frame = Instance.new("Frame",billboard)
227
frame.BorderSizePixel = 0
228
frame.Transparency = 1
229
frame.Size = UDim2.new(1,0,1,0)
230
231
local image = Instance.new("TextLabel",frame)
232
image.Size = UDim2.new(1.5,0,1,0)
233
image.BorderSizePixel = 2
234
image.TextTransparency = 0
235
image.TextSize = 35
236
image.BackgroundTransparency = 1
237
image.Font = Enum.Font.SourceSansBold
238
image.TextColor3 = Color3.new(0,0,0)
239
image.TextStrokeTransparency = 0
240
image.TextStrokeColor3 = Color3.new(255,255,255)
241
]]
242
243
-- Functions --
244
local function Debris(x,y,z)
245
	wait(1)
246
	for i = 1,14 do
247
		z.TextTransparency = z.TextTransparency + 0.1
248
		z.TextStrokeTransparency = z.TextStrokeTransparency + 0.1
249
		wait()
250
	end
251
	game:GetService("Debris"):AddItem(x,y)
252
end
253
function Chat(playername,pos)
254
	local billboard = Instance.new("BillboardGui")
255
	billboard.Size = UDim2.new(1,0,1,0)
256
	billboard.Parent = HammerSquare1
257
	billboard.AlwaysOnTop = true
258
	
259
	local frame = Instance.new("Frame",billboard)
260
	frame.BorderSizePixel = 0
261
	frame.Transparency = 1
262
	frame.Size = UDim2.new(1,0,1,0)
263
264
	local image = Instance.new("TextLabel",frame)
265
	image.Size = UDim2.new(1.5,0,1,0)
266
	image.BorderSizePixel = 2
267
	image.TextTransparency = 0
268
	image.TextSize = 35
269
	image.BackgroundTransparency = 1
270
	image.Font = Enum.Font.SourceSansBold
271
	image.TextColor3 = Color3.new(0,0,0)
272
	image.TextStrokeTransparency = 0
273
	image.TextStrokeColor3 = Color3.new(255,255,255)
274
	image.Text = "[ "..playername.." ] has been nil'd."
275
	Spawn(function()
276
		Debris(billboard,1,image)
277
	
278
	end)
279
end
280
281
282
-- Walking Idle -- 
283
Spawn(function()
284
	while RunService.Stepped:Wait() do
285
		if hitBoxEnabled == true then
286
			HammerHitBox.Transparency = 0.85
287
			HammerHitBoxHandle.Transparency = 0.85
288
		else
289
			HammerHitBox.Transparency = 01
290
			HammerHitBoxHandle.Transparency = 1
291
		end
292
		local positionSpeed = (HammerHandleWeld.Velocity * Vector3.new(1,0,1)).magnitude
293
		if positionSpeed < 1 then
294
			if clickDebounce == true then repeat wait() until clickDebounce == false end
295
			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)
296
			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)
297
			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)
298
			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)
299
			torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,math.cos(tick()*4)/17,0) * CFrame.Angles(0,math.rad(55),0),0.2)
300
			headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(5),-math.rad(45),0),0.2)
301
			hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.2)
302
			hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
303
		elseif positionSpeed > 1 then
304
			if clickDebounce == true then repeat wait() until clickDebounce == false end
305
			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)
306
			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)
307
			leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.cos(tick()*6)/2,-math.rad(50),0),0.2)
308
			rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.cos(tick()*6)/2,-math.rad(50),0),0.2)
309
			torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(55),0),0.2)
310
			headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(5),-math.rad(45),0),0.2)
311
			hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(45),0,0),0.2)
312
			hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
313
		end
314
315
	end
316
end)
317
--
318
local lastAttack = 0
319
local lastHit = ""
320
function KeyPress(Key)
321
	if Key == Enum.KeyCode.E then
322
		wait()
323
		local t = game:GetService("RunService").Stepped:wait()
324
		if (t - lastAttack) > 0.7 or comboFlag2 == 2 then
325
			comboFlag2 = 0
326
		end
327
		if clickDebounce then return end
328
		clickDebounce = true
329
		if comboFlag2 == 0 then
330
			HammerSwing1:Play()
331
			for i = 1,15 do
332
				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)
333
				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)
334
				leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
335
				rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
336
				torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(35),0),0.3)
337
				headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,-math.rad(75),0),0.3)
338
				hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
339
				hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
340
				game:GetService("RunService").Stepped:wait()
341
			end
342
			local connection1 = HammerHitBox.Touched:connect(function(hit)
343
				pcall(function()
344
					if hit.Parent == Character then return end
345
					if hit.Parent.Name == lastHit then return end
346
					debounce = true
347
					local human = hit.Parent:FindFirstChildOfClass("Humanoid")
348
					if human and debounce then
349
						asd = hit.Parent
350
						lastHit = asd.Name
351
						human:TakeDamage(15)
352
						HammerContact2:Play()
353
						asd:FindFirstChild("Torso").Velocity = Torso.CFrame.lookVector * 200
354
					end
355
				end)
356
			end)
357
			lastHit = ""
358
			wait()
359
			for i = 1,9 do -- move 1
360
				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)
361
				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)
362
				leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
363
				rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
364
				torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(0),0),0.3)
365
				headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,math.rad(50),0),0.3)
366
				hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
367
				hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
368
				game:GetService("RunService").Stepped:wait()
369
			end
370
			connection1:disconnect()
371
			wait(0.35)
372
			clickDebounce = false
373
			debounce = false
374
			comboFlag2 = comboFlag2 + 1
375
			lastAttack = t
376
		elseif comboFlag2 == 1 then
377
			local connection2 = HammerHitBox.Touched:connect(function(hit)
378
				pcall(function()
379
					if hit.Parent == Character then return end
380
					if hit.Parent.Name == lastHit then return end
381
					debounce = true
382
					local human = hit.Parent:FindFirstChildOfClass("Humanoid")
383
					if human and debounce then
384
						asd = hit.Parent
385
						lastHit = asd.Name
386
						human:TakeDamage(15)
387
						HammerContact2:Play()
388
						asd:FindFirstChild("Torso").Velocity = Torso.CFrame.lookVector * 200
389
					end
390
				end)
391
			end)
392
			for i = 1,15 do -- move 1
393
				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)
394
				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)
395
				leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
396
				rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
397
				torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(0),0),0.3)
398
				headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,math.rad(50),0),0.3)
399
				hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
400
				hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
401
				game:GetService("RunService").Stepped:wait()
402
			end
403
			wait()
404
			for i = 1,9 do
405
				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)
406
				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)
407
				leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
408
				rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
409
				torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(35),0),0.3)
410
				headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,-math.rad(75),0),0.3)
411
				hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
412
				hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
413
				game:GetService("RunService").Stepped:wait()
414
			end
415
			connection2:disconnect()
416
			clickDebounce = false
417
			debounce = false
418
			lastAttack = t
419
			comboFlag2 = comboFlag2 + 1
420
		end
421
		
422
	elseif Key == Enum.KeyCode.Z then
423
		if hitBoxEnabled == false then
424
			wait(1)
425
			hitBoxEnabled = true
426
		else
427
			hitBoxEnabled = false
428
		end
429
	
430
	elseif Key == Enum.KeyCode.Q then
431
		wait()
432
		if clickDebounce then return end
433
		clickDebounce = true
434
			local connection1 = HammerHitBox.Touched:connect(function(hit)
435
				pcall(function()
436
				if hit.Parent == Character then return end
437
				if hit.Parent.Name == lastHit then return end
438
				debounce = true
439
				local human = hit.Parent:FindFirstChildOfClass("Humanoid")
440
				if human and debounce then
441
					asd = hit.Parent
442
					lastHit = asd.Name
443
					HammerContact:Play()
444
					asd.Parent = nil
445
					if asd.Parent == nil then 
446
						Chat(asd.Name)
447
					end
448
				end
449
			end)
450
		end)
451
		lastHit = ""
452
		HammerSwing1:Play()
453
		for i = 1,15 do
454
			leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,1,0) * CFrame.Angles(-math.rad(190),-math.rad(0),math.rad(35)),0.3)
455
			rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,1,0) * CFrame.Angles(-math.rad(190),math.rad(0),-math.rad(35)),0.3)
456
			leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.3)
457
			rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.3)
458
			torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,-3,0) * CFrame.Angles(-math.rad(35),-math.rad(0),0),0.3)
459
			headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
460
			hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
461
			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)
462
			game:GetService("RunService").Stepped:wait()
463
		end
464
		wait(0.25)
465
		HammerSwing2:Play()
466
		for i = 1,9 do -- move 1
467
			leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,1,0) * CFrame.Angles(-math.rad(112),math.rad(25),math.rad(35)),0.2)
468
			rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,1,0) * CFrame.Angles(-math.rad(112),-math.rad(25),-math.rad(35)),0.2)
469
			leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.2)
470
			rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.2)
471
			torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,3,0) * CFrame.Angles(math.rad(145),-math.rad(0),0),0.2)
472
			headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.2)
473
			hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(104),0,0),0.2)
474
			hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(60)),0.2)
475
			game:GetService("RunService").Stepped:wait()
476
		end	
477
		connection1:disconnect()
478
		wait(0.35)
479
		clickDebounce = false
480
		debounce = false
481
	end
482
end
483
484
if InputService.KeyboardEnabled then
485
	function onInput(input,processed)
486
		if input.UserInputType == Enum.UserInputType.Keyboard then
487
			KeyPress(input.KeyCode)
488
			
489
		end
490
	end
491
end
492
InputService.InputBegan:connect(onInput)
493
InputService.InputChanged:connect(onInput)