View difference between Paste ID: QhPKV5t9 and CtpS2Ziv
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
--Converted with ttyyuu12345's model to script plugin v4
3
function sandbox(var,func)
4
	local env = getfenv(func)
5
	local newenv = setmetatable({},{
6
		__index = function(self,k)
7
			if k=="script" then
8
				return var
9
			else
10
				return env[k]
11
			end
12
		end,
13
	})
14
	setfenv(func,newenv)
15
	return func
16
end
17
cors = {}
18
mas = Instance.new("Model",game:GetService("Lighting"))
19
Tool0 = Instance.new("Tool")
20
Script1 = Instance.new("Script")
21
Part2 = Instance.new("Part")
22
Sound3 = Instance.new("Sound")
23
Sound4 = Instance.new("Sound")
24
Sound5 = Instance.new("Sound")
25
Trail6 = Instance.new("Trail")
26
SpecialMesh7 = Instance.new("SpecialMesh")
27
Sound8 = Instance.new("Sound")
28
Sound9 = Instance.new("Sound")
29
Weld10 = Instance.new("Weld")
30
Sound11 = Instance.new("Sound")
31
Tool0.Name = "Baseball Bat"
32
Tool0.Parent = mas
33
Tool0.Grip = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0)
34
Tool0.GripForward = Vector3.new(-1, -0, -0)
35
Tool0.GripPos = Vector3.new(0, 0, -1.70000005)
36
Tool0.GripRight = Vector3.new(0, 1, 0)
37
Tool0.GripUp = Vector3.new(0, 0, 1)
38
Script1.Parent = Tool0
39
table.insert(cors,sandbox(Script1,function()
40
--By Rufus14
41
canattack = true
42
cananimate = false
43
equipped = false
44
tool = script.Parent
45
handle = tool.Handle
46
equipsound = handle.Equip
47
swishsound = handle.Swoosh
48
hitsound = handle.Hit
49
goresound = handle.Ouch
50
hitsound2 = handle.Hit2
51
goresound2 = handle.Ouch2
52
owner = nil
53-
SpecialMesh7.Scale = Vector3.new(3, 3, 1.5)
53+
54
mouseclick = false
55
attacknumber = 1
56
attacktype = 0
57
count = 0
58
trail = handle.Trail
59
runservice = game:GetService("RunService")
60
--
61
tool.Activated:connect(function()
62
	mouseclick = true
63
end)
64
tool.Deactivated:connect(function()
65
	mouseclick = false
66
end)
67
--
68-
Tool0.Parent = owner.Character
68+
69-
coroutine.wrap(function()
69+
70
	local checkragd = character:findFirstChild("ragded")
71
	if not checkragd then
72
		local boolvalue = Instance.new("BoolValue", character)
73
		boolvalue.Name = "ragded"
74-
tool = Tool0
74+
75
			character.Archivable = true
76
			for i,v in pairs(character:GetChildren()) do
77
				if v.ClassName == "Sound" then
78
					v:remove()
79
				end
80
				for q,w in pairs(v:GetChildren()) do
81
					if w.ClassName == "Sound" then
82
						w:remove()
83
					end
84
				end
85
			end
86
			local ragdoll = character:Clone()
87
			for i,v in pairs(ragdoll:GetDescendants()) do
88
				if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
89
					v:destroy()
90
				end
91
			end
92
			ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
93
			ragdoll:findFirstChildOfClass("Humanoid").Health = 0
94
			if ragdoll:findFirstChild("Health") then
95
				if ragdoll:findFirstChild("Health").ClassName == "Script" then
96
					ragdoll:findFirstChild("Health").Disabled = true
97
				end
98
			end
99
			for i,v in pairs(character:GetChildren()) do
100
				if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
101
					v:destroy()
102
				end
103
			end
104
			for i,v in pairs(character:GetChildren()) do
105
				if v.ClassName == "Accessory" then
106
					local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
107
					if attachment1 then
108
						for q,w in pairs(character:GetChildren()) do
109
							if w.ClassName == "Part" then
110
								local attachment2 = w:findFirstChild(attachment1.Name)
111
								if attachment2 then
112
									local hinge = Instance.new("HingeConstraint", v.Handle)
113
									hinge.Attachment0 = attachment1
114
									hinge.Attachment1 = attachment2
115
									hinge.LimitsEnabled = true
116
									hinge.LowerAngle = 0
117
									hinge.UpperAngle = 0
118
								end
119
							end
120
						end
121
					end
122
				end
123
			end
124
			ragdoll.Parent = workspace
125
			if ragdoll:findFirstChild("Right Arm") then
126
				local glue = Instance.new("Glue", ragdoll.Torso)
127
				glue.Part0 = ragdoll.Torso
128
				glue.Part1 = ragdoll:findFirstChild("Right Arm")
129
				glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
130
				glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
131
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
132
				limbcollider.Size = Vector3.new(1.4,1,1)
133
				limbcollider.Shape = "Cylinder"
134
				limbcollider.Transparency = 1
135
				limbcollider.Name = "LimbCollider"
136
				local limbcolliderweld = Instance.new("Weld", limbcollider)
137
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
138
				limbcolliderweld.Part1 = limbcollider
139
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
140
			end
141
			if ragdoll:findFirstChild("Left Arm") then
142
				local glue = Instance.new("Glue", ragdoll.Torso)
143
				glue.Part0 = ragdoll.Torso
144
				glue.Part1 = ragdoll:findFirstChild("Left Arm")
145
				glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
146
				glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
147
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
148
				limbcollider.Size = Vector3.new(1.4,1,1)
149
				limbcollider.Shape = "Cylinder"
150
				limbcollider.Name = "LimbCollider"
151
				limbcollider.Transparency = 1
152
				local limbcolliderweld = Instance.new("Weld", limbcollider)
153
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
154
				limbcolliderweld.Part1 = limbcollider
155
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
156
			end
157
			if ragdoll:findFirstChild("Left Leg") then
158
				local glue = Instance.new("Glue", ragdoll.Torso)
159
				glue.Part0 = ragdoll.Torso
160
				glue.Part1 = ragdoll:findFirstChild("Left Leg")
161
				glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
162
				glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
163
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
164
				limbcollider.Size = Vector3.new(1.4,1,1)
165
				limbcollider.Shape = "Cylinder"
166
				limbcollider.Name = "LimbCollider"
167
				limbcollider.Transparency = 1
168
				local limbcolliderweld = Instance.new("Weld", limbcollider)
169
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
170
				limbcolliderweld.Part1 = limbcollider
171
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
172
			end
173
			if ragdoll:findFirstChild("Right Leg") then
174
				local glue = Instance.new("Glue", ragdoll.Torso)
175
				glue.Part0 = ragdoll.Torso
176
				glue.Part1 = ragdoll:findFirstChild("Right Leg")
177
				glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
178
				glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
179
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
180
				limbcollider.Size = Vector3.new(1.4,1,1)
181
				limbcollider.Shape = "Cylinder"
182
				limbcollider.Name = "LimbCollider"
183
				limbcollider.Transparency = 1
184
				local limbcolliderweld = Instance.new("Weld", limbcollider)
185
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
186
				limbcolliderweld.Part1 = limbcollider
187
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
188
			end
189
			if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
190
				local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
191
				HeadAttachment.Position = Vector3.new(0, -0.5, 0)
192
				local connection = Instance.new('HingeConstraint', ragdoll["Head"])
193
				connection.LimitsEnabled = true
194
				connection.Attachment0 = ragdoll.Torso.NeckAttachment
195
				connection.Attachment1 = HeadAttachment
196
				connection.UpperAngle = 60
197
				connection.LowerAngle = -60
198
			elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
199
				local hedweld = Instance.new("Weld", ragdoll.Torso)
200
				hedweld.Part0 = ragdoll.Torso
201
				hedweld.Part1 = ragdoll.Head
202
				hedweld.C0 = CFrame.new(0,1.5,0)
203
			end
204
			game.Debris:AddItem(ragdoll, 300)
205
			local function aaaalol()
206
				wait(0.2)
207
				local function searchforvelocity(wot)
208
					for i,v in pairs(wot:GetChildren()) do
209
						searchforvelocity(v)
210
						if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
211
							v:destroy()
212
						end
213
					end
214
				end
215
				searchforvelocity(ragdoll)
216
				wait(0.5)
217
				if ragdoll:findFirstChildOfClass("Humanoid") then
218
					ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
219
				end
220
				if ragdoll:findFirstChild("HumanoidRootPart") then
221
					ragdoll:findFirstChild("HumanoidRootPart"):destroy()
222
				end
223
			end
224
			spawn(aaaalol)
225
		elseif character:findFirstChild("UpperTorso") then
226
			character.Archivable = true
227
			for i,v in pairs(character:GetChildren()) do
228
				if v.ClassName == "Sound" then
229
					v:remove()
230
				end
231
				for q,w in pairs(v:GetChildren()) do
232
					if w.ClassName == "Sound" then
233
						w:remove()
234
					end
235
				end
236
			end
237
			local ragdoll = character:Clone()
238
			ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
239
			for i,v in pairs(ragdoll:GetDescendants()) do
240
				if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
241
					v:destroy()
242
				end
243
			end
244
			ragdoll:BreakJoints()
245
			ragdoll:findFirstChildOfClass("Humanoid").Health = 0
246
			if ragdoll:findFirstChild("Health") then
247
				if ragdoll:findFirstChild("Health").ClassName == "Script" then
248
					ragdoll:findFirstChild("Health").Disabled = true
249
				end
250
			end
251
			for i,v in pairs(character:GetChildren()) do
252
				if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
253
					v:destroy()
254
				end
255
			end
256
			for i,v in pairs(character:GetChildren()) do
257
				if v.ClassName == "Accessory" then
258
					local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
259
					if attachment1 then
260
						for q,w in pairs(character:GetChildren()) do
261
							if w.ClassName == "Part" or w.ClassName == "MeshPart" then
262
								local attachment2 = w:findFirstChild(attachment1.Name)
263
								if attachment2 then
264
									local hinge = Instance.new("HingeConstraint", v.Handle)
265
									hinge.Attachment0 = attachment1
266
									hinge.Attachment1 = attachment2
267
									hinge.LimitsEnabled = true
268
									hinge.LowerAngle = 0
269
									hinge.UpperAngle = 0
270
								end
271
							end
272
						end
273
					end
274
				end
275
			end
276
			ragdoll.Parent = workspace
277
			local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
278
			Humanoid.PlatformStand = true
279
			local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
280
				local connection = Instance.new('BallSocketConstraint', limb)
281
				connection.LimitsEnabled = true
282
				connection.Attachment0 = attachementone
283
				connection.Attachment1 = attachmenttwo
284
				connection.TwistLimitsEnabled = true
285
				connection.TwistLowerAngle = twistlower
286
				connection.TwistUpperAngle = twistupper
287
				local limbcollider = Instance.new("Part", limb)
288
				limbcollider.Size = Vector3.new(0.1,1,1)
289
				limbcollider.Shape = "Cylinder"
290
				limbcollider.Transparency = 1
291
				limbcollider:BreakJoints()
292
				local limbcolliderweld = Instance.new("Weld", limbcollider)
293
				limbcolliderweld.Part0 = limb
294
				limbcolliderweld.Part1 = limbcollider
295
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
296
			end
297
			local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
298
				local connection = Instance.new('HingeConstraint', limb)
299
				connection.LimitsEnabled = true
300
				connection.Attachment0 = attachementone
301
				connection.Attachment1 = attachmenttwo
302
				connection.LimitsEnabled = true
303
				connection.LowerAngle = lower
304
				connection.UpperAngle = upper
305
				local limbcollider = Instance.new("Part", limb)
306
				limbcollider.Size = Vector3.new(0.1,1,1)
307
				limbcollider.Shape = "Cylinder"
308
				limbcollider.Transparency = 1
309
				limbcollider:BreakJoints()
310
				local limbcolliderweld = Instance.new("Weld", limbcollider)
311
				limbcolliderweld.Part0 = limb
312
				limbcolliderweld.Part1 = limbcollider
313
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
314
			end
315
			local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
316
			HeadAttachment.Position = Vector3.new(0, -0.5, 0)
317
			if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
318
				makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
319
			end
320
			makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
321
			makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
322
			makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
323
			makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
324
			--
325
			makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
326
			makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
327
			makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
328
			--
329
			makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
330
			makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
331
			makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
332
			--
333
			makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
334
			makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
335
			makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
336
			for i,v in pairs(Humanoid.Parent:GetChildren()) do
337
				if v.ClassName == "Accessory" then
338
					local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
339
					if attachment1 then
340
						for q,w in pairs(Humanoid.Parent:GetChildren()) do
341
							if w.ClassName == "Part" then
342
								local attachment2 = w:findFirstChild(attachment1.Name)
343
								if attachment2 then
344
									local hinge = Instance.new("HingeConstraint", v.Handle)
345
									hinge.Attachment0 = attachment1
346
									hinge.Attachment1 = attachment2
347
									hinge.LimitsEnabled = true
348
									hinge.LowerAngle = 0
349
									hinge.UpperAngle = 0
350
								end
351
							end
352
						end
353
					end
354
				end
355
			end
356
			for i,v in pairs(ragdoll:GetChildren()) do
357
				for q,w in pairs(v:GetChildren()) do
358
					if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
359
						w:destroy()
360
					end
361
				end
362
			end
363
			if ragdoll:findFirstChild("HumanoidRootPart") then
364
				ragdoll.HumanoidRootPart:destroy()
365
			end
366
			if ragdoll:findFirstChildOfClass("Humanoid") then
367
				ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
368
			end
369
			local function waitfordatmoment()
370
				wait(0.2)
371
				local function searchforvelocity(wot)
372
					for i,v in pairs(wot:GetChildren()) do
373
						searchforvelocity(v)
374
						if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
375
							v:destroy()
376
						end
377
					end
378
				end
379
				searchforvelocity(ragdoll)
380
			end
381
			spawn(waitfordatmoment)
382
			game.Debris:AddItem(ragdoll, 30)
383
		end
384
	end
385
end
386
function damage(action, force, maxforce, t)
387
	for i,v in pairs(workspace:GetDescendants()) do
388
		if v.ClassName == "Model" then
389
			local head = v:findFirstChild("Head")
390
			local humanoid = v:findFirstChildOfClass("Humanoid")
391
			local torso = v:findFirstChild("Torso")
392
			local ragdolled = v:findFirstChild("ragdolledbat")
393
			if humanoid and head then
394
				if (head.Position - handle.Position).magnitude < 3 and v ~= character and humanoid.Health > 0 then
395
					if action ~= "vibe check" then
396
						if ragdolled then
397
							return
398
						end
399
					end
400
					local rightarmweld = character.Torso:findFirstChild("RightArmWeldbat")
401
					local leftarmweld = character.Torso:findFirstChild("LeftArmWeldbat")
402
					local headweld = character.Torso:findFirstChild("HeadWeldbat")
403
					local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbat")
404
					hitsound.PlaybackSpeed = 1+(math.random(-4,4)/20)
405
					hitsound:Play()
406
					hitsound2.PlaybackSpeed = 1+(math.random(-4,4)/20)
407
					hitsound2:Play()
408
					local velocity = Instance.new("BodyVelocity", head)
409
					velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
410
					velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * math.random(force,maxforce)
411
					if action == "normal" then
412
						local dmg = math.random(30,80)
413
						if humanoid.Health <= dmg then
414
							humanoid.Health = 0
415
							humanoid.Parent:BreakJoints()
416
							ragdollkill(v)
417
						else
418
							humanoid.Health = humanoid.Health - dmg
419
						end
420
					elseif action == "critical" then
421
						local dmg = math.random(70,90)
422
						if humanoid.Health <= dmg then
423
							humanoid.Health = 0
424
							humanoid.Parent:BreakJoints()
425
							ragdollkill(v)
426
						else
427
							humanoid.Health = humanoid.Health - dmg
428
						end
429
					elseif action == "vibe check" then
430
						goresound.PlaybackSpeed = 1+(math.random(-4,4)/20)
431
						goresound:Play()
432
						goresound2.PlaybackSpeed = 1+(math.random(-4,4)/20)
433
						goresound2:Play()
434
						head.Transparency = 1
435
						for i = 1,math.random(25,30) do
436
							local hedd = Instance.new("Part", workspace)
437
							hedd.Size = Vector3.new(1.25,1.25,1.25)
438
							hedd.CFrame = head.CFrame * CFrame.new(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
439
							game.Debris:AddItem(hedd, 7)
440
							if math.random(1,3) == 1 then
441
								hedd.BrickColor = head.BrickColor
442
								hedd.Material = head.Material
443
							else
444
								hedd.BrickColor = BrickColor.new("Maroon")
445
								hedd.Material = "Granite"
446
							end
447
						end
448
						for q,w in pairs(v:GetChildren()) do
449
							if w.ClassName == "Accessory" or w.ClassName == "Hat" then
450
								w:destroy()
451
							end
452
						end
453
						for q,w in pairs(head:GetChildren()) do
454
							if w.ClassName == "Weld" then
455
								if w.Part1 ~= nil then
456
									if w.Part1 ~= head then
457
										w.Part1:destroy()
458
									end
459
								end
460
							end
461
							if w.ClassName == "Decal"then
462
								w:destroy()
463
							end
464
						end
465
						humanoid.Health = 0
466
						humanoid.Parent:BreakJoints()
467-
							hedd.Size = Vector3.new(0.25,0.25,0.25)
467+
468
					end
469
					local ragdolledknife = Instance.new("BoolValue", v)
470
					ragdolledknife.Name = "ragdolledbat"
471
					humanoid.PlatformStand = true
472
					coroutine.wrap(function()
473
						wait(t)
474
						humanoid.PlatformStand = false
475
					end)()
476
					game.Debris:AddItem(ragdolledknife, t)
477
					game.Debris:AddItem(velocity, 0.2)
478
					if torso then
479
						coroutine.wrap(function()
480
							humanoid = v:WaitForChild("Humanoid")
481
							local ragdoll = v
482
							if ragdoll:findFirstChild("Right Arm") then
483
								local glue = Instance.new("Glue", ragdoll.Torso)
484
								glue.Part0 = ragdoll.Torso
485
								glue.Part1 = ragdoll:findFirstChild("Right Arm")
486
								glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
487
								glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
488
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
489
								limbcollider.Size = Vector3.new(1.4,1,1)
490
								limbcollider.Shape = "Cylinder"
491
								limbcollider.Transparency = 1
492
								limbcollider.Name = "LimbCollider"
493
								local limbcolliderweld = Instance.new("Weld", limbcollider)
494
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
495
								limbcolliderweld.Part1 = limbcollider
496
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
497
								coroutine.wrap(function()
498
									if ragdoll.Torso:findFirstChild("Right Shoulder") then
499
										local limbclone = ragdoll.Torso:findFirstChild("Right Shoulder"):Clone()
500
										ragdoll.Torso:findFirstChild("Right Shoulder"):destroy()
501
										coroutine.wrap(function()
502
											wait(t)
503
											limbclone.Parent = ragdoll.Torso
504
											limbclone.Part0 = ragdoll.Torso
505
											limbclone.Part1 = ragdoll["Right Arm"]
506
										end)()
507
									end
508
									wait(t)
509
									glue:destroy()
510
									limbcollider:destroy()
511
									limbcolliderweld:destroy()
512
								end)()
513
							end
514
							if ragdoll:findFirstChild("Left Arm") then
515
								local glue = Instance.new("Glue", ragdoll.Torso)
516
								glue.Part0 = ragdoll.Torso
517
								glue.Part1 = ragdoll:findFirstChild("Left Arm")
518
								glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
519
								glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
520
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
521
								limbcollider.Size = Vector3.new(1.4,1,1)
522
								limbcollider.Shape = "Cylinder"
523
								limbcollider.Name = "LimbCollider"
524
								limbcollider.Transparency = 1
525
								local limbcolliderweld = Instance.new("Weld", limbcollider)
526
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")			
527
								limbcolliderweld.Part1 = limbcollider
528
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
529
								coroutine.wrap(function()
530
									if ragdoll.Torso:findFirstChild("Left Shoulder") then
531
										local limbclone = ragdoll.Torso:findFirstChild("Left Shoulder"):Clone()
532
										ragdoll.Torso:findFirstChild("Left Shoulder"):destroy()
533
										coroutine.wrap(function()
534
											wait(t)
535
											limbclone.Parent = ragdoll.Torso
536
											limbclone.Part0 = ragdoll.Torso
537
											limbclone.Part1 = ragdoll["Left Arm"]
538
										end)()
539
									end
540
									wait(t)
541
									glue:destroy()
542
									limbcollider:destroy()
543
									limbcolliderweld:destroy()
544
								end)()
545
							end
546
							if ragdoll:findFirstChild("Left Leg") then
547
								local glue = Instance.new("Glue", ragdoll.Torso)
548
								glue.Part0 = ragdoll.Torso
549
								glue.Part1 = ragdoll:findFirstChild("Left Leg")
550
								glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
551
								glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
552
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
553
								limbcollider.Size = Vector3.new(1.5,1,1)
554
								limbcollider.Shape = "Cylinder"
555
								limbcollider.Name = "LimbCollider"
556
								limbcollider.Transparency = 1
557
								local limbcolliderweld = Instance.new("Weld", limbcollider)
558
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
559
								limbcolliderweld.Part1 = limbcollider
560
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
561
								coroutine.wrap(function()
562
									if ragdoll.Torso:findFirstChild("Left Hip") then
563
										local limbclone = ragdoll.Torso:findFirstChild("Left Hip"):Clone()
564
										ragdoll.Torso:findFirstChild("Left Hip"):destroy()
565
										coroutine.wrap(function()
566
											wait(t)
567
											limbclone.Parent = ragdoll.Torso
568
											limbclone.Part0 = ragdoll.Torso
569
											limbclone.Part1 = ragdoll["Left Leg"]
570
										end)()
571
									end
572
									wait(t)
573
									glue:destroy()
574
									limbcollider:destroy()
575
									limbcolliderweld:destroy()
576
								end)()
577
							end
578
							if ragdoll:findFirstChild("Right Leg") then
579
								local glue = Instance.new("Glue", ragdoll.Torso)
580
								glue.Part0 = ragdoll.Torso
581
								glue.Part1 = ragdoll:findFirstChild("Right Leg")
582
								glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
583
								glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
584
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
585
								limbcollider.Size = Vector3.new(1.5,1,1)
586
								limbcollider.Shape = "Cylinder"
587
								limbcollider.Name = "LimbCollider"
588
								limbcollider.Transparency = 1
589
								local limbcolliderweld = Instance.new("Weld", limbcollider)
590
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
591
								limbcolliderweld.Part1 = limbcollider
592
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
593
								coroutine.wrap(function()
594
									if ragdoll.Torso:findFirstChild("Right Hip") then
595
										local limbclone = ragdoll.Torso:findFirstChild("Right Hip"):Clone()
596
										ragdoll.Torso:findFirstChild("Right Hip"):destroy()
597
										coroutine.wrap(function()
598
											wait(t)
599
											limbclone.Parent = ragdoll.Torso
600
											limbclone.Part0 = ragdoll.Torso
601
											limbclone.Part1 = ragdoll["Right Leg"]
602
										end)()
603
									end
604
									wait(t)
605
									glue:destroy()
606
									limbcollider:destroy()
607
									limbcolliderweld:destroy()
608
								end)()
609
							end
610
						end)()
611
					end
612
				end
613
			end
614
		end
615
	end
616
end
617
tool.Deactivated:connect(function()
618
	if mouseclick and not cananimate then
619
		if count < 30 then
620
			cananimate = true
621
			canattack = true
622
			return
623
		end
624
		local rightarmweld = character.Torso:findFirstChild("RightArmWeldbat")
625
		local leftarmweld = character.Torso:findFirstChild("LeftArmWeldbat")
626
		local headweld = character.Torso:findFirstChild("HeadWeldbat")
627
		local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbat")
628
		if attacknumber == 1 then
629
			trail.Enabled = true
630
			swishsound.PlaybackSpeed = 1+(math.random(-4,4)/20)
631
			swishsound:Play()
632
			for i = 0,1 , 0.1 do
633
				if attacktype == 0 then
634
					damage("normal", 10,20, 2)
635
				elseif attacktype == 1 then
636
					damage("critical", 20,30, 2.5)
637
				elseif attacktype == 2 then
638
					damage("vibe check", 30,40, 1)
639
				end
640
				tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2,-(math.pi/3),0),0.1)
641
				headweld.C0 = headweld.C0:lerp(CFrame.new(9.53674316e-07, 1.49999952, 9.53674316e-07, 0.499999791, -1.49011612e-08, -0.866025269, -3.14321369e-09, 0.999999881, -1.49011612e-08, 0.866025388, -7.4505806e-09, 0.499999821),i)
642
				rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(0.27244854, 0.123777866, -0.741029739, 0.642787457, 0.719846129, 0.262002736, 1.49011612e-08, 0.342020303, -0.939692438, -0.766044378, 0.604022741, 0.219846398),i)
643
				leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-0.993065834, 0.0928759575, -0.543260574, 0.981225848, -0.183488816, 0.0593911558, 0.116977744, 0.321393728, -0.939692438, 0.153335154, 0.928998232, 0.336824),i)
644
				rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.492403746, 0.0868240669, 0.866025448, -0.173648179, 0.98480773, 0, -0.852868557, -0.150383741, 0.499999881),i)
645
				runservice.Stepped:wait()
646
			end
647
			trail.Enabled = false
648
			attacknumber = 2
649
		elseif attacknumber == 2 then
650
			trail.Enabled = true
651
			swishsound.PlaybackSpeed = 1+(math.random(-4,4)/20)
652
			swishsound:Play()
653
			for i = 0,1 , 0.1 do
654
				if attacktype == 0 then
655
					damage("normal", 10,20, 2)
656
				elseif attacktype == 1 then
657
					damage("critical", 20,30, 2.5)
658
				elseif attacktype == 2 then
659
					damage("vibe check", 30,40, 1)
660
				end
661
				tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2,(math.pi/2),0),0.1)
662
				headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 1.90734863e-06, 0.642787576, 7.4505806e-09, 0.766044378, -1.0477379e-09, 0.99999994, 1.49011612e-08, -0.766044378, 0, 0.642787576),i)
663
				rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.50000191, 0.328989983, -0.469844818, 0.99999994, 2.98023224e-08, -2.98023224e-08, 7.4505806e-09, 0.342020035, -0.939692438, 0, 0.939692378, 0.342020065),i)
664
				leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(0.314659119, 0.191040754, -1.2273407, 0.344304681, -0.926735461, -0.150383726, 0.0301536545, 0.171010002, -0.984807611, 0.938373566, 0.334539324, 0.0868240297),i)
665
				rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.633022368, -0.111618921, -0.766044259, 0.173648179, 0.98480773, 0, 0.754406333, -0.133022189, 0.642787755) * CFrame.fromEulerAnglesXYZ(0,math.rad(20),0),i)
666
				runservice.Stepped:wait()
667
			end
668
			trail.Enabled = false
669
			attacknumber = 1
670
		end
671
		cananimate = true
672
		canattack = true
673
	end
674
end)
675
tool.Activated:connect(function()
676
	if owner ~= nil and character ~= nil and canattack then
677
		cananimate = false
678
		canattack = false
679
		attacktype = 0
680
		count = 0
681
		local rightarmweld = character.Torso:findFirstChild("RightArmWeldbat")
682
		local leftarmweld = character.Torso:findFirstChild("LeftArmWeldbat")
683
		local headweld = character.Torso:findFirstChild("HeadWeldbat")
684
		local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbat")
685
		if handle:findFirstChild("AIDS") then
686
			handle.AIDS:destroy()
687
			local grip = character["Right Arm"]:WaitForChild("RightGrip")
688
			grip.Part1 = handle
689
		end
690
		for i,v in pairs(workspace:GetDescendants()) do
691
			if v.ClassName == "Model" and v ~= character then
692
				local humanoid = v:findFirstChildOfClass("Humanoid")
693
				local headepic = v:findFirstChild("Head")
694
				if humanoid and headepic then
695
					if (headepic.Position - character.HumanoidRootPart.Position).magnitude < 6 and humanoid.PlatformStand and humanoid.Health > 0 then
696
						local rightlegweld = Instance.new("Weld", character.Torso)
697
						rightlegweld.Part0 = character.Torso
698
						rightlegweld.Part1 = character["Right Leg"]
699
						rightlegweld.C0 = CFrame.new(0.5,-2,0)
700
						rightlegweld.Name = "RightLegWeldbat"
701
						local leftlegweld = Instance.new("Weld", character.Torso)
702
						leftlegweld.Part0 = character.Torso
703
						leftlegweld.Part1 = character["Left Leg"]
704
						leftlegweld.C0 = CFrame.new(-0.5,-2,0)
705
						leftlegweld.Name = "LeftLegWeldbat"
706
						character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
707
						for i = 0,1 , 0.05 do
708
							cananimate = false
709
							canattack = false
710
							character.HumanoidRootPart.CFrame = CFrame.new(character.HumanoidRootPart.Position, Vector3.new(headepic.Position.x,character.HumanoidRootPart.Position.y,headepic.Position.z))
711
							tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2,(math.pi/2)+math.rad(25),0),i)
712
							rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.681245327, -2.07163143, 0, 0.98480773, -0.173648179, -2.98023224e-08, 0.173648164, 0.984807611, 7.4505806e-09, -2.98023224e-08, 1.14149561e-08, 1),i)
713
							leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.499999046, -1.39999986, -0.399999619, 0.99999994, -7.4505806e-09, -2.98023224e-08, 1.49011612e-08, 0.999999881, 7.4505806e-09, -2.98023224e-08, 0, 1),i)
714
							rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.57790804, 0.75, 0.321748734, 0.342020154, -0.813797712, 0.469846278, -1.49011612e-08, -0.49999994, -0.866025209, 0.939692616, 0.29619813, -0.171010107),i)
715
							leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(1.41171503, 0.67853117, -0.785638809, -0.468489617, -0.76629442, 0.439670324, -0.134425014, -0.430039823, -0.892745972, 0.873182297, -0.47734493, 0.0984600335),i)
716
							rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.633021891, 0.111618839, -0.766044736, -0.173648179, 0.98480773, 0, 0.75440675, 0.133022279, 0.642787278),i)
717
							headweld.C0 = headweld.C0:lerp(CFrame.new(-0.131000042, 1.46984625, -0.109922409, 0.642787337, -0.262002826, 0.719846427, -6.98491931e-10, 0.939692497, 0.342020392, -0.766044617, -0.219846383, 0.604022503),i)
718
							runservice.Stepped:wait()
719
						end
720
						trail.Enabled = true
721
						for i = 0,1 , 0.12 do
722
							damage("vibe check", 0, 0, 1)
723
							tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0),i)
724
							rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.499998093, -1.49999964, 0.866025925, 0.99999994, -2.98023224e-08, -3.7252903e-09, -7.4505806e-09, 0.499999911, 0.866025269, 0, -0.866025448, 0.49999994),i)
725
							leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.500001907, -0.739692211, -0.657979965, 0.99999994, 0, 2.98023224e-08, -7.4505806e-09, 0.939692378, 0.342020035, 0, -0.342020184, 0.939692616),i)
726
							rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(0.569936752, 0.318357229, -1.03014803, 0.939692497, 0.342020154, 1.49011612e-08, -0.0593912005, 0.163175836, -0.984807611, -0.336824059, 0.92541647, 0.173648238),i)
727
							leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-0.429023743, 0.324180841, -0.997120857, 0.98480767, -0.173648149, 1.49011612e-08, 0.0301536694, 0.171010017, -0.984807611, 0.171010062, 0.969846368, 0.173648238),i)
728
							rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, -1.19999969, 0, 0.950535476, -0.055632934, 0.305593252, -0.0479752049, 0.945729434, 0.321393996, -0.30688861, -0.320157319, 0.896280468),i)
729
							headweld.C0 = headweld.C0:lerp(CFrame.new(-1.90734863e-06, 1.5, 0, 0.98480773, -7.4505806e-09, -0.173648179, -1.49011612e-08, 0.999999881, 0, 0.173648253, -2.98023224e-08, 0.98480773),i)
730
							runservice.Stepped:wait()
731
						end
732
						coroutine.wrap(function()
733
							for i = 0,1 ,0.07 do
734
								leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
735
								rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
736
								runservice.Stepped:wait()
737
							end
738
							leftlegweld:destroy()
739
							rightlegweld:destroy()
740
							character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
741
						end)()
742
						trail.Enabled = false
743
						cananimate = true
744
						canattack = true
745
						return
746
					end
747
				end
748
			end
749
		end
750
		if attacknumber == 1 then
751
			coroutine.wrap(function()
752
				while runservice.Stepped:wait() and mouseclick do
753
					count = count + 1
754
					if count == 50 then
755
						attacktype = 1
756
						local effect = Instance.new("Part", workspace)
757
						effect.Material = "ForceField"
758
						effect.BrickColor = BrickColor.new("Institutional white")
759
						effect.Anchored = true
760
						effect.CanCollide = false
761
						effect.CFrame = handle.CFrame
762
						effect.Size = handle.Size
763
						coroutine.wrap(function()
764
							for i = 1,40 do
765
								effect.Transparency = effect.Transparency + 0.025
766
								effect.Size = effect.Size + Vector3.new(10.02,10.02,10.02)
767
								runservice.Stepped:wait()
768
							end
769
							effect:destroy()
770
						end)()
771
					end
772
					if count == 90 then
773
						attacktype = 2
774
						local effect = Instance.new("Part", workspace)
775
						effect.Material = "ForceField"
776
						effect.BrickColor = BrickColor.new("Really red")
777
						effect.Anchored = true
778
						effect.CanCollide = false
779
						effect.CFrame = handle.CFrame
780
						effect.Size = handle.Size
781
						coroutine.wrap(function()
782
							for i = 1,40 do
783
								effect.Transparency = effect.Transparency + 0.025
784
								effect.Size = effect.Size + Vector3.new(10.02,10.02,10.02)
785
								runservice.Stepped:wait()
786
							end
787
							effect:destroy()
788
						end)()
789
					end
790
					tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2,(math.pi/2)+math.rad(25),0),0.1)
791
					headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0815873146, 1.49240327, -0.0296955109, 0.342020094, -0.163175672, 0.925416231, 1.00699253e-08, 0.984807491, 0.173647955, -0.939692616, -0.0593911149, 0.336824059),0.1)
792
					rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.336824089, 0.0593911782, -0.939692616, -0.173648149, 0.984807611, 0, 0.92541641, 0.163175896, 0.342020154) * CFrame.fromEulerAnglesXYZ(math.sin(tick())/20,0,0),0.1)
793
					leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(1.3505621, 0.950000048, -0.634313583, -0.342020035, -0.813797235, 0.469846278, -4.87780198e-08, -0.49999997, -0.866025031, 0.939692616, -0.29619804, 0.171010047) * CFrame.new(0,math.cos(tick())/20,0),0.1)
794
					rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.58705735, 0.872320414, 0.129386902, 0.607604206, -0.566511154, 0.556670189, 0.111618847, -0.633021832, -0.766044259, 0.786357343, 0.527587116, -0.321393698) * CFrame.new(0,math.cos(tick())/20,0),0.1)
795
				end
796-
								effect.Size = effect.Size + Vector3.new(0.02,0.02,0.02)
796+
797
		elseif attacknumber == 2 then
798
			coroutine.wrap(function()
799
				while runservice.Stepped:wait() and mouseclick do
800
					count = count + 1
801
					if count == 50 then
802
						attacktype = 1
803
						local effect = Instance.new("Part", workspace)
804
						effect.Material = "ForceField"
805
						effect.BrickColor = BrickColor.new("Institutional white")
806
						effect.Anchored = true
807
						effect.CanCollide = false
808
						effect.CFrame = handle.CFrame
809
						effect.Size = handle.Size
810
						coroutine.wrap(function()
811
							for i = 1,40 do
812
								effect.Transparency = effect.Transparency + 0.025
813
								effect.Size = effect.Size + Vector3.new(10.02,10.02,10.02)
814-
								effect.Size = effect.Size + Vector3.new(0.02,0.02,0.02)
814+
815
							end
816
							effect:destroy()
817
						end)()
818
					end
819
					if count == 90 then
820
						attacktype = 2
821
						local effect = Instance.new("Part", workspace)
822
						effect.Material = "ForceField"
823
						effect.BrickColor = BrickColor.new("Really red")
824
						effect.Anchored = true
825
						effect.CanCollide = false
826
						effect.CFrame = handle.CFrame
827
						effect.Size = handle.Size
828
						coroutine.wrap(function()
829
							for i = 1,40 do
830
								effect.Transparency = effect.Transparency + 0.025
831
								effect.Size = effect.Size + Vector3.new(10.02,10.02,10.02)
832
								runservice.Stepped:wait()
833
							end
834
							effect:destroy()
835
						end)()
836
					end
837
					tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2,(-math.pi/2)+math.rad(25),0),0.1)
838
					headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.342020035, 0, -0.939692378, -1.64301071e-07, 1, -5.98006906e-08, 0.939692378, 1.74845525e-07, 0.342020035),0.1)
839
					rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.173648119, 0, 0.98480767, 0, 1, 0, -0.98480767, 0, 0.173648119) * CFrame.fromEulerAnglesXYZ(math.sin(tick())/20,0,0.1),0.1)
840
					leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.69218636, 0.638716698, -0.0404472351, 0.771280289, 0.613091826, -0.171010137, 0.0593912005, -0.336824268, -0.939692497, -0.633718252, 0.714609921, -0.296198249) * CFrame.new(0,math.cos(tick())/20,0),0.1)
841
					rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(-1.2802496, 0.725742579, -0.5, -4.47034836e-08, 0.984807432, -0.173648149, 4.37113847e-08, -0.173648149, -0.984807551, -0.999999762, -2.98023224e-08, -3.35276127e-08) * CFrame.new(0,math.cos(tick())/20,0),0.1)
842
				end
843-
								effect.Size = effect.Size + Vector3.new(0.02,0.02,0.02)
843+
844
		end
845
	end
846
end)
847
--
848
tool.Equipped:connect(function()
849
	equipped = true
850
	trail.Enabled = false
851
	cananimate = true
852
	canattack = false
853
	handle.Transparency = 1
854
	owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
855
	character = owner.Character
856
	local rightarm = Instance.new("Weld", character.Torso)
857
	rightarm.Part0 = character.Torso
858
	rightarm.Part1 = character["Right Arm"]
859
	rightarm.C0 = CFrame.new(1.5,0,0)
860
	rightarm.Name = "RightArmWeldbat"
861-
								effect.Size = effect.Size + Vector3.new(0.02,0.02,0.02)
861+
862
	leftarm.Part0 = character.Torso
863
	leftarm.Part1 = character["Left Arm"]
864
	leftarm.C0 = CFrame.new(-1.5,0,0)
865
	leftarm.Name = "LeftArmWeldbat"
866
	local head = Instance.new("Weld", character.Torso)
867
	head.Part0 = character.Torso
868
	head.Part1 = character.Head
869
	head.C0 = CFrame.new(0,1.5,0)
870
	head.Name = "HeadWeldbat"
871
	local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
872
	humanoidrootpart.Part0 = character.HumanoidRootPart
873
	humanoidrootpart.Part1 = character.Torso
874
	humanoidrootpart.Name = "HumanoidRootPartWeldbat"
875
	for i = 0,1 , 0.05 do
876
		humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.fromEulerAnglesXYZ(0,math.rad(25),0),i)
877
		leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi+math.rad(10),math.rad(75),math.rad(-10)) * CFrame.new(0,-0.5,0),i)
878
		rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(10)) * CFrame.new(0,-0.5,0),i)
879
		runservice.Stepped:wait()
880
	end
881
	local grip = character["Right Arm"]:WaitForChild("RightGrip")
882
	grip.Part1 = nil
883
	local weldd = Instance.new("Weld", handle)
884
	weldd.Part0 = character["Left Arm"]
885
	weldd.Part1 = handle
886
	weldd.Name = "AIDS"
887
	weldd.C0 = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ((math.pi/2),math.rad(15),0) * CFrame.new(-0.7,0,-0.1)
888
	cananimate = true
889
	if character:findFirstChild("BatBack") then
890
		character:findFirstChild("BatBack").Transparency = 1
891
	end
892
	handle.Transparency = 0
893
	equipsound:Play()
894
	local WHEN = 0
895
	coroutine.wrap(function()
896
		while runservice.Stepped:wait() and equipped do
897
			if cananimate then
898
				if WHEN < 40 then
899
					WHEN = WHEN + 1
900
				elseif WHEN == 40 then
901
					WHEN = 41
902
					grip.Part1 = handle
903
					canattack = true
904
					weldd:destroy()
905
				end
906
				tool.Grip = tool.Grip:lerp(CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),0.1)
907
				head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),0.1)
908
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(),0.1)
909
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.4,0.5,0) * CFrame.fromEulerAnglesXYZ((math.pi/2)-math.rad(50)+math.sin(tick())/15,0,math.rad(50)) * CFrame.new(0,-0.8,0),0.1)
910
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ((math.pi/2)-math.rad(35)+math.sin(tick())/15,math.rad(20),math.rad(-40)) * CFrame.new(0,-0.8,0),0.1)
911
			end
912
		end
913
	end)()
914
end)
915
tool.Unequipped:connect(function()
916
	equipped = false
917
	mouseclick = false
918
	cananimate = false
919
	if character.Torso:findFirstChild("LeftArmWeldbat") then
920
		character.Torso:findFirstChild("LeftArmWeldbat"):destroy()
921
	end
922
	if character.Torso:findFirstChild("RightArmWeldbat") then
923
		character.Torso:findFirstChild("RightArmWeldbat"):destroy()
924
	end
925
	if character.Torso:findFirstChild("HeadWeldbat") then
926
		character.Torso:findFirstChild("HeadWeldbat"):destroy()
927
	end
928
	if character:findFirstChild("HumanoidRootPart") then
929
		if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbat") then
930
			character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbat"):destroy()
931
		end
932
	end
933
	if not character:findFirstChild("BatBack") then
934
		local clone = handle:Clone()
935
		clone:BreakJoints()
936
		for i,v in pairs(clone:GetDescendants()) do
937
			if v.ClassName ~= "SpecialMesh" and v.ClassName ~= "TouchTransmitter" then
938
				v:destroy()
939
			end
940
		end
941
		local weld = Instance.new("Weld", clone)
942
		weld.Part0 = character.Torso
943
		weld.Part1 = clone
944
		weld.C0 = CFrame.new(0,0,0.55)
945
		weld.C0 = weld.C0 * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2)
946
		weld.C0 = weld.C0 * CFrame.fromEulerAnglesXYZ(math.pi,math.rad(60)+math.pi,0)
947
		clone.Parent = character
948
		clone.Name = "BatBack"
949
	else
950
		character:findFirstChild("BatBack").Transparency = 0
951
	end
952
	handle.Transparency = 1
953
	character.BatBack:findFirstChildOfClass("SpecialMesh").TextureId = handle:findFirstChildOfClass("SpecialMesh").TextureId
954
end)
955
end))
956
Part2.Name = "Handle"
957
Part2.Parent = Tool0
958
Part2.CFrame = CFrame.new(17.4002209, 0.400134265, -10.5, 0.999999762, 0.000669842586, 5.96046235e-08, -0.000669842644, 0.99999994, -5.45696752e-11, 2.98023224e-08, -5.0977722e-11, 1)
959
Part2.Orientation = Vector3.new(0, 0, -0.0399999991)
960
Part2.Position = Vector3.new(17.4002209, 0.400134265, -10.5)
961
Part2.Rotation = Vector3.new(0, 0, -0.0399999991)
962
Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
963
Part2.Size = Vector3.new(0.400000036, 0.400000036, 4.20000076)
964
Part2.BottomSurface = Enum.SurfaceType.Smooth
965
Part2.BrickColor = BrickColor.new("Dark stone grey")
966
Part2.Reflectance = 0.40000000596046
967
Part2.TopSurface = Enum.SurfaceType.Smooth
968
Part2.brickColor = BrickColor.new("Dark stone grey")
969
Sound3.Name = "Swoosh"
970
Sound3.Parent = Part2
971
Sound3.SoundId = "rbxassetid://3755636638"
972
Sound3.Volume = 0.69999998807907
973
Sound4.Name = "Equip"
974
Sound4.Parent = Part2
975
Sound4.SoundId = "rbxassetid://769464514"
976
Sound4.Volume = 1
977
Sound5.Name = "Hit"
978
Sound5.Parent = Part2
979
Sound5.SoundId = "rbxassetid://175024455"
980
Sound5.Volume = 1
981
Trail6.Parent = Part2
982
Trail6.Attachment0 = nil
983
Trail6.Attachment1 = nil
984
Trail6.LightInfluence = 1
985-
end)()
985+
986
Trail6.Lifetime = 0.10000000149012
987
SpecialMesh7.Parent = Part2
988
SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=54983181 "
989
SpecialMesh7.Scale = Vector3.new(30, 30, 10.5)
990
SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=54983107"
991
SpecialMesh7.MeshType = Enum.MeshType.FileMesh
992
Sound8.Name = "Ouch"
993
Sound8.Parent = Part2
994
Sound8.SoundId = "rbxassetid://4306991691"
995
Sound9.Name = "Hit2"
996
Sound9.Parent = Part2
997
Sound9.SoundId = "rbxassetid://3932505023"
998
Weld10.Parent = Part2
999
Weld10.C0 = CFrame.new(-0.168119431, 0.0499998927, 1.00468445, 0.999048233, -2.04658136e-07, -0.0436189696, 2.05005165e-07, 1.00000012, 6.81211798e-09, 0.043619059, -1.5812061e-08, 0.999048233)
1000
Weld10.Part0 = Part2
1001
Sound11.Name = "Ouch2"
1002
Sound11.Parent = Part2
1003
Sound11.SoundId = "rbxassetid://4459572527"
1004
for i,v in pairs(mas:GetChildren()) do
1005
	v.Parent = owner.Character
1006
	pcall(function() v:MakeJoints() end)
1007
end
1008
mas:Destroy()
1009
for i,v in pairs(cors) do
1010
	spawn(function()
1011
		pcall(v)
1012
	end)
1013
end