View difference between Paste ID: iqQrwxdj and zA6s7rrS
SHOW: | | - or go back to the newest paste.
1
-- Player Stuff
2-
Pleyur = game.Players:WaitForChild("NeighborlyWolfyboy01")
2+
Pleyur = game.Players:WaitForChild("JayTheLionJR")
3
Chara = Pleyur.Character
4
5
local moosik = 4 -- 1 for Hopes and Dreams, 2 for Necrofantasia, 3 for Nuclear Fusion, 
6
7
BlastQuotes = {"Readying Hikari Blast...","Prepare for your end!","I will purify your soul!"}
8
BusterQuotes = {"Preparing Hikari Buster!","Feel the wrath of Light!","This is the true power!"}
9
FinalBlastQuotes = {"NOW PERISH!","DIE!","YOU WON'T SURVIVE THIS ONE!","HIKARI BLAST!"}
10
EquipBladeQuotes = {"Hikari Blade!","I'll cut you to pieces!","You made a mistake being too close!"}
11-
SlashFireQuotes = {"DON'T GET AWAY!","SWIFT SLICE!","YOU WON'T RUN!"}
11+
SlashFireQuotes = {"HAHAHAHAHAAAAA!!!!","SWIFT SLICE!","YOU WON'T RUN!"}
12
13
function chat(string)
14
chansu = math.random(1,2)
15
if chansu == 1 then
16
ch = game:GetService("Chat"):Chat(Chara.Head, string, "Red")
17
end
18
end
19
20
Chara.Humanoid.MaxHealth = math.huge
21
Chara.Humanoid.Health = math.huge
22
Chara.Humanoid.WalkSpeed = 40
23
24
local lol = nil
25
26
if Pleyur ~= nil then
27
lol = Instance.new("Tool", Pleyur.Backpack)
28
lol.Name = "Hikari Blast"
29
lol.CanBeDropped = false
30
lol2 = Instance.new("Tool", Pleyur.Backpack)
31
lol2.Name = "Purity Blast"
32
lol2.CanBeDropped = false
33
lol3 = Instance.new("Tool", Pleyur.Backpack)
34
lol3.Name = "Hikari Blade"
35
lol3.CanBeDropped = false
36
lol3.GripForward = Vector3.new(-1, 0, 0)
37
lol3.GripPos = Vector3.new(0, 0, -2.52)
38
lol3.GripRight = Vector3.new(0, 1, 0)
39
lol3.GripUp = Vector3.new(0, 0, 1)
40
handur2 = Instance.new("Part", lol)
41
handur2.Name = "Handle"
42-
handur2.Size = Vector3.new(.2, .2, .2)
42+
handur2.Size = Vector3.new(.20, .20, .20)
43
handur2.Transparency = 1
44
handur3 = Instance.new("Part", lol2)
45
handur3.Name = "Handle"
46
handur3.Size = Vector3.new(.2, .2, .2)
47
handur3.Transparency = 1
48
handur = Instance.new("Part", lol3)
49
handur.Name = "Handle"
50
handur.Size = Vector3.new(1, 0.8, 10)
51
handur.Reflectance = 10
52
handur.BrickColor = BrickColor.new("Institutional white")
53
meshhh = Instance.new("SpecialMesh", handur)
54
meshhh.MeshType = "FileMesh"
55
meshhh.MeshId = "http://www.roblox.com/asset/?id=22771612"
56
meshhh.Scale = Vector3.new(0.5,0.5,0.8)
57
end
58
59
local transPoints = {
60
                        NumberSequenceKeypoint.new(0,.819,.0375),
61
                        NumberSequenceKeypoint.new(.207,.594,.0187),
62
                        NumberSequenceKeypoint.new(.4,.55,.031),
63
                        NumberSequenceKeypoint.new(.57,.619,.05),
64
                        NumberSequenceKeypoint.new(.76,.8,.0375),
65
                        NumberSequenceKeypoint.new(1,1,0),
66
                }
67
68
local LAEffectu = Instance.new("ParticleEmitter", Chara["Left Arm"])
69
LAEffectu.Texture = "rbxasset://textures/particles/smoke_main.dds"
70
LAEffectu.LightEmission = 1
71
LAEffectu.Enabled = false
72
LAEffectu.Rate = 100000
73
LAEffectu.EmissionDirection = "Bottom"
74
LAEffectu.Size = NumberSequence.new(1,1)
75
LAEffectu.Lifetime = NumberRange.new(.3,.3)
76
LAEffectu.RotSpeed = NumberRange.new(1000,1000)
77
LAEffectu.Speed = NumberRange.new(10,10)
78
LAEffectu.Transparency = NumberSequence.new(transPoints)
79
LAEffectu.VelocitySpread = 20
80
LAEffectu.LockedToPart = true
81
82
local Slash1 = Instance.new("Animation",script)
83
Slash1.AnimationId = "http://www.roblox.com/Asset?ID=218504594"
84
local Slash2 = Instance.new("Animation",script)
85
Slash2.AnimationId = "http://www.roblox.com/asset/?id=184573779"
86
local Slash3 = Instance.new("Animation",script)
87
Slash3.AnimationId = "http://www.roblox.com/asset/?id=186934910"
88
local Slash4 = Instance.new("Animation",script)
89
Slash4.AnimationId = "http://www.roblox.com/asset/?id=218508052"
90
local Beam = Instance.new("Animation",script)
91
Beam.AnimationId = "http://www.roblox.com/Asset?ID=86504773"
92
93
WhackAnim = Chara.Humanoid:LoadAnimation(Slash1)
94
WhackAnim2 = Chara.Humanoid:LoadAnimation(Slash2)
95
WhackAnim3 = Chara.Humanoid:LoadAnimation(Slash3)
96
WhackAnim4 = Chara.Humanoid:LoadAnimation(Slash4)
97
Beam = Chara.Humanoid:LoadAnimation(Beam)
98
99
local SwordEffect = Instance.new("ParticleEmitter", handur)
100
SwordEffect.Texture = "rbxasset://textures/particles/smoke_main.dds"
101
SwordEffect.LightEmission = 1
102
SwordEffect.Enabled = false
103
SwordEffect.Rate = 1000000
104
SwordEffect.Size = NumberSequence.new(2,2)
105
SwordEffect.Lifetime = NumberRange.new(.3,.3)
106
SwordEffect.Transparency = NumberSequence.new(transPoints)
107
SwordEffect.Speed = NumberRange.new(0,0)
108
SwordEffect.RotSpeed = NumberRange.new(1000,1000)
109
110
local chargesnd = Instance.new("Sound")
111
chargesnd.Name = "Charge"
112
chargesnd.Parent = script
113
chargesnd.SoundId = "http://www.roblox.com/asset/?id=2101137"
114
chargesnd.Volume = 1
115
chargesnd.Pitch = .5
116
117-
local shotsnd = Instance.new("Sound")
117+
local shotsnd = Instance.new ("Sound")
118
shotsnd.Name = "Shoot"
119
shotsnd.Parent = script
120
shotsnd.SoundId = "http://www.roblox.com/asset/?id=13775494"
121
shotsnd.Volume = 1
122
shotsnd.Pitch = .7
123
124
local shotsnd2 = Instance.new("Sound")
125
shotsnd2.Name = "Shoot2"
126
shotsnd2.Parent = script
127
shotsnd2.SoundId = "http://www.roblox.com/asset/?id=48618802"
128
shotsnd2.Volume = 1
129
shotsnd2.Pitch = 1
130
131
local lungesnd = Instance.new("Sound")
132
lungesnd.Name = "Lunge"
133
lungesnd.Parent = script
134
lungesnd.SoundId = "rbxasset://sounds/swordlunge.wav"
135
lungesnd.Volume = 1
136
lungesnd.Pitch = 1
137
138
local slshsnd = Instance.new("Sound")
139
slshsnd.Name = "Slash"
140
slshsnd.Parent = lol3
141
slshsnd.SoundId = "http://www.roblox.com/Asset?ID=154965962"
142
slshsnd.Volume = 1
143
slshsnd.Pitch = 1
144
145
local slshsnd2 = Instance.new("Sound")
146
slshsnd2.Name = "Slash2"
147
slshsnd2.Parent = lol3
148
slshsnd2.SoundId = "http://www.roblox.com/Asset?ID=231917758"
149
slshsnd2.Volume = 1
150
slshsnd2.Pitch = 1
151
152
local hitsnd = Instance.new("Sound")
153
hitsnd.Name = "Hit"
154
hitsnd.Parent = lol3
155
hitsnd.SoundId = "http://www.roblox.com/asset/?id=154965973"
156
hitsnd.Volume = 1
157
hitsnd.Pitch = 1
158
159
--Godly Effects, bro!-------------------------------------------------------------------------------------------------------------------------
160
161
Void = nil
162
VoidParts = {}
163
164
function RayCast(Position, Direction, MaxDistance, IgnoreList)
165
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) 
166
end
167
168
	local loopsound = Instance.new("Sound")
169
	loopsound.Name = "LoopSound"
170
	loopsound.Looped = true
171
	loopsound.Parent = script
172
	loopsound.Volume = 1
173-
	if moosik == 1 then --Hopes and Dreams	
173+
	if moosik == 1 then --Hopes and Dre+
174
ams	
175
	loopsound.SoundId = "http://www.roblox.com/asset/?id=328606227"	
176
	loopsound.Pitch = 1
177
	elseif moosik == 2 then --Necrofantasia
178
	loopsound.SoundId = "http://www.roblox.com/asset/?id=170884430"	
179
	loopsound.Pitch = .25
180
	elseif moosik == 3 then --Nuclear Fusion
181
	loopsound.SoundId = "http://www.roblox.com/asset/?id=170885892"	
182
	loopsound.Pitch = .25
183
	elseif moosik == 4 then --Victory
184
	loopsound.SoundId = "http://www.roblox.com/asset/?id=565863302"	
185
	loopsound.Pitch = 1
186
	end
187
	
188
	script.LoopSound:Play()	
189
	
190
	local startsound = Instance.new("Sound")
191
	startsound.Name = "StartUp"
192
	startsound.Parent = script
193
	startsound.SoundId = "rbxasset://Sounds/collide.wav"
194
	startsound.Volume = 0.5
195
	startsound.Pitch = 1
196
197
	local ex = Instance.new("Explosion", game.Workspace)
198
	ex.BlastPressure = 0
199
	ex.Position = Chara:FindFirstChild("Torso").Position
200
	script.StartUp:Play()
201
	Humanoid = Chara:FindFirstChild("Humanoid")
202
	Torso = Chara:FindFirstChild("Torso")
203
	if not Pleyur or not Humanoid or Humanoid.Health == 0 or not Torso then
204
		return
205
	end
206
	Equipped = true
207
	Void = Instance.new("Model")
208
	Void.Name = "Void"
209
	Angle = 0
210
	for i = 1, 1 do
211
		local VoidPart = Instance.new("Part")
212
		VoidPart.Name = "VoidPart"
213
		VoidPart.Transparency = 0.2
214
		VoidPart.BrickColor = BrickColor.new("Institutional white")
215
		VoidPart.Material = Enum.Material.Plastic
216
		VoidPart.Shape = Enum.PartType.Block
217
		VoidPart.TopSurface = Enum.SurfaceType.Smooth
218
		VoidPart.BottomSurface = Enum.SurfaceType.Smooth
219
		VoidPart.Anchored = true
220
		VoidPart.CanCollide = false
221
		VoidPart.Locked = true
222
		VoidPart.Size = Vector3.new(10, 0.2, 10)
223
		local Meshu = Instance.new("SpecialMesh", VoidPart)
224
		Meshu.MeshType = "FileMesh"
225
		Meshu.MeshId = "http://www.roblox.com/asset/?id=20329976"
226
		Meshu.Offset = Vector3.new(0,0,-1)
227
		Meshu.Scale = Vector3.new(10,4,10)
228
		VoidPart.Parent = Void
229
		local Light = Instance.new("PointLight", VoidPart)
230
		Light.Brightness = 100
231
		Light.Range = 10
232
		local Effectu = Instance.new("ParticleEmitter", VoidPart)
233
		Effectu.LightEmission = 1
234
		Effectu.Lifetime = NumberRange.new(5,5)
235
		Effectu.Transparency = NumberSequence.new(transPoints)
236
		Effectu.RotSpeed = NumberRange.new(100,100)
237
		Effectu.Speed = NumberRange.new(10,10)
238
		Effectu.LockedToPart = true
239
		table.insert(VoidParts, VoidPart)
240
	end
241
	Spawn(function()
242
		while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Chara do
243
			if Angle == 360 then
244
				Angle = 0
245
			end
246
			Angle = Angle + .25
247
			local Hit, EndPosition = RayCast(Chara.Torso.Position, Vector3.new(0, -1, 0), (Chara.Torso.Size.Y * 6.5), {Chara})
248
			if Hit then
249
				if not Void.Parent then
250
					Void.Parent = Chara
251
				end
252
				for i, v in pairs(VoidParts) do
253
					v.CFrame = CFrame.new(Chara.Torso.Position.X, EndPosition.Y, Chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
254
				end
255
			else
256
				Void.Parent = nil
257
			end
258
			wait()
259
		end
260
	end)
261
262
--Hikari Blast-------------------------------------------------------------------------------------------------------------------------
263
local r = game:service("RunService")
264
local debris = game:GetService("Debris")
265
266
sword = handur2
267
Tool = lol
268
269
local damage = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
270-
local proc = 40
270+
271
local proc = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
272
273
local lungeAnim = nil
274
275
function blowprojectile(hit)
276
	if (hit.Parent == nil) then return end -- happens when bullet hits sword
277
278
	local humanoid = nil
279
	local ceal = hit.Parent:GetChildren()
280
	for i = 1, #ceal do
281
	if ceal[i].ClassName == "Humanoid" then
282
	humanoid = ceal[i]
283
	end
284
	end
285
	local vCharacter = Tool.Parent
286
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
287
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
288
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
289
		-- final check, make sure sword is in-hand
290
hit:BreakJoints()
291
	
292
		local right_arm = vCharacter:FindFirstChild("Right Arm")
293
		if (right_arm ~= nil) then
294
			local joint = right_arm:FindFirstChild("RightGrip")
295
			if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
296
				tagHumanoid(humanoid, vPlayer)
297
				humanoid:TakeDamage(proc)
298
				local bodyp = humanoid.Parent:GetChildren()
299
				if humanoid.Health <= 1 then
300
				for i = 1, #bodyp do
301
				if bodyp[i].ClassName == "Part" then
302
				if bodyp[i]:FindFirstChild("Effecto") == nil then
303
				bodyp[i].Material = "Neon"
304
				bodyp[i].BrickColor = BrickColor.new("Institutional white")
305
				local LAE = Instance.new("ParticleEmitter", bodyp[i])
306
				LAE.Name = "Effecto"				
307
				LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
308
				LAE.LightEmission = 1
309
				LAE.Rate = 20
310
				LAE.EmissionDirection = "Bottom"
311
				LAE.Lifetime = NumberRange.new(0.3,0.3)
312
				LAE.RotSpeed = NumberRange.new(1000,1000)
313
				LAE.Speed = NumberRange.new(0,0)
314
				end
315
				end
316
				if bodyp[i].Name == "Head" then
317
				bodyp[i].Mesh:destroy()
318
				bodyp[i].face:destroy()
319
				end
320
				if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
321
				bodyp[i]:destroy()
322
				end
323
				end
324
				end
325
				local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
326
				AE.Name = "HitSwordEff"				
327
				AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
328
				AE.LightEmission = 1
329
				AE.Rate = 10000
330
				AE.EmissionDirection = "Front"
331
				AE.Lifetime = NumberRange.new(.5,.5)
332
				AE.Transparency = NumberSequence.new(transPoints)
333
				AE.RotSpeed = NumberRange.new(1000,1000)
334
				AE.Speed = NumberRange.new(50,50)
335
				AE.VelocitySpread = 100	
336
				wait(1)
337
				AE:Destroy()
338
				untagHumanoid(humanoid)
339
			end
340
		end
341
	end
342
end
343
344
function fire(v, part)
345
346
	local vCharacter = Tool.Parent
347
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
348
		
349
	local missile = Instance.new("Part")
350
351
	
352
353
	missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
354
	missile.Size = Vector3.new(1,1,1)
355
	missile.Velocity = v.unit * 100
356
	missile.BrickColor = BrickColor.new("Institutional white")
357
	missile.Material = "Neon"
358
	missile.BottomSurface = 0
359
	missile.TopSurface = 0
360
	missile.CanCollide = false
361
	missile.Elasticity = .05
362
	missile.Friction = .7
363
	missile.Name = "Bullet"
364
365
	missile.Touched:connect(blowprojectile)
366
367
	local mesh = Instance.new("SpecialMesh")
368
	mesh.MeshType = "Sphere"
369
	mesh.Parent = missile
370
	
371
	local force = Instance.new("BodyForce")
372
	force.force = Vector3.new(0,137,0)
373
	force.Parent = missile
374
	
375
	local shs = Instance.new("ParticleEmitter", missile)
376
	shs.Texture = "rbxasset://textures/particles/smoke_main.dds"
377
	shs.LightEmission = 1
378
	shs.Rate = 100000
379
	shs.EmissionDirection = "Bottom"
380
	shs.Size = NumberSequence.new(0.5,0.5)
381
	shs.Lifetime = NumberRange.new(1,1)
382
	shs.Transparency = NumberSequence.new(transPoints)
383
	shs.RotSpeed = NumberRange.new(1000,1000)
384
	shs.Speed = NumberRange.new(0,0)
385
386
--	local force = Instance.new("BodyForce")
387
--	force.Name = "BulletFloat"
388
--	force.force = Vector3.new(0,98.1,0)
389
--	force.Parent = missile
390
	
391
	debris:AddItem(missile,5)
392
	missile.Parent = game.Workspace
393
394
	shotsnd:play()
395
end
396
397
function giantfire(v, part)
398
399
	local vCharacter = Tool.Parent
400
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
401
		
402
	local missile = Instance.new("Part")
403
404
	
405
406
	missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
407
	missile.Size = Vector3.new(4,4,4)
408
	missile.Velocity = v.unit * 100
409
	missile.BrickColor = BrickColor.new("Institutional white")
410
	missile.Material = "Neon"
411
	missile.BottomSurface = 0
412
	missile.TopSurface = 0
413
	missile.CanCollide = false
414
	missile.Elasticity = .05
415
	missile.Friction = .7
416
	missile.Name = "Bullet"
417
418
	missile.Touched:connect(blowprojectile)
419
420
	local mesh = Instance.new("SpecialMesh")
421
	mesh.MeshType = "Sphere"
422
	mesh.Parent = missile
423
	
424
	local force = Instance.new("BodyForce")
425
	force.force = Vector3.new(0,9000,0)
426
	force.Parent = missile
427
	
428
	local shs = Instance.new("ParticleEmitter", missile)
429
	shs.Texture = "rbxasset://textures/particles/smoke_main.dds"
430
	shs.LightEmission = 1
431
	shs.Rate = 100000
432
	shs.EmissionDirection = "Bottom"
433
	shs.Size = NumberSequence.new(0.5,0.5)
434
	shs.Lifetime = NumberRange.new(1,1)
435
	shs.Transparency = NumberSequence.new(transPoints)
436
	shs.RotSpeed = NumberRange.new(1000,1000)
437
	shs.Speed = NumberRange.new(0,0)
438
439
--	local force = Instance.new("BodyForce")
440
--	force.Name = "BulletFloat"
441
--	force.force = Vector3.new(0,98.1,0)
442
--	force.Parent = missile
443
	
444
	debris:AddItem(missile,5)
445
	missile.Parent = game.Workspace
446
447
	shotsnd2:play()
448
end
449
450
function tagHumanoid(humanoid, player)
451
	local creator_tag = Instance.new("ObjectValue")
452
	creator_tag.Value = player
453
	creator_tag.Name = "creator"
454
	creator_tag.Parent = humanoid
455
end
456
457
function untagHumanoid(humanoid)
458
	if humanoid ~= nil then
459
		local tag = humanoid:findFirstChild("creator")
460
		if tag ~= nil then
461
			tag.Parent = nil
462
		end
463
	end
464
end
465
466
function onActivated()
467
	if Tool.Enabled then
468
469
	Tool.Enabled = false
470
471
--	local character = Chara;
472
--	local humanoid = character.Humanoid
473
--	if humanoid == nil then
474
--		print("Humanoid not found")
475
--		return 
476
--	end
477
	Beam:Play()
478
	LAEffectu.Enabled = true
479
	chargesnd:play()
480
	chat(BlastQuotes[math.random(1, #BlastQuotes)])
481
	wait(2)
482
	for i = 1, 6 do
483
	wait(0.3)
484
	fire(Chara.HumanoidRootPart.CFrame.lookVector, Chara["Left Arm"])
485
	end
486
	WhackAnim3:Play()
487
	chat(FinalBlastQuotes[math.random(1, #FinalBlastQuotes)])
488
	wait(0.6)
489
	shotsnd.Pitch = 0.5
490
	giantfire(Chara.HumanoidRootPart.CFrame.lookVector, Chara["Left Arm"])
491
	wait(0.1)
492
	shotsnd.Pitch = 0.7
493
	LAEffectu.Enabled = false
494
	WhackAnim3:Stop()
495
	end
496
	Tool.Enabled = true
497
end
498
499
500
function onEquipped()
501
	local vCharacter = Chara
502
	local humanoid = vCharacter:findFirstChild("Humanoid") 	
503
	if humanoid ~= nil then end
504
end
505
506
507
Tool.Activated:connect(onActivated)
508
Tool.Equipped:connect(onEquipped)
509
--Beam of Purity-------------------------------------------------------------------------------------------------------------------------
510
511
512
--Sword!-------------------------------------------------------------------------------------------------------------------------
513
514
-- Handle to the game service, in case we need to get the time
515
r = game:service("RunService")
516
517
-- normal damage, when the Mackerel touches a humanoid object
518
local damage = 0
519
520-
local whack_damage = 10
520+
521
local whack_damage = 19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
522
523
-- Handle to tool
524
Mackerel = lol3.Handle
525
Tool3 = lol3
526
local animstates = 1
527
528
-- When a collision is detected between the player and another character
529
function blow(hit)
530
	if hit == nil or hit.Parent == nil then return end
531
	local opponent = hit.Parent:findFirstChild("Torso")
532
	local humanoid = nil
533
	local ceal = hit.Parent:GetChildren()
534
	for i = 1, #ceal do
535
	if ceal[i].ClassName == "Humanoid" then
536
	humanoid = ceal[i]
537
	end
538
	end	
539
	local vCharacter = Tool3.Parent
540
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
541
	local myTorso = vCharacter:findFirstChild("Torso")
542
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
543
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then			
544
		-- final check, make sure Mackerel is in-hand
545
hit:BreakJoints()
546
		local right_arm = vCharacter:FindFirstChild("Right Arm")
547
		if (right_arm ~= nil) then
548
			local joint = right_arm:FindFirstChild("RightGrip")
549
			if (joint ~= nil and (joint.Part0 == Mackerel or joint.Part1 == Mackerel)) then
550
				tagHumanoid(humanoid, vPlayer)
551
				humanoid:TakeDamage(damage)				
552
				-- Add body velocity to the opponent to push him when he gets whacked				
553
--				local bodyVelocity = Instance.new("BodyVelocity")
554
--				bodyVelocity.P = 100000
555
--				bodyVelocity.maxForce = Vector3.new(bodyVelocity.P, bodyVelocity.P, bodyVelocity.P)
556
--				bodyVelocity.velocity = (opponent.Position - myTorso.Position) * 6
557
--				bodyVelocity.Parent = opponent
558
--				wait(0.5)
559
--				if bodyVelocity ~= nil then bodyVelocity:remove() end
560
				if humanoid.Health <= 1 then
561
				local bodyp = hit.Parent:GetChildren()
562
				for i = 1, #bodyp do
563
				if bodyp[i].ClassName == "Part" then
564
				if bodyp[i]:FindFirstChild("Effecto") == nil then
565
				bodyp[i].Material = "Neon"
566
				bodyp[i].BrickColor = BrickColor.new("Institutional white")
567
				local LAE = Instance.new("ParticleEmitter", bodyp[i])
568
				LAE.Name = "Effecto"				
569
				LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
570
				LAE.LightEmission = 1
571
				LAE.Rate = 20
572
				LAE.EmissionDirection = "Bottom"
573
				LAE.Lifetime = NumberRange.new(0.3,0.3)
574
				LAE.RotSpeed = NumberRange.new(1000,1000)
575
				LAE.Speed = NumberRange.new(0,0)
576
				end
577
				end
578
				if bodyp[i].Name == "Head" then
579
				bodyp[i].Mesh:destroy()
580
				bodyp[i].face:destroy()
581
				end
582
				if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
583
				bodyp[i]:destroy()
584
				end
585
				end 
586
				end
587
				Tool3:FindFirstChild("Hit"):play()
588
				local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
589
				AE.Name = "HitSwordEff"				
590
				AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
591
				AE.LightEmission = 1
592
				AE.Rate = 10000
593
				AE.EmissionDirection = "Front"
594
				AE.Lifetime = NumberRange.new(.3,.3)
595
				AE.Transparency = NumberSequence.new(transPoints)
596
				AE.RotSpeed = NumberRange.new(1000,1000)
597
				AE.Speed = NumberRange.new(50,50)
598
				AE.VelocitySpread = 100	
599
				wait(0.5)
600
				AE:Destroy()
601
				untagHumanoid(humanoid)
602
			end
603
		end
604
605
	end
606
end
607
608
function blowprojectileslash(hit)
609
	if (hit.Parent == nil) then return end -- happens when bullet hits sword
610
	local humanoid = nil
611
	local ceal = hit.Parent:GetChildren()
612
	for i = 1, #ceal do
613
	if ceal[i].ClassName == "Humanoid" then
614
	humanoid = ceal[i]
615
	end
616
	end
617
	local vCharacter = Tool3.Parent
618
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
619
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
620
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
621
		-- final check, make sure sword is in-hand
622
hit:BreakJoints()
623
	
624
--		local right_arm = vCharacter:FindFirstChild("Right Arm")
625
--		if (right_arm ~= nil) then
626
--			local joint = right_arm:FindFirstChild("RightGrip")
627
--			if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
628
				tagHumanoid(humanoid, vPlayer)
629
				humanoid:TakeDamage(100)
630
				if humanoid.Health <= 1 then
631
				local bodyp = hit.Parent:GetChildren()
632
				for i = 1, #bodyp do
633
				if bodyp[i].ClassName == "Part" then
634
				if bodyp[i]:FindFirstChild("Effecto") == nil then
635
				bodyp[i].Material = "Neon"
636
				bodyp[i].BrickColor = BrickColor.new("Institutional white")
637
				local LAE = Instance.new("ParticleEmitter", bodyp[i])
638
				LAE.Name = "Effecto"				
639
				LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
640
				LAE.LightEmission = 1
641
				LAE.Rate = 20
642
				LAE.EmissionDirection = "Bottom"
643
				LAE.Lifetime = NumberRange.new(.5,.5)
644
				LAE.Transparency = NumberSequence.new(transPoints)
645
				LAE.RotSpeed = NumberRange.new(1000,1000)
646
				LAE.Speed = NumberRange.new(0,0)
647
				end
648
				end
649
				if bodyp[i].Name == "Head" then
650
				bodyp[i].Mesh:destroy()
651
				bodyp[i].face:destroy()
652
				end
653
				if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
654
				bodyp[i]:destroy()
655
				end
656
				end
657
				end 
658
				Tool3:FindFirstChild("Hit"):play()
659
				local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
660
				AE.Name = "HitSwordEff"				
661
				AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
662
				AE.LightEmission = 1
663
				AE.Rate = 10000
664
				AE.EmissionDirection = "Front"
665
				AE.Lifetime = NumberRange.new(0.3,0.3)
666
				AE.Transparency = NumberSequence.new(transPoints)
667
				AE.RotSpeed = NumberRange.new(1000,1000)
668
				AE.Speed = NumberRange.new(50,50)
669
				AE.VelocitySpread = 100	
670
				wait(1)
671
				AE:Destroy()
672
				untagHumanoid(humanoid)
673
--			end
674
--		end
675
	end
676
end
677
678
function fireslash(v, part)
679
680
	local vCharacter = Tool3.Parent
681
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
682
		
683
	local missile = Instance.new("Part")
684
685
	
686
687
	missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
688
	missile.Size = Vector3.new(1,1,1)
689
	missile.Velocity = v.unit * 400
690
	missile.BrickColor = BrickColor.new("Institutional white")
691
	missile.Material = "Neon"
692
	missile.BottomSurface = 0
693
	missile.TopSurface = 0
694
	missile.CanCollide = false
695
	missile.Elasticity = .05
696
	missile.Friction = .7
697
	missile.Name = "Bullet"
698
699
	missile.Touched:connect(blowprojectileslash)
700
701
	local mesh = Instance.new("SpecialMesh")
702
	mesh.MeshType = "Sphere"
703
	mesh.Scale = Vector3.new(0.1,7,7)
704
	mesh.Parent = missile
705
	
706
	local force = Instance.new("BodyForce")
707
	force.force = Vector3.new(0,137,0)
708
	force.Parent = missile
709
	
710
--	local mehss = Instance.new("SpecialMesh", missile)
711
--	mehss.MeshType = "FileMesh"
712
--	mehss.MeshId = "rbxassetid://65514292"
713
--	mehss.Scale = Vector3.new(10,10,1)
714
	
715
	local shs = Instance.new("ParticleEmitter", missile)
716
	shs.Texture = "rbxasset://textures/particles/sparkles_main.dds"
717
	shs.LightEmission = 1
718
	shs.Rate = 20
719
	shs.EmissionDirection = "Bottom"
720
	shs.Size = NumberSequence.new(0.5,0.5)
721
	shs.Lifetime = NumberRange.new(1,1)
722
	shs.Transparency = NumberSequence.new(transPoints)
723
	shs.RotSpeed = NumberRange.new(1000,1000)
724
	shs.Speed = NumberRange.new(0,0)
725
726
--	local force = Instance.new("BodyForce")
727
--	force.Name = "BulletFloat"
728
--	force.force = Vector3.new(0,98.1,0)
729
--	force.Parent = missile
730
	
731
	debris:AddItem(missile,5)
732
	missile.Parent = game.Workspace
733
	
734
	slshsnd2:play()
735
	slshsnd:play()
736
	lungesnd:play()
737
end
738
739
-- Tagging and Untagging primarily for the leaderboards 
740
function tagHumanoid(humanoid, player)
741
	local creator_tag = Instance.new("ObjectValue")
742
	creator_tag.Value = player
743
	creator_tag.Name = "creator"
744
	creator_tag.Parent = humanoid
745
end
746
747
function untagHumanoid(humanoid)
748
	if humanoid ~= nil then
749
		local tag = humanoid:findFirstChild("creator")
750
		if tag ~= nil then
751
			tag.Parent = nil
752
		end
753
	end
754
end
755
756
757
 -- On, left click!
758
function attack()
759
	damage = whack_damage
760
	-- Play the sound
761
	if Tool3:FindFirstChild("Slash") and Tool3:FindFirstChild("Slash2") then Tool3:FindFirstChild("Slash"):Play() Tool3:FindFirstChild("Slash2"):Play() end
762
end
763
764
-- Tentative lock
765
Tool3.Enabled = true
766
767
function onActivated()
768
	if not Tool3.Enabled then
769
		return
770
	end
771
	Tool3.Enabled = false
772
-- Check if the handle to the Player is still available in the space
773
	local MyPlayer = Chara
774
	if MyPlayer == nil then 
775
		return 
776
	end		
777
	-- Check to see if the humanoid is still in the world
778
	local  MyHumanoid= MyPlayer:FindFirstChild("Humanoid")
779
	if MyHumanoid == nil then 
780
		return
781
	end	
782
	attack()	
783
	-- Load and play the animation
784
	SwordEffect.Enabled = true
785
	if WhackAnim and WhackAnim2 and WhackAnim3 and WhackAnim4 then
786
	if animstates == 1 then
787
	WhackAnim:Play()
788
	animstates = 2
789
	elseif animstates == 2 then
790
	WhackAnim2:Play()
791
	lol3.GripUp = Vector3.new(1,-1,1)
792
	animstates = 3
793
	elseif animstates == 3 then
794
	WhackAnim3:Play()
795
	animstates = 4
796
	elseif animstates == 4 then
797
	WhackAnim4:Play()
798
	wait(0.3)
799
	slshsnd2.Pitch = 1.2
800
	slshsnd:play()
801
	slshsnd2:play()
802
	chat(SlashFireQuotes[math.random(1, #SlashFireQuotes)])
803
	wait(0.3)
804
	fireslash(Chara.HumanoidRootPart.CFrame.lookVector, Chara.HumanoidRootPart)
805
	slshsnd2.Pitch = 1
806
	animstates = 1
807
	end
808
	end
809
	wait(0.5)	
810
	lol3.GripRight = Vector3.new(0,1,0)
811
	lol3.GripUp = Vector3.new(0,0,1)
812
	SwordEffect.Enabled = false
813
	Tool3.Enabled = true
814
	-- Reset the damage
815
	damage = 0
816
end
817
818
819
function onEquipped()		
820
	-- Remove the sound if its still playing
821
	chat(EquipBladeQuotes[math.random(1, #EquipBladeQuotes)])
822
	Tool3:FindFirstChild("Slash").Volume = 1
823
	Tool3:FindFirstChild("Slash2").Volume = 1
824
	if Tool3:FindFirstChild("Slash") and Tool3:FindFirstChild("Slash2") then Tool3:FindFirstChild("Slash"):Stop() Tool3:FindFirstChild("Slash2"):Stop() end
825
	Tool3.GripRight = Vector3.new(0, 1, 0)
826
end
827
828
function onUnequipped()
829
	-- Remove the sounds and the animations
830
	Tool3:FindFirstChild("Slash").Volume = 0
831
	Tool3:FindFirstChild("Slash2").Volume = 0	
832
	if WhackAnim and WhackAnim2 and WhackAnim3 and WhackAnim4 then WhackAnim:Stop() WhackAnim2:Stop() WhackAnim3:Stop() WhackAnim4:Stop() end	
833
	if Tool3:FindFirstChild("Slash") then Tool3:FindFirstChild("Slash"):Stop() end	
834
end
835
836
Tool3.Activated:connect(onActivated)
837
Tool3.Equipped:connect(onEquipped)
838
Tool3.Unequipped:connect(onUnequipped)
839
840
connection = Mackerel.Touched:connect(blow)
841
842
--On Death--------------------------------------------------------------------------------------------------
843
function onDeath()
844
script:Destroy()
845
end
846
847
Chara.Humanoid.Died:connect(onDeath)