View difference between Paste ID: qAK38A1K and ZiCr8jr5
SHOW: | | - or go back to the newest paste.
1
--Created by Zaroxth
2
3-
local ninja = game.Players.Zaroxth --Put your name here.
3+
local ninja = game.Players.maxisteele--Put your name here.
4
quotes = {"Although shinobis seem cowardly, we silently assassinate and hide in the shadows.","True Shinobi don't try to assassinate, they must assassinate.","Self-sacrifice, a nameless shinobi who protects peace within the shadows. That is a true shinobi.","Kill a shinobi, shame on me. Try to kill 2 shinobis, death on you."}
5
local chat = game:GetService("Chat")
6
chat:Chat(ninja.Character.Head, quotes[math.random(1,#quotes)], "Blue")
7
local ninjam = game.Workspace.Zaroxth
8
for _,v in pairs(ninjam.Head:GetChildren()) do
9
	if v:IsA("Decal") then
10
		v:Destroy()
11
	end
12
end
13
local enabled = false
14
del = false
15
form = false
16
--running = false
17
--ninjam.Humanoid.Running:connect(function()
18
--	if running == false then
19
--	running = true
20
--	local left = ninjam["Left Arm"]
21
--	local right = ninjam["Right Arm"]
22
--	left.Transparency = 1
23
--	right.Transparency = 1
24
--	local leftc = left:Clone()
25
--	leftc.Parent = ninjam
26
--	local rightc = right:Clone()
27
--	rightc.Parent = ninjam
28
--	leftc.Transparency = 0
29
--	rightc.Transparency = 0
30
--	left.CanCollide = true
31
--	right.CanCollide = true
32
--	local weldr = Instance.new("Weld",right)
33
--	local weldl = Instance.new("Weld",left)
34
--	weldr.Part0 = right
35
--	weldr.Part1 = rightc
36
--	weldl.Part0 = left
37
--	weldl.Part1 = leftc
38
--	left.Rotation = Vector3.new(-90,0,0)
39
--	right.Rotation = Vector3.new(-90,0,0)
40
--	weldr.C0 = CFrame.new(1,0,0)
41
--	weldl.C0 = CFrame.new(-1,0,0)
42
--
43
----	rightc.Rotation = Vector3.new(90,0,0)
44
----	rightc.CFrame = right.CFrame
45
----	leftc.Rotation = Vector3.new(90,0,0)
46
----	leftc.CFrame = left.CFrame
47
----	running = false
48
--	wait()
49
--	running = false
50
--	end
51
--end)
52
--Stats
53
ninjam.Humanoid.Died:connect(function()
54
	chat:Chat(ninjam.Head, "I have been defeated...","Red")
55
end)
56
function playsound()
57
	local sound = Instance.new("Sound")
58
	sound.Parent = ninjam.Torso
59
	sound.SoundId = "rbxassetid://224339308"
60
	sound.Volume = 50
61
	sound.Pitch = 3
62
	sound:Play()
63
end
64
65
--Gear
66
local katana = Instance.new("Tool")
67
katana.Name = "Katana"
68
katana.Parent = ninja.Backpack
69
katana.TextureId = "http://www.roblox.com/asset/?id=11444089"
70
katana.GripForward = Vector3.new(-1, 0, 0)
71
katana.GripPos = Vector3.new(0, 0, -1.7)
72
katana.GripRight = Vector3.new(0,1,0)
73
katana.GripUp = Vector3.new(0,0,1)
74
local handle = Instance.new("Part")
75
handle.Name = "Handle"
76
handle.Parent = katana
77
handle.Reflectance = 0.4
78
handle.Size = Vector3.new(1, 0.8, 5)
79
handle.Anchored = false
80
local mesh = Instance.new("SpecialMesh")
81
mesh.MeshId = "http://www.roblox.com/asset/?id=11442510"
82
mesh.TextureId = "http://www.roblox.com/asset/?id=11442524"
83
mesh.Scale = Vector3.new(1.7, 1.7, 1.7)
84
mesh.Parent = handle
85
86
-------- OMG HAX
87
88
r = game:service("RunService")
89
90
91
local damage = 5
92
93
94
local slash_damage = 8
95
local lunge_damage = 12
96
97
sword = katana.Handle
98
Tool = katana
99
100
101
local SlashSound = Instance.new("Sound")
102
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
103
SlashSound.Parent = sword
104
SlashSound.Volume = .7
105
106
local LungeSound = Instance.new("Sound")
107
LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
108
LungeSound.Parent = sword
109
LungeSound.Volume = .6
110
111
local UnsheathSound = Instance.new("Sound")
112
UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
113
UnsheathSound.Parent = sword
114
UnsheathSound.Volume = 1
115
116
117
function blow(hit)
118
	local humanoid = hit.Parent:findFirstChild("Humanoid")
119
	local vCharacter = Tool.Parent
120
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
121
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
122
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
123
		-- final check, make sure sword is in-hand
124
125
		local right_arm = vCharacter:FindFirstChild("Right Arm")
126
		if (right_arm ~= nil) then
127
			local joint = right_arm:FindFirstChild("RightGrip")
128
			if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
129
				tagHumanoid(humanoid, vPlayer)
130
				humanoid:TakeDamage(damage)
131
				wait(1)
132
				untagHumanoid(humanoid)
133
			end
134
		end
135
136
137
	end
138
end
139
140
141
function tagHumanoid(humanoid, player)
142
	local creator_tag = Instance.new("ObjectValue")
143
	creator_tag.Value = player
144
	creator_tag.Name = "creator"
145
	creator_tag.Parent = humanoid
146
end
147
148
function untagHumanoid(humanoid)
149
	if humanoid ~= nil then
150
		local tag = humanoid:findFirstChild("creator")
151
		if tag ~= nil then
152
			tag.Parent = nil
153
		end
154
	end
155
end
156
157
158
function attack()
159
	damage = slash_damage
160
	SlashSound:play()
161
	local anim = Instance.new("StringValue")
162
	anim.Name = "toolanim"
163
	anim.Value = "Slash"
164
	anim.Parent = Tool
165
end
166
167
function lunge()
168
	damage = lunge_damage
169
170
	LungeSound:play()
171
172
	local anim = Instance.new("StringValue")
173
	anim.Name = "toolanim"
174
	anim.Value = "Lunge"
175
	anim.Parent = Tool
176
	
177
	
178
	force = Instance.new("BodyVelocity")
179
	force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
180
	force.Parent = Tool.Parent.Torso
181
	wait(.2)
182
	swordOut()
183
	wait(.2)
184
	force.Parent = nil
185
	wait(.4)
186
	swordUp()
187
188
	damage = slash_damage
189
end
190
191
function swordUp()
192
	Tool.GripForward = Vector3.new(-1,0,0)
193
	Tool.GripRight = Vector3.new(0,1,0)
194
	Tool.GripUp = Vector3.new(0,0,1)
195
end
196
197
function swordOut()
198
	Tool.GripForward = Vector3.new(0,0,1)
199
	Tool.GripRight = Vector3.new(0,1,0)
200
	Tool.GripUp = Vector3.new(1,0,0)
201
end
202
203
function swordAcross()
204
	-- parry
205
end
206
207
208
Tool.Enabled = true
209
local last_attack = 0
210
function onActivated()
211
212
	if not Tool.Enabled then
213
		return
214
	end
215
216
	Tool.Enabled = false
217
218
	local character = Tool.Parent;
219
	local humanoid = character.Humanoid
220
	if humanoid == nil then
221
		print("Humanoid not found")
222
		return 
223
	end
224
225
	t = r.Stepped:wait()
226
227
	if (t - last_attack < .2) then
228
		lunge()
229
	else
230
		attack()
231
	end
232
233
	last_attack = t
234
235
	--wait(.5)
236
237
	Tool.Enabled = true
238
end
239
240
241
function onEquipped()
242
	UnsheathSound:play()
243
end
244
245
246
katana.Activated:connect(onActivated)
247
katana.Equipped:connect(onEquipped)
248
249
250
connection = sword.Touched:connect(blow)
251
252
253
254
--Powers
255
playerMouse = game.Players.LocalPlayer:GetMouse()
256
257
function teleport(target)
258
	print("Mouse clicked.")
259
	if target:IsA("Part") and target.Locked == false then
260
		ninjam:MoveTo(target.Position)
261
	end
262
end
263
264
local tool = Instance.new("Tool",ninja.Backpack)
265
tool.Name = "Blink"
266
tool.RequiresHandle = false
267
tool.CanBeDropped = false
268
tool.Enabled = true
269
tool.Equipped:connect(function(mouse)
270
	print("Equipped.")
271
	mouse.Button1Down:connect(function()	
272
		print("Mouse clicked.")
273
		if playerMouse.Target.Parent:IsA("Model") then
274
			ninjam:MoveTo(playerMouse.Target.Position)
275
			playsound()
276
			print(playerMouse.Target.Name)
277
		end
278
	end)
279
end)
280
281
local vanish = Instance.new("Tool",ninja.Backpack)
282
vanish.Name = "Vanish"
283
vanish.RequiresHandle = false
284
vanish.CanBeDropped = false
285
vanish.Enabled = true
286
vanish.Equipped:connect(function()
287
	print("Equipped.")
288
	playsound()
289
--	ninjam.Humanoid.MaxHealth = 999999
290
--	ninjam.Humanoid.Health = 999999
291
	ninjam.Torso.Anchored = true
292
	for i = 1,6 do
293
	wait(.1)
294
	local coroutine = coroutine.resume(coroutine.create(function()
295
		local sphere = Instance.new("Part")
296
		sphere.Parent = ninjam.Torso
297
		sphere.BrickColor = BrickColor.new("Black")
298
		sphere.Shape = "Ball"
299
		sphere.Size = Vector3.new(6,6,6)
300
		sphere.Anchored = true
301
		sphere.CanCollide = false
302
		sphere.CFrame = ninjam.Torso.CFrame
303
		sphere.Transparency = .3
304
		sphere.TopSurface = "Smooth"
305
		sphere.BottomSurface = "Smooth"
306
		for i = 1,10 do
307
			wait()
308
			sphere.Size = sphere.Size + Vector3.new(1,1,1)
309
			sphere.CFrame = ninjam.Torso.CFrame
310
		end
311
	sphere:Destroy()
312
	end))
313
	ninjam.Humanoid.WalkSpeed = 0
314
	end
315
	ninjam.Torso.Anchored = false
316
	for _,v in pairs(ninjam:GetChildren())do
317
		if v:IsA("Part") then
318
			v.Transparency = 1
319
			v.CanCollide = false
320
		elseif v:IsA("Hat") then
321
			part = v:FindFirstChild("Handle")
322
			if part then
323
				part.Transparency = 1
324
				part.CanCollide = false
325
			end
326
		end
327
	end
328
	ninjam.Humanoid.WalkSpeed = 190
329
end)
330
vanish.Unequipped:connect(function()
331
	print("Unequipped.")
332
	playsound()
333
	ninjam.Torso.Anchored = true
334
	for i = 1,6 do
335
	wait(.1)
336
	local coroutine = coroutine.resume(coroutine.create(function()
337
		local sphere = Instance.new("Part")
338
		sphere.Parent = ninjam.Torso
339
		sphere.BrickColor = BrickColor.new("Black")
340
		sphere.Shape = "Ball"
341
		sphere.Size = Vector3.new(6,6,6)
342
		sphere.Anchored = true
343
		sphere.CanCollide = false
344
		sphere.CFrame = ninjam.Torso.CFrame
345
		sphere.Transparency = .3
346
		sphere.TopSurface = "Smooth"
347
		sphere.BottomSurface = "Smooth"
348
		for i = 1,10 do
349
			wait()
350
			sphere.Size = sphere.Size + Vector3.new(1,1,1)
351
			sphere.CFrame = ninjam.Torso.CFrame
352
		end
353
	sphere:Destroy()
354
	end))
355
	ninjam.Humanoid.WalkSpeed = 0
356
	end
357
	ninjam.Torso.Anchored = false
358
	for _,v in pairs(ninjam:GetChildren())do
359
		if v:IsA("Part") then
360
			v.Transparency = 0
361
		elseif v:IsA("Hat") then
362
			part = v:FindFirstChild("Handle")
363
			if part then
364
				if part.Name ~= "HumanoidRootPart" then
365
					part.Transparency = 0
366
				end
367
			end
368
		end
369
	end
370
	ninjam.Humanoid.WalkSpeed = 16
371
end)
372
--Commands
373
ninja.Chatted:connect(function(msg)
374
	if msg:lower() == "kunai scatter" then
375
		chat:Chat(ninjam.Head,"Kunai Scatter!","Green")
376
		for i = 1,260 do
377
			local kunai = Instance.new("Part")
378
			kunai.Name = "Kunai"
379
			kunai.Anchored = true
380
			kunai.Parent = game.Workspace
381
			kunai.CFrame = game.Workspace.Base.CFrame + Vector3.new(math.random(-410,410),29.25,math.random(-410,410))
382
			kunai.Size = Vector3.new(1.2, 3.23, 13.35)
383
			kunai.Rotation = Vector3.new(-90, 0, math.random(-180,180))
384
			handle.Transparency = 1
385
			local mesh = Instance.new("SpecialMesh")
386
			mesh.Parent = kunai
387
			mesh.Scale = Vector3.new(10,10,10)
388
			mesh.MeshId = "http://www.roblox.com/asset/?id=45728702"
389
			mesh.TextureId = "http://www.roblox.com/asset/?id=45728877"
390
			local coro = coroutine.resume(coroutine.create(function()
391
				wait(2)
392
				for i = 1,6 do
393
					wait()
394
					kunai.Rotation = kunai.Rotation + Vector3.new(0,0,60)
395
					wait()
396
					kunai.CFrame = kunai.CFrame - Vector3.new(0,4,0)
397
				end
398
				kunai.CFrame = kunai.CFrame - Vector3.new(0,5,0)
399
			end))
400
		end
401
	end
402
	if msg:lower() == "kunai auei" then
403
		chat:Chat(ninjam.Head,"Kunai Auei!","Green")
404
		for _,v in pairs(game.Workspace:GetChildren())do
405
			if v:IsA("Part") and v.Name == "Kunai" then
406
				local coro = coroutine.resume(coroutine.create(function()
407
				local sphere = Instance.new("Part")
408
				sphere.Parent = v
409
				sphere.BrickColor = BrickColor.new("Black")
410
				sphere.Shape = "Ball"
411
				sphere.Size = Vector3.new(6,6,6)
412
				sphere.Anchored = true
413
				sphere.CanCollide = false
414
				sphere.CFrame = v.CFrame
415
				sphere.TopSurface = "Smooth"
416
				sphere.BottomSurface = "Smooth"
417
				for i = 1,10 do
418
					wait()
419
					sphere.Size = sphere.Size + Vector3.new(1,1,1)
420
					sphere.CFrame = v.CFrame
421
				end
422
				sphere:Destroy()
423
				v:Destroy()
424
				end))
425
		end end 
426
	end
427
	local songs = {"rbxassetid://163089835","rbxassetid://334458134"}
428
	if msg:lower() == "final form" then
429
		if form == false and del == false then
430
		form = true
431
		local sound = Instance.new("Sound")
432
		sound.Parent = game.Workspace
433
		sound.SoundId = songs[math.random(1,#songs)]
434
		sound:Play()
435
		chat:Chat(ninjam.Head,"You think this is my final form..?","Red")
436
		wait(2)
437
		chat:Chat(ninjam.Head,"Heh..","Red")
438
		wait(1)
439
		chat:Chat(ninjam.Head,"I shall reveal my true form then...","Red")
440
		wait(3.1)
441
		chat:Chat(ninjam.Head,"HYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!","Red")
442
		wait(2)
443
		ninjam.Humanoid.MaxHealth = 999999
444
		ninjam.Humanoid.Health = 999999
445
		ninjam.Torso.Anchored = true
446
		for i = 1,4 do
447
		wait(.25)
448
		local ring = Instance.new("Part",ninjam)
449
		ring.Anchored = true
450
		ring.CanCollide = true
451
		ring.Transparency = 1
452
		ring.Size = Vector3.new(1,1,1)
453
		ring.CFrame = ninjam.Torso.CFrame
454
		ring.Rotation = Vector3.new(-90,0,0)
455
		ring.Material = "Ice"
456
		ring.Transparency = 0.4
457
		local mesh = Instance.new("SpecialMesh",ninjam)
458
		mesh.Parent = ring
459
		mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
460
		mesh.Scale = Vector3.new(50,50,1)
461
		local coro = coroutine.resume(coroutine.create(function()
462
			for i = 1,10 do
463
				wait()
464
				ring.BrickColor = BrickColor.Random()
465
				mesh.Scale = mesh.Scale + Vector3.new(30,30,0)
466
			end
467
			ring:Destroy()
468
		end))
469
		end
470
		for i = 1,10 do
471
		wait(.01)
472
		local coroutine = coroutine.resume(coroutine.create(function()
473
		local sphere = Instance.new("Part")
474
		sphere.Parent = ninjam.Torso
475
		sphere.BrickColor = BrickColor.Random()
476
		sphere.Shape = "Ball"
477
		sphere.Size = Vector3.new(10,10,10)
478
		sphere.Anchored = true
479
		sphere.CanCollide = false
480
		sphere.CFrame = ninjam.Torso.CFrame
481
		sphere.Transparency = .3
482
		sphere.TopSurface = "Smooth"
483
		sphere.BottomSurface = "Smooth"
484
		sphere.Touched:connect(function(part)
485
			if part.Parent.Name ~= ninja.Name then
486
				part:Destroy()
487
			end
488
		end)
489
		for i = 1,10 do
490
			wait()
491
			sphere.Size = sphere.Size + Vector3.new(5,5,5)
492
			sphere.CFrame = ninjam.Torso.CFrame
493
		end
494
		sphere:Destroy()
495
		end))
496
		ninjam.Humanoid.WalkSpeed = 0
497
		end
498
		damage = math.huge
499
		slash_damage = math.huge
500
		lunge_damage = math.huge
501
		ninjam.Torso.Anchored = false
502
		ninjam.Humanoid.WalkSpeed = 150
503
		local coro = coroutine.resume(coroutine.create(function()
504
		while wait(.15) and form == true do
505
			local color = BrickColor.Random()
506
			for _,v in pairs(ninjam:GetChildren())do
507
				if v:IsA("Part") then
508
					v.BrickColor = color
509
				end
510
			end
511
		end
512
		end))
513
		wait(22.94)
514
		for i = 1,5 do
515
			wait()
516
			sound.Volume = sound.Volume - 0.1
517
		end
518
		ninjam.Humanoid.MaxHealth = 100
519
		ninjam.Humanoid.Health = 100
520
		ninjam.Humanoid.WalkSpeed = 16
521
		form = false
522
		for _,v in pairs(ninjam:GetChildren())do
523
				if v:IsA("Part") then
524
					v.BrickColor = BrickColor.new("Really black")
525
				end
526
			end
527
		end
528
	damage = 5
529
	slash_damage = 8
530
	lunge_damage = 12
531
	del = true
532
	wait(60)
533
	print("Final form resumed.")
534
	del = false
535
	end
536
end)