View difference between Paste ID: RRGysTvv and 5ZB4hX0c
SHOW: | | - or go back to the newest paste.
1
--[[
2
	Made by CharcterKaiser and leaked for all
3
	
4
	DO NOT claim this is yours because people around you will very much know that it is made by me.
5
--]]
6
function lerp(weld,beglerp,endlerp,speed)
7
	weld.C0 = beglerp:lerp(endlerp,speed)
8
	return weld.C0
9
end
10
11
local speed = 0.2
12
local angle = 0
13
local anglespeed = 2
14
local armspeed = 0.2
15
local armangle = 0
16
local armanglespeed = 2
17
local legspeed = 0.2
18
local legangle = 0
19
local leganglespeed = 2
20
ignore = {}
21
on = false
22
damen = true
23
enabled = true
24
dancing = false
25
goldenmode = false
26
extradamage = 0
27
combo = 1
28
Player = game.Players.LocalPlayer
29
mouse = Player:GetMouse()
30
Char = Player.Character
31
--[[if Char:FindFirstChild("Shirt") ~= nil then
32
	Char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=337323278"
33
else
34
	Instance.new("Shirt",Char).ShirtTemplate = "http://www.roblox.com/asset/?id=337323278"
35
end
36
if Char:FindFirstChild("Pants") ~= nil then
37
	Char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=367611643"
38
else
39
	Instance.new("Pants",Char).PantsTemplate = "http://www.roblox.com/asset/?id=367611643"
40
end ]]
41
for i,v in pairs(Char:GetChildren()) do
42
	if v.ClassName == "Hat" then
43
		v:Destroy()
44
	end
45
end
46
Human = Char.Humanoid
47
Human.MaxHealth = 300
48
wait(0.1)
49
Human.Health = 300
50
Sounds = {"rbxassetid://200632136","rbxassetid://360005297","rbxassetid://168586621"}
51
Head = Char.Head
52
Head.face.Texture="http://www.roblox.com/asset/?id=261138470"
53
LA = Char:findFirstChild("Left Arm")
54
RA = Char:findFirstChild("Right Arm")
55
LL = Char:findFirstChild("Left Leg")
56
RL = Char:findFirstChild("Right Leg")
57
T = Char:findFirstChild("Torso")
58
LA.BrickColor = BrickColor.new('Hot pink')
59
RA.BrickColor = BrickColor.new('Hot pink')
60
LL.BrickColor = BrickColor.new('Hot pink')
61
RL.BrickColor = BrickColor.new('Hot pink')
62
T.BrickColor = BrickColor.new('Hot pink')
63
LS = T:findFirstChild("Left Shoulder")
64
RS = T:findFirstChild("Right Shoulder")
65
LH = T:findFirstChild("Left Hip")
66
RH = T:findFirstChild("Right Hip")
67
Neck = T:findFirstChild("Neck")
68
HM = Char:findFirstChild("HumanoidRootPart")
69
RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
70
--[[local BCHat = Instance.new("Part",Char)
71
BCHat.CanCollide = false
72
BCHat.Name = "Handle"
73
BCHat.TopSurface = 0
74
BCHat.BottomSurface = 0
75
BCHat.Size = Vector3.new(2,0.8,1.2)
76
BCHat.BrickColor = BrickColor.new("Bright yellow")
77
local BCHatMesh = Instance.new("SpecialMesh",BCHat)
78
BCHatMesh.MeshId = "http://www.roblox.com/asset/?id=1073659"
79
local BCHatWeld = Instance.new("Weld",BCHat)
80
BCHatWeld.Part0 = Head
81
BCHatWeld.Part1 = BCHat
82
BCHatWeld.C0 = CFrame.new(0,0.8,-0.1) ]]
83
WLS = Instance.new("Weld", nil)
84
WLS.C0 = CFrame.new(-1.5, 0.5, 0)
85
WLS.C1 = CFrame.new(0, 0.5, 0)
86
WLS.Part0 = T
87
WLS.Part1 = LA
88
WRS = Instance.new("Weld", nil)
89
WRS.Part0 = T
90
WRS.Part1 = RA
91
WRS.C0 = CFrame.new(1.5, 0.5, 0)
92
WRS.C1 = CFrame.new(0, 0.5, 0)
93
WLH = LH
94
WRH = RH
95
WRH.Part0 = T
96
WRH.Part1 = RL
97
LSC0 = WLS.C0
98
RSC0 = WRS.C0
99
LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
100
LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
101
RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
102
RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
103
WRJ = RJ
104
RJC0 = WRJ.C0
105
RJC1 = WRJ.C1
106
NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
107
Run = game:GetService("RunService")
108
hopbin = Instance.new("HopperBin",Player.Backpack)
109
hopbin.Name = "Bob The Builder"
110
111
local Hammer = Instance.new("Part",Char)
112-
Hammer.Name = "Hammer"
112+
Hammer.Name = "Pink Guy Knife"
113
Hammer.CanCollide = false
114
Hammer.TopSurface = 0
115
Hammer.BottomSurface = 0
116
Hammer.Size = Vector3.new(1.8,0.4,3.8)
117
--Hammer.Size = Vector3.new(1,1,1)
118
local HammerMesh = Instance.new("SpecialMesh",Hammer)
119
--HammerMesh.Scale = Vector3.new(1.8,1.8,1.8)
120
HammerMesh.Scale = Vector3.new(1,1,1)
121
HammerMesh.MeshId = "http://www.roblox.com/asset/?id=121944778" --16198309"
122
HammerMesh.VertexColor = Vector3.new(100,0,0)
123
--HammerMesh.TextureId = "http://www.roblox.com/asset/?id=389538125" --16198294"
124
physicalprop = PhysicalProperties.new(0,0.3,0.5,1,1)
125
Hammer.CustomPhysicalProperties = physicalprop
126
127
HW = Instance.new("Weld",T)
128
HW.Part0 = Hammer
129
HW.Part1 = RA
130
--HW.C0 = CFrame.new(1.15,0,0) *CFrame.Angles(0,math.pi,math.pi/2)
131
HW.C0 = CFrame.new(1.15,0,0) *CFrame.Angles(90,math.pi,math.pi/2)
132
hc0 = HW.C0
133
134
Meshes={
135
	Blast="20329976",
136
	Crown="1323306",
137
	Ring="3270017",
138
	Claw="10681506",
139
	Crystal="9756362",
140
	Coil="9753878",
141
	Cloud="1095708",
142
	Skull="4770583",
143
}
144
145
function nooutlines(part)
146
	part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
147
end
148
149
function getmesh(mesh)
150
	return "rbxassetid://"..mesh
151
end
152
153
function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype)
154
	local p = Instance.new("Part", part or workspace)
155
	p.Anchored = true
156
	p.CanCollide = false
157
	p.FormFactor = Enum.FormFactor.Custom
158
	p.Material = "SmoothPlastic"
159
	p.CFrame = cframe
160
	p.BrickColor = brickcolor
161
	p.Size = Vector3.new(1,1,1)
162
	p.Transparency = trans
163
	nooutlines(p)
164
	local m = Instance.new("SpecialMesh",p)
165
	if meshtype ~= nil and meshid == nil then
166
		m.MeshType = meshtype
167
	end
168
	if meshtype == nil and meshid ~= nil then
169
		m.MeshId = getmesh(meshid)
170
	end
171
	m.Scale = size
172
	coroutine.wrap(function()
173
		for i = 0,loopwait,0.1 do
174
			p.CFrame = p.CFrame
175
			p.Transparency = p.Transparency +transincrement
176
			m.Scale = m.Scale + scaleby
177
			wait(1/60)
178
		end
179
		p:Destroy()
180
	end)()
181
	return p
182
end
183
184
PlaySound = function(part,volume,pitch,id,looped)
185
	local Sound = Instance.new("Sound", part)
186
	Sound.SoundId = id
187
	Sound.Pitch = pitch
188
	Sound.Volume = volume
189
	coroutine.wrap(function()
190
		wait()
191
		Sound:Play()
192
		if looped == nil then
193
			game.Debris:AddItem(Sound,10)
194
		end
195
	end)()
196
	if looped == true then
197
		Sound.Looped = true
198
		ThisSound = Sound
199
	end
200
end
201
202
function GetDistance(Obj,Mag)
203
	for _,v in pairs(workspace:GetChildren()) do
204
		if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Char then
205
			local Mag2 = (v.Torso.Position - Obj.Position).magnitude
206
			if Mag2 < Mag then
207
				return v
208
			end
209
		end
210
	end
211
end
212
213
ShowDmg = function(totake)
214
	local modl = Instance.new("Model", workspace)
215
	modl.Name = tostring(totake)
216
	local prt = Instance.new("Part", modl)
217
	prt.CanCollide = false
218
	prt.BrickColor = BrickColor.Red()
219
	prt.Name = "Head"
220
	prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0)
221
	prt.TopSurface = 0
222
	prt.BottomSurface = 0
223
	prt.FormFactor = 3
224
	prt.Size = Vector3.new(1, 0.2, 1)
225
	local bm = Instance.new("BlockMesh", prt)
226
	local hum = Instance.new("Humanoid", modl)
227
	hum.Health = 0
228
	hum.MaxHealth = 0
229
	hum.WalkSpeed = 0
230
	bodypos = Instance.new("BodyPosition", prt)
231
	bodypos.position = Head.Position +Vector3.new(0, 1, 0)
232
	bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
233
	game.Debris:AddItem(modl, 1)
234
	coroutine.resume(coroutine.create(function()
235
		for i = 1, 3 do
236
			bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0)
237
			Rwait()
238
		end
239
	end))
240
end
241
242
function Damage(hit,mm,knockback)
243
	if hit ~= nil and hit.Parent ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then
244
		if game.Players:FindFirstChild(hit.Parent) ~= nil and game.Players:FindFirstChild(hit.Parent).TeamColor == "Bright orange" then
245
			return
246
		end
247
		hit.Parent.Humanoid:TakeDamage(mm)
248
		if knockback ~= nil and knockback ~= 0 then
249
			local v = Instance.new("BodyVelocity",hit.Parent.Torso)
250
			v.maxForce = Vector3.new(1e4,0,1e4)
251
			v.P = 1e20
252
			v.velocity = HM.CFrame.lookVector *knockback
253
			game.Debris:AddItem(v,0.1)			
254
		end
255
		coroutine.resume(coroutine.create(function()
256
			ShowDmg(mm)
257
		end))
258
		damen = false
259
	end
260
end
261
262
function MagDamage(magnitude,part,damg,knockback,ignoretime)
263
	if ignoretime == 0 or ignoretime == nil then
264
		ignoretime = 0.5
265
	end
266
	local Body = GetDistance(part,magnitude)
267
	if Body ~= nil and Body.Humanoid and Body ~= Char and not ignore[Body] then
268
		ignore[Body] = true
269
		Body.Humanoid:TakeDamage(damg)
270
		spawn(function()
271
			ShowDmg(damg)
272
		end)
273
	    if knockback ~= nil and Body.Torso ~= nil then
274
	        local v = Instance.new("BodyVelocity",Body.Torso)
275
			v.maxForce = Vector3.new(1e4,0,1e4)
276
			v.P = 1e15
277
			v.velocity = HM.CFrame.lookVector *knockback
278
			game.Debris:AddItem(v,0.3)
279
		end
280
		coroutine.resume(coroutine.create(function()
281
			wait(ignoretime)
282
			ignore[Body] = false
283
		end))
284
	end
285
end
286
287
function Rwait(long)
288
	if long == 0 or long == nil then
289
		Run.RenderStepped:wait()
290
	else
291
		for i = 0,long do
292
			Run.RenderStepped:wait()
293
		end
294
	end
295
end
296
297
function BobTheDancer()
298
	PlaySound(Hammer,1,1,Sounds[2],true)
299
	while dancing == true do
300
		lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0.5,0) *CFrame.Angles(math.pi/1.15,0,math.sin(armangle*0.5)*0.5),armspeed)
301
		lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0.5,0) *CFrame.Angles(math.pi/1.15,0,math.sin(armangle*0.5)*0.5),armspeed)
302
		lerp(WLH,WLH.C0,LHC0,legspeed)
303
		lerp(WRH,WRH.C0,RHC0,legspeed)
304
		lerp(WRJ,WRJ.C0,RJC0,speed)
305
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/10,0,-math.sin(angle*0.5)*0.9),speed)
306
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
307
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
308
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
309
		end
310
		Rwait()
311
	end
312
end
313
314
function Slash1()
315
	for i = 1,17 do
316
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3.5),armspeed)
317
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.1,0,math.pi/8),armspeed)
318
		lerp(WLH,WLH.C0,LHC0,legspeed)
319
		lerp(WRH,WRH.C0,RHC0,legspeed)
320
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
321
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3.5),speed)
322
		lerp(HW,HW.C0,hc0,speed)
323
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
324
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
325
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
326
		end
327
		Rwait()
328
	end
329
	PlaySound(Hammer,1,1.04,Sounds[1])
330
	damen = true
331
	local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
332
	for i = 1,19 do
333
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/3.5),armspeed)
334
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/3,-math.pi/5,math.pi/5),armspeed)
335
		lerp(WLH,WLH.C0,LHC0,legspeed)
336
		lerp(WRH,WRH.C0,RHC0,legspeed)
337
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,math.pi/3.5),speed)
338
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
339
		lerp(HW,HW.C0,hc0,speed)
340
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
341
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
342
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
343
		end
344
		Rwait()
345
	end
346
	Dmgbx:disconnect()
347
	damen = false
348
end
349
350
function Slash2()
351
	for i = 1,16 do
352
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/10),armspeed)
353
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi,0,0),armspeed)
354
		lerp(WLH,WLH.C0,LHC0,legspeed)
355
		lerp(WRH,WRH.C0,RHC0,legspeed)
356
		lerp(WRJ,WRJ.C0,RJC0,speed)
357
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/3,0,0),speed)
358
		lerp(HW,HW.C0,hc0,speed)
359
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
360
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
361
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
362
		end
363
		Rwait()
364
	end
365
	PlaySound(Hammer,1,1.2,Sounds[1])
366
	damen = true
367
	local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
368
	for i = 1,17 do
369
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/6),armspeed)
370
		lerp(WRS,WRS.C0,RSC0,armspeed)
371
		lerp(WLH,WLH.C0,LHC0,legspeed)
372
		lerp(WRH,WRH.C0,RHC0,legspeed)
373
		lerp(WRJ,WRJ.C0,RJC0,speed)
374
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/3,0,0),speed)
375
		lerp(HW,HW.C0,hc0,speed)
376
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
377
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
378
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
379
		end
380
		Rwait()
381
	end
382
	Dmgbx:disconnect()
383
	damen = false
384
end
385
386
function Slash3()
387
	for i = 1,18 do
388
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,-math.pi/15),armspeed)
389
		lerp(WRS,WRS.C0,RSC0 *CFrame.new(-1.5,0,-0.5) *CFrame.Angles(0,math.pi/1.5,math.pi/2),armspeed)
390
		lerp(WLH,WLH.C0,LHC0,legspeed)
391
		lerp(WRH,WRH.C0,RHC0,legspeed)
392
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,math.pi/3),speed)
393
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3),speed)
394
		lerp(HW,HW.C0,hc0,speed)
395
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
396
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
397
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
398
		end
399
		Rwait()
400
	end
401
	PlaySound(Hammer,1,1.2,Sounds[1])
402
	damen = true
403
	local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
404
	for i = 1,20 do
405
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,-math.pi/4),armspeed)
406
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed)
407
		lerp(WLH,WLH.C0,LHC0,legspeed)
408
		lerp(WRH,WRH.C0,RHC0,legspeed)
409
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,-math.pi/3),speed)
410
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3),speed)
411
		lerp(HW,HW.C0,hc0,speed)
412
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
413
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
414
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
415
		end
416
		Rwait()
417
	end
418
	Dmgbx:disconnect()
419
	damen = false
420
end
421
422
function Slash4()
423
	for i = 1,15 do
424
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
425
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/5),armspeed)
426
		lerp(WLH,WLH.C0,LHC0,legspeed)
427
		lerp(WRH,WRH.C0,RHC0,legspeed)
428
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,1,0),speed)
429
		lerp(Neck,Neck.C0,NC0,speed)
430
		lerp(HW,HW.C0,hc0,speed)
431
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
432
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
433
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
434
		end
435
		Rwait()
436
	end
437
	PlaySound(Hammer,1,1.4,Sounds[1])
438
	damen = true
439
	local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
440
	for i = 0,1.4,0.05 do
441
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,-math.pi/3),armspeed)
442
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/2),armspeed)
443
		lerp(WLH,WLH.C0,LHC0,legspeed)
444
		lerp(WRH,WRH.C0,RHC0,legspeed)
445
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1) *CFrame.Angles(0,-math.pi/2,-math.pi*i*2),speed)
446
		lerp(Neck,Neck.C0,NC0,speed)
447
		lerp(HW,HW.C0,hc0,speed)
448
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
449
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
450
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
451
		end
452
		Rwait()
453
	end
454
	Dmgbx:disconnect()
455
	damen = false
456
end
457
458
function HammerSlam()
459
	for i = 1,20 do
460
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,0),armspeed)
461
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.02,0,0),armspeed)
462
		lerp(WLH,WLH.C0,LHC0,legspeed)
463
		lerp(WRH,WRH.C0,RHC0,legspeed)
464
		lerp(WRJ,WRJ.C0,RJC0,speed)
465
		lerp(Neck,Neck.C0,NC0,speed)
466
		lerp(HW,HW.C0,hc0,speed)
467
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
468
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
469
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
470
		end
471
		Rwait()
472
	end
473
	PlaySound(Hammer,1,0.8,Sounds[1])
474
	damen = true
475
	for i = 1,20 do
476
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,0),armspeed)
477
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/30,0,0),armspeed/2)
478
		lerp(WLH,WLH.C0,LHC0 *CFrame.new(-1,1.5,0),legspeed)
479
		lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,-math.pi/2),legspeed)
480
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-1.5),speed)
481
		lerp(Neck,Neck.C0,NC0,speed)
482
		lerp(HW,HW.C0,hc0,speed)
483
		effect(Char,BrickColor.new("Institutional white"),Vector3.new(0.5,0.5,0.5),Hammer.CFrame *CFrame.new(-0.5,0,Hammer.Size.Z/2) *CFrame.Angles(math.pi/2,0,math.pi),0,0.1,Vector3.new(0.05,0.05,0.05),1,Meshes.Blast,nil)
484
		if i == 16 then
485
			HammerTouched = Hammer.Touched:connect(function(Hit)
486
				if Hit ~= nil and Hit.Parent ~= Char then
487
					Damage(Hit,math.random(14,20)+extradamage,40)
488
				end
489
			end)
490
		end
491
		Rwait()
492
	end
493
	HammerTouched:disconnect()
494
	damen = false
495
end
496
497
function HammerSpin()
498
	for i = 1,17 do
499
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3.5),armspeed)
500
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/1.5,math.pi/2),armspeed)
501
		lerp(WLH,WLH.C0,LHC0,legspeed)
502
		lerp(WRH,WRH.C0,RHC0,legspeed)
503
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
504
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3.5),speed)
505
		lerp(HW,HW.C0,hc0,speed)
506
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
507
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
508
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
509
		end
510
		Rwait()
511
	end
512
	damen = true
513
	local spinun = 0
514
	coroutine.wrap(function()
515
		for i = 1,5 do
516
			PlaySound(Hammer,1,1.04,Sounds[1])
517
			Rwait(7)
518
		end
519
	end)()
520
	for i = 1,50 do
521
		HW.C1 = CFrame.new(0,-spinun-0.5,0)
522
		MagDamage(3,Hammer,math.random(5,10)+extradamage,30,0.3)
523
		spinun = spinun +0.5
524
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/2),armspeed)
525
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3.5),armspeed)
526
		lerp(WLH,WLH.C0,LHC0,legspeed)
527
		lerp(WRH,WRH.C0,RHC0,legspeed)
528
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,math.pi/3.5),speed)
529
		lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
530
		lerp(HW,HW.C0,CFrame.new() *CFrame.Angles(math.pi/2,0,-spinun),speed)
531
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
532
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
533
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
534
		end
535
		Rwait()
536
	end
537
	HW.C1 = CFrame.new()
538
	damen = false
539
end
540
541
function HammerWheelSpinner()
542
	for i = 1,15 do
543
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
544
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/5),armspeed)
545
		lerp(WLH,WLH.C0,LHC0,legspeed)
546
		lerp(WRH,WRH.C0,RHC0,legspeed)
547
		lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,1,0),speed)
548
		lerp(Neck,Neck.C0,NC0,speed)
549
		lerp(HW,HW.C0,hc0,speed)
550
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
551
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
552
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
553
		end
554
		Rwait()
555
	end
556
	for i = 1,3 do
557
		PlaySound(Hammer,1,1.4,Sounds[1])
558
		damen = true
559
		for i = 0,1,0.05 do
560
			lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,-math.pi/3),armspeed)
561
			lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/2),armspeed)
562
			lerp(WLH,WLH.C0,LHC0,legspeed)
563
			lerp(WRH,WRH.C0,RHC0,legspeed)
564
			lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1) *CFrame.Angles(0,-math.pi/2,-math.pi*i*2),speed)
565
			lerp(Neck,Neck.C0,NC0,speed)
566
			lerp(HW,HW.C0,hc0,speed)
567
			if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
568
				lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
569
				lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
570
			end
571
			if i >= 0.15 and i <= 0.2 then
572
				Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(7,14)+extradamage,50) end)
573
			end
574
			if i >= 0.9 and i <= 1 then
575
				damen = false
576
				Dmgbx:disconnect()
577
			end
578
			Rwait()
579
		end
580
	end
581
end
582
583
function GoldenHammerMode()
584
	for i = 1,85 do
585
		lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,0),armspeed)
586
		lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.1,0,math.pi/5),armspeed)
587
		lerp(WLH,WLH.C0,LHC0,legspeed)
588
		lerp(WRH,WRH.C0,RHC0,legspeed)
589
		lerp(WRJ,WRJ.C0,RJC0,speed)
590
		lerp(Neck,Neck.C0,NC0,speed)
591
		lerp(HW,HW.C0,hc0,speed)
592
		if i == 20 then
593
			effect(Char,BrickColor.new("Br. yellowish orange"),Vector3.new(0.5,0.5,0.5),Hammer.CFrame,0,0.1,Vector3.new(0.5,0.5,0.5),1,"16198309",nil)
594
		end
595
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
596
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
597
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
598
		end
599
		Rwait()
600
	end
601
	coroutine.wrap(function()
602
		HammerMesh.TextureId = ""
603
		Hammer.BrickColor = BrickColor.new("Br. yellowish orange")
604
		Hammer.Reflectance = 0.3
605
		extradamage = 10
606
		wait(30)
607
		goldenmode = false
608
		effect(Char,BrickColor.new("Br. yellowish orange"),Vector3.new(0.5,0.5,0.5),Hammer.CFrame,0,0.1,Vector3.new(0.5,0.5,0.5),1,"16198309",nil)
609
		HammerMesh.TextureId = "http://www.roblox.com/asset/?id=16198294"
610
		Hammer.BrickColor = BrickColor.new("Medium stone grey")
611
		Hammer.Reflectance = 0
612
		extradamage = 0
613
	end)()
614
end
615
616
function Selected()
617
	click = mouse.Button1Down:connect(function()
618
		if on == false then return end
619
		coroutine.wrap(function()
620
			Rwait(400)
621
			if combo ~= 1 and enabled == true then
622
				combo = 1
623
			end
624
		end)()
625
		if on == false then return end
626
		if combo == 1 and enabled == true then
627
			enabled = false
628
			Slash1()
629
			enabled = true
630
			combo = 2
631
		elseif combo == 2 and enabled == true then
632
			enabled = false
633
			Slash2()
634
			enabled = true
635
			combo = 3
636
		elseif combo == 3 and enabled == true then
637
			enabled = false
638
			Slash3()
639
			enabled = true
640
			combo = 4
641
		elseif combo == 4 and enabled == true then
642
			enabled = false
643
			Slash4()
644
			enabled = true
645
			combo = 1
646
		end
647
	end)
648
	keys = mouse.KeyDown:connect(function(key)
649
		key = key:lower()
650
		if enabled == false then return end
651
		if key == "f" then
652
			on = not on
653
			if on == false then
654
				enabled = false
655
				for i = 1,10 do
656
					lerp(WLS,WLS.C0,LSC0,armspeed)
657
					lerp(WRS,WRS.C0,RSC0,armspeed)
658
					lerp(WLH,WLH.C0,LHC0,legspeed)
659
					lerp(WRH,WRH.C0,RHC0,legspeed)
660
					lerp(WRJ,WRJ.C0,RJC0,speed)
661
					lerp(Neck,Neck.C0,NC0,speed)
662
				end
663
				WLS.Parent = nil
664
				WRS.Parent = nil
665
				WLH.Parent = nil
666
				WRH.Parent = nil
667
				WRJ.Parent = nil
668
				LSH.Parent = T
669
				RSH.Parent = T
670
				LHH.Parent = T
671
				RHH.Parent = T
672
				RJC.Parent = HM
673
				Neck.C0 = NC0
674
				Anim.Parent = Char
675
				Animate.Parent = Human
676
				HW.C0 = hc0
677
				Human.WalkSpeed = 16
678
				Human.JumpPower = 50
679
				wait(1)
680
				enabled = true
681
			end
682
			if on == true then
683
				enabled = false
684
				RJC = RJ:Clone()
685
				LSH = LS:Clone()
686
				RSH = RS:Clone()
687
				LHH = LH:Clone()
688
				RHH = RH:Clone()
689
				Anim = Char:FindFirstChild("Animate")
690
				if Anim ~= nil then
691
					Anim.Parent = nil
692
				end
693
				Animate = Human:FindFirstChild("Animator")
694
				if Animate ~= nil then
695
					Animate.Parent = nil
696
				end
697
				WLS.Parent = T
698
				WRS.Parent = T
699
				WLH.Parent = T
700
				WRH.Parent = T
701
				WRJ.Parent = T
702
				for i = 1,10 do
703
					lerp(WLS,WLS.C0,LSC0,armspeed)
704
					lerp(WRS,WRS.C0,RSC0,armspeed)
705
					lerp(WLH,WLH.C0,LHC0,legspeed)
706
					lerp(WRH,WRH.C0,RHC0,legspeed)
707
					lerp(WRJ,WRJ.C0,RJC0,speed)
708
					lerp(Neck,Neck.C0,NC0,speed)
709
				end
710
				Human.WalkSpeed = 25
711
				Human.JumpPower = 100
712
				enabled = true
713
			end
714
		end
715
		if key == "q" and on == true then
716
			dancing = true
717
			if dancing == true then
718
				enabled = false
719
				coroutine.wrap(function()
720
					BobTheDancer()
721
				end)()
722
			end
723
		end
724
		if key == "z" and on == true and enabled == true then
725
			enabled = false
726
			HammerSlam()
727
			enabled = true
728
		end
729
		if key == "x" and on == true and enabled == true then
730
			enabled = false
731
			HammerSpin()
732
			enabled = true
733
		end
734
		if key == "c" and on == true and enabled == true then
735
			enabled = false
736
			HammerWheelSpinner()
737
			enabled = true
738
		end
739
		if key == "v" and on == true and enabled == true and goldenmode == false then
740
			enabled = false
741
			goldenmode = true
742
			GoldenHammerMode()
743
			enabled = true
744
		end
745
	end)
746
	keysup = mouse.KeyUp:connect(function(key2)
747
		if key2 == "q" and dancing == true then
748
			dancing = false
749
			enabled = true
750
			ThisSound:Destroy()
751
		end
752
	end)
753
end
754
755
function Deselected()
756
	click:disconnect()
757
	keys:disconnect()
758
	keysup:disconnect()
759
end
760
761
hopbin.Selected:connect(Selected)
762
hopbin.Deselected:connect(Deselected)
763
764
function Cast(Pos,Dir,Amp,IgnoreList)
765
	return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList) 
766
end 
767
768
while true do
769
	surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char)
770
	Human.Health = Human.Health +0.1
771
	if on == true then
772
		angle = (angle % 100) +anglespeed/10
773
		armangle = (armangle % 100) +armanglespeed/10
774
		legangle = (legangle % 100) +leganglespeed/10
775
		if action == "Idle" and enabled == true and surface ~= nil then
776
			lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0,0.5) *CFrame.Angles(math.pi/2,math.pi/5,0),armspeed)
777
			lerp(WRS,WRS.C0,RSC0 *CFrame.new(0.1,-0.15,-0.7) *CFrame.Angles(math.pi/2,-math.pi/25+math.sin(armangle)*0.8,-math.pi/2),armspeed)
778
			lerp(WLH,WLH.C0,LHC0,legspeed)
779
			lerp(WRH,WRH.C0,RHC0,legspeed)
780
			lerp(WRJ,WRJ.C0,RJC0,speed)
781
			lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25/2)*0.25/5,0,0),speed)
782
			lerp(HW,HW.C0,hc0,speed)
783
		end
784
		if action == "Walk" and enabled == true and surface ~= nil then
785
			lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
786
			lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/4,0),armspeed)
787
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
788
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
789
			lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-HM.RotVelocity.Y/12),speed)
790
			lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,HM.RotVelocity.Y/12),speed)
791
			lerp(HW,HW.C0,hc0,speed)
792
		end
793
		if HM.Velocity.Y >= 5 and enabled == true and surface == nil then
794
			action = "Jump"
795
			lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
796
			lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
797
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed)
798
			lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed)
799
			lerp(WRJ,WRJ.C0,RJC0,speed)
800
			lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed)
801
			lerp(HW,HW.C0,hc0,speed)
802
			Rwait()
803
		end
804
		if HM.Velocity.Y <= -5 and enabled == true and surface == nil then
805
			action = "Fall"
806
			lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/3,0,0),armspeed)
807
			lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/3,0,0),armspeed)
808
			lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed)
809
			lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/4),legspeed)
810
			lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed)
811
			lerp(Neck,Neck.C0,NC0,speed)
812
			lerp(HW,HW.C0,hc0,speed)
813
			Rwait()
814
		end
815
		if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then
816
			action = "Idle"
817
		elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
818
			action = "Walk"
819
		end
820
	end
821
	Rwait()
822
end