Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by Zaroxth
- local ninja = game.Players.AssortedBruno --Put your name here.
- 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."}
- local chat = game:GetService("Chat")
- chat:Chat(ninja.Character.Head, quotes[math.random(1,#quotes)], "Blue")
- local ninjam = game.Workspace.Zaroxth
- for _,v in pairs(ninjam.Head:GetChildren()) do
- if v:IsA("Decal") then
- v:Destroy()
- end
- end
- local enabled = false
- del = false
- form = false
- --running = false
- --ninjam.Humanoid.Running:connect(function()
- -- if running == false then
- -- running = true
- -- local left = ninjam["Left Arm"]
- -- local right = ninjam["Right Arm"]
- -- left.Transparency = 1
- -- right.Transparency = 1
- -- local leftc = left:Clone()
- -- leftc.Parent = ninjam
- -- local rightc = right:Clone()
- -- rightc.Parent = ninjam
- -- leftc.Transparency = 0
- -- rightc.Transparency = 0
- -- left.CanCollide = true
- -- right.CanCollide = true
- -- local weldr = Instance.new("Weld",right)
- -- local weldl = Instance.new("Weld",left)
- -- weldr.Part0 = right
- -- weldr.Part1 = rightc
- -- weldl.Part0 = left
- -- weldl.Part1 = leftc
- -- left.Rotation = Vector3.new(-90,0,0)
- -- right.Rotation = Vector3.new(-90,0,0)
- -- weldr.C0 = CFrame.new(1,0,0)
- -- weldl.C0 = CFrame.new(-1,0,0)
- --
- ---- rightc.Rotation = Vector3.new(90,0,0)
- ---- rightc.CFrame = right.CFrame
- ---- leftc.Rotation = Vector3.new(90,0,0)
- ---- leftc.CFrame = left.CFrame
- ---- running = false
- -- wait()
- -- running = false
- -- end
- --end)
- --Stats
- ninjam.Humanoid.Died:connect(function()
- chat:Chat(ninjam.Head, "I have been defeated...","Red")
- end)
- function playsound()
- local sound = Instance.new("Sound")
- sound.Parent = ninjam.Torso
- sound.SoundId = "rbxassetid://224339308"
- sound.Volume = 50
- sound.Pitch = 3
- sound:Play()
- end
- --Gear
- local katana = Instance.new("Tool")
- katana.Name = "Katana"
- katana.Parent = ninja.Backpack
- katana.TextureId = "http://www.roblox.com/asset/?id=11444089"
- katana.GripForward = Vector3.new(-1, 0, 0)
- katana.GripPos = Vector3.new(0, 0, -1.7)
- katana.GripRight = Vector3.new(0,1,0)
- katana.GripUp = Vector3.new(0,0,1)
- local handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Parent = katana
- handle.Reflectance = 0.4
- handle.Size = Vector3.new(1, 0.8, 5)
- handle.Anchored = false
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = "http://www.roblox.com/asset/?id=11442510"
- mesh.TextureId = "http://www.roblox.com/asset/?id=11442524"
- mesh.Scale = Vector3.new(1.7, 1.7, 1.7)
- mesh.Parent = handle
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 5
- local slash_damage = 8
- local lunge_damage = 12
- sword = katana.Handle
- Tool = katana
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
- SlashSound.Parent = sword
- SlashSound.Volume = .7
- local LungeSound = Instance.new("Sound")
- LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
- LungeSound.Parent = sword
- LungeSound.Volume = .6
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- function blow(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- wait(1)
- untagHumanoid(humanoid)
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function attack()
- damage = slash_damage
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function lunge()
- damage = lunge_damage
- LungeSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Lunge"
- anim.Parent = Tool
- force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
- force.Parent = Tool.Parent.Torso
- wait(.2)
- swordOut()
- wait(.2)
- force.Parent = nil
- wait(.4)
- swordUp()
- damage = slash_damage
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(1,0,0)
- end
- function swordAcross()
- -- parry
- end
- Tool.Enabled = true
- local last_attack = 0
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- t = r.Stepped:wait()
- if (t - last_attack < .2) then
- lunge()
- else
- attack()
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- katana.Activated:connect(onActivated)
- katana.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
- --Powers
- playerMouse = game.Players.LocalPlayer:GetMouse()
- function teleport(target)
- print("Mouse clicked.")
- if target:IsA("Part") and target.Locked == false then
- ninjam:MoveTo(target.Position)
- end
- end
- local tool = Instance.new("Tool",ninja.Backpack)
- tool.Name = "Blink"
- tool.RequiresHandle = false
- tool.CanBeDropped = false
- tool.Enabled = true
- tool.Equipped:connect(function(mouse)
- print("Equipped.")
- mouse.Button1Down:connect(function()
- print("Mouse clicked.")
- if playerMouse.Target.Parent:IsA("Model") then
- ninjam:MoveTo(playerMouse.Target.Position)
- playsound()
- print(playerMouse.Target.Name)
- end
- end)
- end)
- local vanish = Instance.new("Tool",ninja.Backpack)
- vanish.Name = "Vanish"
- vanish.RequiresHandle = false
- vanish.CanBeDropped = false
- vanish.Enabled = true
- vanish.Equipped:connect(function()
- print("Equipped.")
- playsound()
- -- ninjam.Humanoid.MaxHealth = 999999
- -- ninjam.Humanoid.Health = 999999
- ninjam.Torso.Anchored = true
- for i = 1,6 do
- wait(.1)
- local coroutine = coroutine.resume(coroutine.create(function()
- local sphere = Instance.new("Part")
- sphere.Parent = ninjam.Torso
- sphere.BrickColor = BrickColor.new("Black")
- sphere.Shape = "Ball"
- sphere.Size = Vector3.new(6,6,6)
- sphere.Anchored = true
- sphere.CanCollide = false
- sphere.CFrame = ninjam.Torso.CFrame
- sphere.Transparency = .3
- sphere.TopSurface = "Smooth"
- sphere.BottomSurface = "Smooth"
- for i = 1,10 do
- wait()
- sphere.Size = sphere.Size + Vector3.new(1,1,1)
- sphere.CFrame = ninjam.Torso.CFrame
- end
- sphere:Destroy()
- end))
- ninjam.Humanoid.WalkSpeed = 0
- end
- ninjam.Torso.Anchored = false
- for _,v in pairs(ninjam:GetChildren())do
- if v:IsA("Part") then
- v.Transparency = 1
- v.CanCollide = false
- elseif v:IsA("Hat") then
- part = v:FindFirstChild("Handle")
- if part then
- part.Transparency = 1
- part.CanCollide = false
- end
- end
- end
- ninjam.Humanoid.WalkSpeed = 190
- end)
- vanish.Unequipped:connect(function()
- print("Unequipped.")
- playsound()
- ninjam.Torso.Anchored = true
- for i = 1,6 do
- wait(.1)
- local coroutine = coroutine.resume(coroutine.create(function()
- local sphere = Instance.new("Part")
- sphere.Parent = ninjam.Torso
- sphere.BrickColor = BrickColor.new("Black")
- sphere.Shape = "Ball"
- sphere.Size = Vector3.new(6,6,6)
- sphere.Anchored = true
- sphere.CanCollide = false
- sphere.CFrame = ninjam.Torso.CFrame
- sphere.Transparency = .3
- sphere.TopSurface = "Smooth"
- sphere.BottomSurface = "Smooth"
- for i = 1,10 do
- wait()
- sphere.Size = sphere.Size + Vector3.new(1,1,1)
- sphere.CFrame = ninjam.Torso.CFrame
- end
- sphere:Destroy()
- end))
- ninjam.Humanoid.WalkSpeed = 0
- end
- ninjam.Torso.Anchored = false
- for _,v in pairs(ninjam:GetChildren())do
- if v:IsA("Part") then
- v.Transparency = 0
- elseif v:IsA("Hat") then
- part = v:FindFirstChild("Handle")
- if part then
- if part.Name ~= "HumanoidRootPart" then
- part.Transparency = 0
- end
- end
- end
- end
- ninjam.Humanoid.WalkSpeed = 16
- end)
- --Commands
- ninja.Chatted:connect(function(msg)
- if msg:lower() == "kunai scatter" then
- chat:Chat(ninjam.Head,"Kunai Scatter!","Green")
- for i = 1,260 do
- local kunai = Instance.new("Part")
- kunai.Name = "Kunai"
- kunai.Anchored = true
- kunai.Parent = game.Workspace
- kunai.CFrame = game.Workspace.Base.CFrame + Vector3.new(math.random(-410,410),29.25,math.random(-410,410))
- kunai.Size = Vector3.new(1.2, 3.23, 13.35)
- kunai.Rotation = Vector3.new(-90, 0, math.random(-180,180))
- handle.Transparency = 1
- local mesh = Instance.new("SpecialMesh")
- mesh.Parent = kunai
- mesh.Scale = Vector3.new(10,10,10)
- mesh.MeshId = "http://www.roblox.com/asset/?id=45728702"
- mesh.TextureId = "http://www.roblox.com/asset/?id=45728877"
- local coro = coroutine.resume(coroutine.create(function()
- wait(2)
- for i = 1,6 do
- wait()
- kunai.Rotation = kunai.Rotation + Vector3.new(0,0,60)
- wait()
- kunai.CFrame = kunai.CFrame - Vector3.new(0,4,0)
- end
- kunai.CFrame = kunai.CFrame - Vector3.new(0,5,0)
- end))
- end
- end
- if msg:lower() == "kunai auei" then
- chat:Chat(ninjam.Head,"Kunai Auei!","Green")
- for _,v in pairs(game.Workspace:GetChildren())do
- if v:IsA("Part") and v.Name == "Kunai" then
- local coro = coroutine.resume(coroutine.create(function()
- local sphere = Instance.new("Part")
- sphere.Parent = v
- sphere.BrickColor = BrickColor.new("Black")
- sphere.Shape = "Ball"
- sphere.Size = Vector3.new(6,6,6)
- sphere.Anchored = true
- sphere.CanCollide = false
- sphere.CFrame = v.CFrame
- sphere.TopSurface = "Smooth"
- sphere.BottomSurface = "Smooth"
- for i = 1,10 do
- wait()
- sphere.Size = sphere.Size + Vector3.new(1,1,1)
- sphere.CFrame = v.CFrame
- end
- sphere:Destroy()
- v:Destroy()
- end))
- end end
- end
- local songs = {"rbxassetid://163089835","rbxassetid://334458134"}
- if msg:lower() == "final form" then
- if form == false and del == false then
- form = true
- local sound = Instance.new("Sound")
- sound.Parent = game.Workspace
- sound.SoundId = songs[math.random(1,#songs)]
- sound:Play()
- chat:Chat(ninjam.Head,"You think this is my final form..?","Red")
- wait(2)
- chat:Chat(ninjam.Head,"Heh..","Red")
- wait(1)
- chat:Chat(ninjam.Head,"I shall reveal my true form then...","Red")
- wait(3.1)
- chat:Chat(ninjam.Head,"HYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!","Red")
- wait(2)
- ninjam.Humanoid.MaxHealth = 999999
- ninjam.Humanoid.Health = 999999
- ninjam.Torso.Anchored = true
- for i = 1,4 do
- wait(.25)
- local ring = Instance.new("Part",ninjam)
- ring.Anchored = true
- ring.CanCollide = true
- ring.Transparency = 1
- ring.Size = Vector3.new(1,1,1)
- ring.CFrame = ninjam.Torso.CFrame
- ring.Rotation = Vector3.new(-90,0,0)
- ring.Material = "Ice"
- ring.Transparency = 0.4
- local mesh = Instance.new("SpecialMesh",ninjam)
- mesh.Parent = ring
- mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
- mesh.Scale = Vector3.new(50,50,1)
- local coro = coroutine.resume(coroutine.create(function()
- for i = 1,10 do
- wait()
- ring.BrickColor = BrickColor.Random()
- mesh.Scale = mesh.Scale + Vector3.new(30,30,0)
- end
- ring:Destroy()
- end))
- end
- for i = 1,10 do
- wait(.01)
- local coroutine = coroutine.resume(coroutine.create(function()
- local sphere = Instance.new("Part")
- sphere.Parent = ninjam.Torso
- sphere.BrickColor = BrickColor.Random()
- sphere.Shape = "Ball"
- sphere.Size = Vector3.new(10,10,10)
- sphere.Anchored = true
- sphere.CanCollide = false
- sphere.CFrame = ninjam.Torso.CFrame
- sphere.Transparency = .3
- sphere.TopSurface = "Smooth"
- sphere.BottomSurface = "Smooth"
- sphere.Touched:connect(function(part)
- if part.Parent.Name ~= ninja.Name then
- part:Destroy()
- end
- end)
- for i = 1,10 do
- wait()
- sphere.Size = sphere.Size + Vector3.new(5,5,5)
- sphere.CFrame = ninjam.Torso.CFrame
- end
- sphere:Destroy()
- end))
- ninjam.Humanoid.WalkSpeed = 0
- end
- damage = math.huge
- slash_damage = math.huge
- lunge_damage = math.huge
- ninjam.Torso.Anchored = false
- ninjam.Humanoid.WalkSpeed = 150
- local coro = coroutine.resume(coroutine.create(function()
- while wait(.15) and form == true do
- local color = BrickColor.Random()
- for _,v in pairs(ninjam:GetChildren())do
- if v:IsA("Part") then
- v.BrickColor = color
- end
- end
- end
- end))
- wait(22.94)
- for i = 1,5 do
- wait()
- sound.Volume = sound.Volume - 0.1
- end
- ninjam.Humanoid.MaxHealth = 100
- ninjam.Humanoid.Health = 100
- ninjam.Humanoid.WalkSpeed = 16
- form = false
- for _,v in pairs(ninjam:GetChildren())do
- if v:IsA("Part") then
- v.BrickColor = BrickColor.new("Really black")
- end
- end
- end
- damage = 5
- slash_damage = 8
- lunge_damage = 12
- del = true
- wait(60)
- print("Final form resumed.")
- del = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement