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