Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Script0 = Instance.new("Script")
- Script1 = Instance.new("Script")
- Script2 = Instance.new("Script")
- Script0.Name = "Blumina"
- Script0.Parent = mas
- table.insert(cors,sandbox(Script0,function()
- local Tool0 = Instance.new("Tool")
- local Part2 = Instance.new("Part")
- local SpecialMesh3 = Instance.new("SpecialMesh")
- local Sparkles4 = Instance.new("Sparkles")
- Tool0.Name = "Blumina"
- Tool0.Parent = owner['Backpack']
- Tool0.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Part2.Name = "Handle"
- Part2.Parent = Tool0
- Part2.CFrame = CFrame.new(-20.6640606, 0.400005996, 9.11587429, -1, 1.99379383e-06, 2.97924635e-06, -1.99379474e-06, -1, -3.01450541e-07, 2.97924589e-06, -3.01456453e-07, 1)
- Part2.Orientation = Vector3.new(0, 0, -180)
- Part2.Position = Vector3.new(-20.6640606, 0.400005996, 9.11587429)
- Part2.Rotation = Vector3.new(0, 0, -180)
- Part2.Color = Color3.new(0, 0.12549, 0.376471)
- Part2.Velocity = Vector3.new(-0.00497130677, -0.00215061568, 0.00259776041)
- Part2.Size = Vector3.new(1, 0.800000012, 4)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Navy blue")
- Part2.Reflectance = 0.40000000596046
- Part2.RotVelocity = Vector3.new(-0.0043529924, 0.00333694159, 0.000599374238)
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Navy blue")
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "rbxasset://fonts/sword.mesh"
- SpecialMesh3.VertexColor = Vector3.new(1, 1, 0)
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Sparkles4.Parent = Part2
- Sparkles4.Color = Color3.new(1.02083, 1, 1)
- Sparkles4.SparkleColor = Color3.new(0.576471, 0.0980392, 1)
- -------- OMG HAX
- local r = game:service("RunService")
- local damage = 10
- local slash_damage = 20
- local lunge_damage = 40
- local sword = Part2
- local Tool = Tool0
- 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
- local torso = (Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("HumanoidRootPart"))
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,80,0) --(Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("HumanoidRootPart")).CFrame.lookVector * 80
- force.Parent = torso
- wait(.25)
- force.velocity = (torso.CFrame.lookVector * 120) + Vector3.new(0, 60,0)
- swordOut()
- game:GetService("Debris"):AddItem(force,.5)
- wait(1)
- 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
- pcall(function()
- lunge()
- end)
- else
- pcall(function()
- attack()
- end)
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
- end))
- Script1.Name = "Darkheart"
- Script1.Parent = mas
- table.insert(cors,sandbox(Script1,function()
- local Tool0 = Instance.new("Tool")
- local Part2 = Instance.new("Part")
- local SpecialMesh3 = Instance.new("SpecialMesh")
- local Sparkles7 = Instance.new("Sparkles")
- local Sparkles8 = Instance.new("Sparkles")
- Tool0.Name = "Darkheart"
- Tool0.Parent = owner['Backpack']
- Tool0.TextureId = "http://www.roblox.com/asset/?id=16868189"
- Tool0.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Part2.Name = "Handle"
- Part2.Parent = Tool0
- Part2.CFrame = CFrame.new(-18.6640892, 0.400011003, 9.11577606, -1, -1.7095083e-06, -2.80470631e-05, 1.70952512e-06, -1, -6.01045372e-07, -2.80470631e-05, -6.01093348e-07, 1)
- Part2.Orientation = Vector3.new(0, 0, 180)
- Part2.Position = Vector3.new(-18.6640892, 0.400011003, 9.11577606)
- Part2.Rotation = Vector3.new(0, 0, 180)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part2.Velocity = Vector3.new(-0.00113814184, 0.00240389677, -0.00323618972)
- Part2.Size = Vector3.new(1, 0.800000012, 4)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Dark stone grey")
- Part2.Reflectance = 0.69999998807907
- Part2.RotVelocity = Vector3.new(-0.00962590333, 0.00151013187, -0.0043386193)
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "rbxasset://fonts/sword.mesh"
- SpecialMesh3.Scale = Vector3.new(0.800000012, 0.800000012, 1)
- SpecialMesh3.VertexColor = Vector3.new(0, 0, 0)
- SpecialMesh3.TextureId = "rbxasset://textures/SwordTexture.png"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Sparkles7.Name = "Sparkles1"
- Sparkles7.Parent = Part2
- Sparkles7.SparkleColor = Color3.fromRGB(66, 66, 66)
- Sparkles8.Name = "Sparkles1"
- Sparkles8.Parent = Part2
- Sparkles8.SparkleColor = Color3.fromRGB(0, 0, 0)
- -------- OMG HAX
- local r = game:service("RunService")
- local damage = 20
- local slash_damage = 18
- local lunge_damage = 36
- local sword = Part2
- local Tool = Tool0
- 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 DarkKill(character, humanoid, attacker)
- if (character:FindFirstChild("ForceField") ~= nil) then return end
- local childs = character:GetChildren()
- local colors = {}
- tagHumanoid(humanoid, attacker)
- humanoid.Health = 0
- for i=1,#childs do
- if (childs[i].className == "Part") then
- colors[i] = childs[i].BrickColor
- childs[i].BrickColor = BrickColor.new(26)
- childs[i].CanCollide = true
- childs[i].Anchored = true
- end
- end
- wait(.25)
- for i=1,#childs do
- if (childs[i].className == "Part") then
- local b = Instance.new("BodyVelocity")
- b.velocity = Vector3.new(math.random() - .5, 0, math.random() - .5).unit * 80
- b.maxForce = Vector3.new(1e5,1e5,1e5)
- b.Parent = childs[i]
- end
- end
- for i=1,#childs do
- if (childs[i].className == "Part") then
- childs[i].Anchored = false
- end
- end
- end
- 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
- hum.Health = hum.Health + (damage * .4)
- if humanoid.Health > damage then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- else
- DarkKill(humanoid.Parent, humanoid, vPlayer)
- end
- 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
- game.Debris:AddItem(creator_tag, 1)
- 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
- local torso = (Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("HumanoidRootPart"))
- --[[
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,10,0) --(Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("HumanoidRootPart")).CFrame.lookVector * 80
- force.Parent = torso
- --]]
- wait(.25)
- swordOut()
- game:GetService("Debris"):AddItem(force,.25)
- wait(1)
- 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
- pcall(function()
- lunge()
- end)
- else
- pcall(function()
- attack()
- end)
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
- end))
- Script2.Name = "Illumina"
- Script2.Parent = mas
- table.insert(cors,sandbox(Script2,function()
- local Tool0 = Instance.new("Tool")
- local Part2 = Instance.new("Part")
- local SpecialMesh3 = Instance.new("SpecialMesh")
- local Sparkles4 = Instance.new("Sparkles")
- Tool0.Name = "Illumina"
- Tool0.Parent = owner['Backpack']
- Tool0.TextureId = "http://www.roblox.com/asset/?id=16620737 "
- Tool0.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Part2.Name = "Handle"
- Part2.Parent = Tool0
- Part2.CFrame = CFrame.new(-19.6641598, 0.400011986, 9.11567211, 1, 2.05230458e-06, 9.50961635e-07, -2.05230504e-06, 1, 7.00738781e-07, -9.50960157e-07, -7.00740713e-07, 1)
- Part2.Position = Vector3.new(-19.6641598, 0.400011986, 9.11567211)
- Part2.Color = Color3.new(0, 0.12549, 0.376471)
- Part2.Velocity = Vector3.new(0.00569992978, 0.000912517484, -0.00128903938)
- Part2.Size = Vector3.new(1, 0.800000012, 4)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Navy blue")
- Part2.Reflectance = 1
- Part2.RotVelocity = Vector3.new(-0.0109592956, -0.00260779588, -0.00672908593)
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Navy blue")
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "rbxasset://fonts/sword.mesh"
- SpecialMesh3.VertexColor = Vector3.new(1, 1, 0)
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Sparkles4.Parent = Part2
- Sparkles4.Color = Color3.new(1.01389, 1, 1)
- Sparkles4.SparkleColor = Color3.new(0.572549, 0.0980392, 1)
- -------- OMG HAX
- local r = game:service("RunService")
- local damage = 10
- local slash_damage = 20
- local lunge_damage = 40
- local sword = Part2
- local Tool = Tool0
- 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)
- 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
- game.Debris:AddItem(creator_tag, 1)
- 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
- local torso = (Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("HumanoidRootPart"))
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,80,0) --(Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("HumanoidRootPart")).CFrame.lookVector * 80
- force.Parent = torso
- wait(.25)
- force.velocity = (torso.CFrame.lookVector * 120) + Vector3.new(0, 60,0)
- swordOut()
- game:GetService("Debris"):AddItem(force,.5)
- wait(1)
- 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
- pcall(function()
- lunge()
- end)
- else
- pcall(function()
- attack()
- end)
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement