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