Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Player Stuff
- -- Sawyerqqqqq Edit
- Pleyur = game.Players:WaitForChild("Big_smoke643")
- Chara = Pleyur.Character
- local moosik = 3 -- 1 for Hopes and Dreams, 2 for Necrofantasia, 3 for Nuclear Fusion,
- BlastQuotes = {"Readying Hikari Blast...","Prepare for your end!","I will purify your soul!"}
- BusterQuotes = {"Preparing Hikari Buster!","Feel the wrath of Light!","This is the true power!"}
- FinalBlastQuotes = {"NOW PERISH!","DIE!","YOU WON'T SURVIVE THIS ONE!","HIKARI BLAST!"}
- EquipBladeQuotes = {"Hikari Blade!","I'll cut you to pieces!","You made a mistake being too close!"}
- SlashFireQuotes = {"DON'T GET AWAY!","SWIFT SLICE!","YOU WON'T RUN!"}
- function chat(string)
- chansu = math.random(1,2)
- if chansu == 1 then
- ch = game:GetService("Chat"):Chat(Chara.Head, string, "Red")
- end
- end
- Chara.Humanoid.MaxHealth = math.huge
- Chara.Humanoid.Health = math.huge
- Chara.Humanoid.WalkSpeed = 40
- local lol = nil
- if Pleyur ~= nil then
- lol = Instance.new("Tool", Pleyur.Backpack)
- lol.Name = "Hikari Blast"
- lol.CanBeDropped = false
- lol2 = Instance.new("Tool", Pleyur.Backpack)
- lol2.Name = "Purity Blast"
- lol2.CanBeDropped = false
- lol3 = Instance.new("Tool", Pleyur.Backpack)
- lol3.Name = "Hikari Blade"
- lol3.CanBeDropped = false
- lol3.GripForward = Vector3.new(-1, 0, 0)
- lol3.GripPos = Vector3.new(0, 0, -2.52)
- lol3.GripRight = Vector3.new(0, 1, 0)
- lol3.GripUp = Vector3.new(0, 0, 1)
- handur2 = Instance.new("Part", lol)
- handur2.Name = "Handle"
- handur2.Size = Vector3.new(.2, .2, .2)
- handur2.Transparency = 1
- handur3 = Instance.new("Part", lol2)
- handur3.Name = "Handle"
- handur3.Size = Vector3.new(.2, .2, .2)
- handur3.Transparency = 1
- handur = Instance.new("Part", lol3)
- handur.Name = "Handle"
- handur.Size = Vector3.new(1, 0.8, 10)
- handur.Reflectance = 10
- handur.BrickColor = BrickColor.new("Black")
- meshhh = Instance.new("SpecialMesh", handur)
- meshhh.MeshType = "FileMesh"
- meshhh.MeshId = "http://www.roblox.com/asset/?id=22771612"
- meshhh.Scale = Vector3.new(0.5,0.5,0.8)
- end
- local transPoints = {
- NumberSequenceKeypoint.new(0,.819,.0375),
- NumberSequenceKeypoint.new(.207,.594,.0187),
- NumberSequenceKeypoint.new(.4,.55,.031),
- NumberSequenceKeypoint.new(.57,.619,.05),
- NumberSequenceKeypoint.new(.76,.8,.0375),
- NumberSequenceKeypoint.new(1,1,0),
- }
- local LAEffectu = Instance.new("ParticleEmitter", Chara["Left Arm"])
- LAEffectu.Texture = "rbxasset://textures/particles/smoke_main.dds"
- LAEffectu.LightEmission = 1
- LAEffectu.Enabled = false
- LAEffectu.Rate = 100000
- LAEffectu.EmissionDirection = "Bottom"
- LAEffectu.Size = NumberSequence.new(1,1)
- LAEffectu.Lifetime = NumberRange.new(.3,.3)
- LAEffectu.RotSpeed = NumberRange.new(1000,1000)
- LAEffectu.Speed = NumberRange.new(10,10)
- LAEffectu.Transparency = NumberSequence.new(transPoints)
- LAEffectu.VelocitySpread = 20
- LAEffectu.LockedToPart = true
- local Slash1 = Instance.new("Animation",script)
- Slash1.AnimationId = "http://www.roblox.com/Asset?ID=218504594"
- local Slash2 = Instance.new("Animation",script)
- Slash2.AnimationId = "http://www.roblox.com/asset/?id=184573779"
- local Slash3 = Instance.new("Animation",script)
- Slash3.AnimationId = "http://www.roblox.com/asset/?id=186934910"
- local Slash4 = Instance.new("Animation",script)
- Slash4.AnimationId = "http://www.roblox.com/asset/?id=218508052"
- local Beam = Instance.new("Animation",script)
- Beam.AnimationId = "http://www.roblox.com/Asset?ID=86504773"
- WhackAnim = Chara.Humanoid:LoadAnimation(Slash1)
- WhackAnim2 = Chara.Humanoid:LoadAnimation(Slash2)
- WhackAnim3 = Chara.Humanoid:LoadAnimation(Slash3)
- WhackAnim4 = Chara.Humanoid:LoadAnimation(Slash4)
- Beam = Chara.Humanoid:LoadAnimation(Beam)
- local SwordEffect = Instance.new("ParticleEmitter", handur)
- SwordEffect.Texture = "rbxasset://textures/particles/smoke_main.dds"
- SwordEffect.LightEmission = 1
- SwordEffect.Enabled = false
- SwordEffect.Rate = 1000000
- SwordEffect.Size = NumberSequence.new(2,2)
- SwordEffect.Lifetime = NumberRange.new(.3,.3)
- SwordEffect.Transparency = NumberSequence.new(transPoints)
- SwordEffect.Speed = NumberRange.new(0,0)
- SwordEffect.RotSpeed = NumberRange.new(1000,1000)
- local chargesnd = Instance.new("Sound")
- chargesnd.Name = "Charge"
- chargesnd.Parent = script
- chargesnd.SoundId = "http://www.roblox.com/asset/?id=2101137"
- chargesnd.Volume = 1
- chargesnd.Pitch = .5
- local shotsnd = Instance.new("Sound")
- shotsnd.Name = "Shoot"
- shotsnd.Parent = script
- shotsnd.SoundId = "http://www.roblox.com/asset/?id=13775494"
- shotsnd.Volume = 1
- shotsnd.Pitch = .7
- local shotsnd2 = Instance.new("Sound")
- shotsnd2.Name = "Shoot2"
- shotsnd2.Parent = script
- shotsnd2.SoundId = "http://www.roblox.com/asset/?id=48618802"
- shotsnd2.Volume = 1
- shotsnd2.Pitch = 1
- local lungesnd = Instance.new("Sound")
- lungesnd.Name = "Lunge"
- lungesnd.Parent = script
- lungesnd.SoundId = "rbxasset://sounds/swordlunge.wav"
- lungesnd.Volume = 1
- lungesnd.Pitch = 1
- local slshsnd = Instance.new("Sound")
- slshsnd.Name = "Slash"
- slshsnd.Parent = lol3
- slshsnd.SoundId = "http://www.roblox.com/Asset?ID=154965962"
- slshsnd.Volume = 1
- slshsnd.Pitch = 1
- local slshsnd2 = Instance.new("Sound")
- slshsnd2.Name = "Slash2"
- slshsnd2.Parent = lol3
- slshsnd2.SoundId = "http://www.roblox.com/Asset?ID=231917758"
- slshsnd2.Volume = 1
- slshsnd2.Pitch = 1
- local hitsnd = Instance.new("Sound")
- hitsnd.Name = "Hit"
- hitsnd.Parent = lol3
- hitsnd.SoundId = "http://www.roblox.com/asset/?id=154965973"
- hitsnd.Volume = 1
- hitsnd.Pitch = 1
- --Godly Effects, bro!-------------------------------------------------------------------------------------------------------------------------
- Void = nil
- VoidParts = {}
- function RayCast(Position, Direction, MaxDistance, IgnoreList)
- return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
- end
- local loopsound = Instance.new("Sound")
- loopsound.Name = "LoopSound"
- loopsound.Looped = true
- loopsound.Parent = script
- loopsound.Volume = 1
- if moosik == 1 then --Hopes and Dreams
- loopsound.SoundId = "http://www.roblox.com/asset/?id=665017009"
- loopsound.Pitch = 1
- elseif moosik == 2 then --Necrofantasia
- loopsound.SoundId = "http://www.roblox.com/asset/?id=170884430"
- loopsound.Pitch = .25
- elseif moosik == 3 then --Nuclear Fusion
- loopsound.SoundId = "http://www.roblox.com/asset/?id=674318415"
- loopsound.Pitch = .25
- elseif moosik == 4 then --Victory
- loopsound.SoundId = "http://www.roblox.com/asset/?id=565863302"
- loopsound.Pitch = 1
- end
- script.LoopSound:Play()
- local startsound = Instance.new("Sound")
- startsound.Name = "StartUp"
- startsound.Parent = script
- startsound.SoundId = "rbxasset://Sounds/collide.wav"
- startsound.Volume = 0.5
- startsound.Pitch = 1
- local ex = Instance.new("Explosion", game.Workspace)
- ex.BlastPressure = 0
- ex.Position = Chara:FindFirstChild("Torso").Position
- script.StartUp:Play()
- Humanoid = Chara:FindFirstChild("Humanoid")
- Torso = Chara:FindFirstChild("Torso")
- if not Pleyur or not Humanoid or Humanoid.Health == 0 or not Torso then
- return
- end
- Equipped = true
- Void = Instance.new("Model")
- Void.Name = "Void"
- Angle = 0
- for i = 1, 1 do
- local VoidPart = Instance.new("Part")
- VoidPart.Name = "VoidPart"
- VoidPart.Transparency = 0.2
- VoidPart.BrickColor = BrickColor.new("Black")
- VoidPart.Material = Enum.Material.Plastic
- VoidPart.Shape = Enum.PartType.Block
- VoidPart.TopSurface = Enum.SurfaceType.Smooth
- VoidPart.BottomSurface = Enum.SurfaceType.Smooth
- VoidPart.Anchored = true
- VoidPart.CanCollide = false
- VoidPart.Locked = true
- VoidPart.Size = Vector3.new(10, 0.2, 10)
- local Meshu = Instance.new("SpecialMesh", VoidPart)
- Meshu.MeshType = "FileMesh"
- Meshu.MeshId = "http://www.roblox.com/asset/?id=20329976"
- Meshu.Offset = Vector3.new(0,0,-1)
- Meshu.Scale = Vector3.new(10,4,10)
- VoidPart.Parent = Void
- local Light = Instance.new("PointLight", VoidPart)
- Light.Brightness = 100
- Light.Range = 10
- local Effectu = Instance.new("ParticleEmitter", VoidPart)
- Effectu.LightEmission = 1
- Effectu.Lifetime = NumberRange.new(5,5)
- Effectu.Transparency = NumberSequence.new(transPoints)
- Effectu.RotSpeed = NumberRange.new(100,100)
- Effectu.Speed = NumberRange.new(10,10)
- Effectu.LockedToPart = true
- table.insert(VoidParts, VoidPart)
- end
- Spawn(function()
- while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Chara do
- if Angle == 360 then
- Angle = 0
- end
- Angle = Angle + .25
- local Hit, EndPosition = RayCast(Chara.Torso.Position, Vector3.new(0, -1, 0), (Chara.Torso.Size.Y * 6.5), {Chara})
- if Hit then
- if not Void.Parent then
- Void.Parent = Chara
- end
- for i, v in pairs(VoidParts) do
- v.CFrame = CFrame.new(Chara.Torso.Position.X, EndPosition.Y, Chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
- end
- else
- Void.Parent = nil
- end
- wait()
- end
- end)
- --Hikari Blast-------------------------------------------------------------------------------------------------------------------------
- local r = game:service("RunService")
- local debris = game:GetService("Debris")
- sword = handur2
- Tool = lol
- local damage = 0
- local proc = 40
- local lungeAnim = nil
- function blowprojectile(hit)
- if (hit.Parent == nil) then return end -- happens when bullet hits sword
- local humanoid = nil
- local ceal = hit.Parent:GetChildren()
- for i = 1, #ceal do
- if ceal[i].ClassName == "Humanoid" then
- humanoid = ceal[i]
- end
- end
- 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
- hit:BreakJoints()
- 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(proc)
- local bodyp = humanoid.Parent:GetChildren()
- if humanoid.Health <= 1 then
- for i = 1, #bodyp do
- if bodyp[i].ClassName == "Part" then
- if bodyp[i]:FindFirstChild("Effecto") == nil then
- bodyp[i].Material = "Neon"
- bodyp[i].BrickColor = BrickColor.new("Black")
- local LAE = Instance.new("ParticleEmitter", bodyp[i])
- LAE.Name = "Effecto"
- LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
- LAE.LightEmission = 1
- LAE.Rate = 20
- LAE.EmissionDirection = "Bottom"
- LAE.Lifetime = NumberRange.new(0.3,0.3)
- LAE.RotSpeed = NumberRange.new(1000,1000)
- LAE.Speed = NumberRange.new(0,0)
- end
- end
- if bodyp[i].Name == "Head" then
- bodyp[i].Mesh:destroy()
- bodyp[i].face:destroy()
- end
- if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
- bodyp[i]:destroy()
- end
- end
- end
- local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
- AE.Name = "HitSwordEff"
- AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
- AE.LightEmission = 1
- AE.Rate = 10000
- AE.EmissionDirection = "Front"
- AE.Lifetime = NumberRange.new(.5,.5)
- AE.Transparency = NumberSequence.new(transPoints)
- AE.RotSpeed = NumberRange.new(1000,1000)
- AE.Speed = NumberRange.new(50,50)
- AE.VelocitySpread = 100
- wait(1)
- AE:Destroy()
- untagHumanoid(humanoid)
- end
- end
- end
- end
- function fire(v, part)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v.unit * 100
- missile.BrickColor = BrickColor.new("Black")
- missile.Material = "Neon"
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.CanCollide = false
- missile.Elasticity = .05
- missile.Friction = .7
- missile.Name = "Bullet"
- missile.Touched:connect(blowprojectile)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Sphere"
- mesh.Parent = missile
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,137,0)
- force.Parent = missile
- local shs = Instance.new("ParticleEmitter", missile)
- shs.Texture = "rbxasset://textures/particles/smoke_main.dds"
- shs.LightEmission = 1
- shs.Rate = 100000
- shs.EmissionDirection = "Bottom"
- shs.Size = NumberSequence.new(0.5,0.5)
- shs.Lifetime = NumberRange.new(1,1)
- shs.Transparency = NumberSequence.new(transPoints)
- shs.RotSpeed = NumberRange.new(1000,1000)
- shs.Speed = NumberRange.new(0,0)
- -- local force = Instance.new("BodyForce")
- -- force.Name = "BulletFloat"
- -- force.force = Vector3.new(0,98.1,0)
- -- force.Parent = missile
- debris:AddItem(missile,5)
- missile.Parent = game.Workspace
- shotsnd:play()
- end
- function giantfire(v, part)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
- missile.Size = Vector3.new(4,4,4)
- missile.Velocity = v.unit * 100
- missile.BrickColor = BrickColor.new("Black")
- missile.Material = "Neon"
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.CanCollide = false
- missile.Elasticity = .05
- missile.Friction = .7
- missile.Name = "Bullet"
- missile.Touched:connect(blowprojectile)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Sphere"
- mesh.Parent = missile
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,9000,0)
- force.Parent = missile
- local shs = Instance.new("ParticleEmitter", missile)
- shs.Texture = "rbxasset://textures/particles/smoke_main.dds"
- shs.LightEmission = 1
- shs.Rate = 100000
- shs.EmissionDirection = "Bottom"
- shs.Size = NumberSequence.new(0.5,0.5)
- shs.Lifetime = NumberRange.new(1,1)
- shs.Transparency = NumberSequence.new(transPoints)
- shs.RotSpeed = NumberRange.new(1000,1000)
- shs.Speed = NumberRange.new(0,0)
- -- local force = Instance.new("BodyForce")
- -- force.Name = "BulletFloat"
- -- force.force = Vector3.new(0,98.1,0)
- -- force.Parent = missile
- debris:AddItem(missile,5)
- missile.Parent = game.Workspace
- shotsnd2:play()
- 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 onActivated()
- if Tool.Enabled then
- Tool.Enabled = false
- -- local character = Chara;
- -- local humanoid = character.Humanoid
- -- if humanoid == nil then
- -- print("Humanoid not found")
- -- return
- -- end
- Beam:Play()
- LAEffectu.Enabled = true
- chargesnd:play()
- chat(BlastQuotes[math.random(1, #BlastQuotes)])
- wait(2)
- for i = 1, 6 do
- wait(0.3)
- fire(Chara.HumanoidRootPart.CFrame.lookVector, Chara["Left Arm"])
- end
- WhackAnim3:Play()
- chat(FinalBlastQuotes[math.random(1, #FinalBlastQuotes)])
- wait(0.6)
- shotsnd.Pitch = 0.5
- giantfire(Chara.HumanoidRootPart.CFrame.lookVector, Chara["Left Arm"])
- wait(0.1)
- shotsnd.Pitch = 0.7
- LAEffectu.Enabled = false
- WhackAnim3:Stop()
- end
- Tool.Enabled = true
- end
- function onEquipped()
- local vCharacter = Chara
- local humanoid = vCharacter:findFirstChild("Humanoid")
- if humanoid ~= nil then end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- --Beam of Purity-------------------------------------------------------------------------------------------------------------------------
- --Sword!-------------------------------------------------------------------------------------------------------------------------
- -- Handle to the game service, in case we need to get the time
- r = game:service("RunService")
- -- normal damage, when the Mackerel touches a humanoid object
- local damage = 0
- -- Whack damage
- local whack_damage = 10
- -- Handle to tool
- Mackerel = lol3.Handle
- Tool3 = lol3
- local animstates = 1
- -- When a collision is detected between the player and another character
- function blow(hit)
- if hit == nil or hit.Parent == nil then return end
- local opponent = hit.Parent:findFirstChild("Torso")
- local humanoid = nil
- local ceal = hit.Parent:GetChildren()
- for i = 1, #ceal do
- if ceal[i].ClassName == "Humanoid" then
- humanoid = ceal[i]
- end
- end
- local vCharacter = Tool3.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local myTorso = vCharacter:findFirstChild("Torso")
- 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 Mackerel is in-hand
- hit:BreakJoints()
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == Mackerel or joint.Part1 == Mackerel)) then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- -- Add body velocity to the opponent to push him when he gets whacked
- -- local bodyVelocity = Instance.new("BodyVelocity")
- -- bodyVelocity.P = 100000
- -- bodyVelocity.maxForce = Vector3.new(bodyVelocity.P, bodyVelocity.P, bodyVelocity.P)
- -- bodyVelocity.velocity = (opponent.Position - myTorso.Position) * 6
- -- bodyVelocity.Parent = opponent
- -- wait(0.5)
- -- if bodyVelocity ~= nil then bodyVelocity:remove() end
- if humanoid.Health <= 1 then
- local bodyp = hit.Parent:GetChildren()
- for i = 1, #bodyp do
- if bodyp[i].ClassName == "Part" then
- if bodyp[i]:FindFirstChild("Effecto") == nil then
- bodyp[i].Material = "Neon"
- bodyp[i].BrickColor = BrickColor.new("Black")
- local LAE = Instance.new("ParticleEmitter", bodyp[i])
- LAE.Name = "Effecto"
- LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
- LAE.LightEmission = 1
- LAE.Rate = 20
- LAE.EmissionDirection = "Bottom"
- LAE.Lifetime = NumberRange.new(0.3,0.3)
- LAE.RotSpeed = NumberRange.new(1000,1000)
- LAE.Speed = NumberRange.new(0,0)
- end
- end
- if bodyp[i].Name == "Head" then
- bodyp[i].Mesh:destroy()
- bodyp[i].face:destroy()
- end
- if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
- bodyp[i]:destroy()
- end
- end
- end
- Tool3:FindFirstChild("Hit"):play()
- local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
- AE.Name = "HitSwordEff"
- AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
- AE.LightEmission = 1
- AE.Rate = 10000
- AE.EmissionDirection = "Front"
- AE.Lifetime = NumberRange.new(.3,.3)
- AE.Transparency = NumberSequence.new(transPoints)
- AE.RotSpeed = NumberRange.new(1000,1000)
- AE.Speed = NumberRange.new(50,50)
- AE.VelocitySpread = 100
- wait(0.5)
- AE:Destroy()
- untagHumanoid(humanoid)
- end
- end
- end
- end
- function blowprojectileslash(hit)
- if (hit.Parent == nil) then return end -- happens when bullet hits sword
- local humanoid = nil
- local ceal = hit.Parent:GetChildren()
- for i = 1, #ceal do
- if ceal[i].ClassName == "Humanoid" then
- humanoid = ceal[i]
- end
- end
- local vCharacter = Tool3.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
- hit:BreakJoints()
- -- 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(100)
- if humanoid.Health <= 1 then
- local bodyp = hit.Parent:GetChildren()
- for i = 1, #bodyp do
- if bodyp[i].ClassName == "Part" then
- if bodyp[i]:FindFirstChild("Effecto") == nil then
- bodyp[i].Material = "Neon"
- bodyp[i].BrickColor = BrickColor.new("Black")
- local LAE = Instance.new("ParticleEmitter", bodyp[i])
- LAE.Name = "Effecto"
- LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
- LAE.LightEmission = 1
- LAE.Rate = 20
- LAE.EmissionDirection = "Bottom"
- LAE.Lifetime = NumberRange.new(.5,.5)
- LAE.Transparency = NumberSequence.new(transPoints)
- LAE.RotSpeed = NumberRange.new(1000,1000)
- LAE.Speed = NumberRange.new(0,0)
- end
- end
- if bodyp[i].Name == "Head" then
- bodyp[i].Mesh:destroy()
- bodyp[i].face:destroy()
- end
- if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
- bodyp[i]:destroy()
- end
- end
- end
- Tool3:FindFirstChild("Hit"):play()
- local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
- AE.Name = "HitSwordEff"
- AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
- AE.LightEmission = 1
- AE.Rate = 10000
- AE.EmissionDirection = "Front"
- AE.Lifetime = NumberRange.new(0.3,0.3)
- AE.Transparency = NumberSequence.new(transPoints)
- AE.RotSpeed = NumberRange.new(1000,1000)
- AE.Speed = NumberRange.new(50,50)
- AE.VelocitySpread = 100
- wait(1)
- AE:Destroy()
- untagHumanoid(humanoid)
- -- end
- -- end
- end
- end
- function fireslash(v, part)
- local vCharacter = Tool3.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v.unit * 400
- missile.BrickColor = BrickColor.new("Black")
- missile.Material = "Neon"
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.CanCollide = false
- missile.Elasticity = .05
- missile.Friction = .7
- missile.Name = "Bullet"
- missile.Touched:connect(blowprojectileslash)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Sphere"
- mesh.Scale = Vector3.new(0.1,7,7)
- mesh.Parent = missile
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,137,0)
- force.Parent = missile
- -- local mehss = Instance.new("SpecialMesh", missile)
- -- mehss.MeshType = "FileMesh"
- -- mehss.MeshId = "rbxassetid://65514292"
- -- mehss.Scale = Vector3.new(10,10,1)
- local shs = Instance.new("ParticleEmitter", missile)
- shs.Texture = "rbxasset://textures/particles/sparkles_main.dds"
- shs.LightEmission = 1
- shs.Rate = 20
- shs.EmissionDirection = "Bottom"
- shs.Size = NumberSequence.new(0.5,0.5)
- shs.Lifetime = NumberRange.new(1,1)
- shs.Transparency = NumberSequence.new(transPoints)
- shs.RotSpeed = NumberRange.new(1000,1000)
- shs.Speed = NumberRange.new(0,0)
- -- local force = Instance.new("BodyForce")
- -- force.Name = "BulletFloat"
- -- force.force = Vector3.new(0,98.1,0)
- -- force.Parent = missile
- debris:AddItem(missile,5)
- missile.Parent = game.Workspace
- slshsnd2:play()
- slshsnd:play()
- lungesnd:play()
- end
- -- Tagging and Untagging primarily for the leaderboards
- 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
- -- On, left click!
- function attack()
- damage = whack_damage
- -- Play the sound
- if Tool3:FindFirstChild("Slash") and Tool3:FindFirstChild("Slash2") then Tool3:FindFirstChild("Slash"):Play() Tool3:FindFirstChild("Slash2"):Play() end
- end
- -- Tentative lock
- Tool3.Enabled = true
- function onActivated()
- if not Tool3.Enabled then
- return
- end
- Tool3.Enabled = false
- -- Check if the handle to the Player is still available in the space
- local MyPlayer = Chara
- if MyPlayer == nil then
- return
- end
- -- Check to see if the humanoid is still in the world
- local MyHumanoid= MyPlayer:FindFirstChild("Humanoid")
- if MyHumanoid == nil then
- return
- end
- attack()
- -- Load and play the animation
- SwordEffect.Enabled = true
- if WhackAnim and WhackAnim2 and WhackAnim3 and WhackAnim4 then
- if animstates == 1 then
- WhackAnim:Play()
- animstates = 2
- elseif animstates == 2 then
- WhackAnim2:Play()
- lol3.GripUp = Vector3.new(1,-1,1)
- animstates = 3
- elseif animstates == 3 then
- WhackAnim3:Play()
- animstates = 4
- elseif animstates == 4 then
- WhackAnim4:Play()
- wait(0.3)
- slshsnd2.Pitch = 1.2
- slshsnd:play()
- slshsnd2:play()
- chat(SlashFireQuotes[math.random(1, #SlashFireQuotes)])
- wait(0.3)
- fireslash(Chara.HumanoidRootPart.CFrame.lookVector, Chara.HumanoidRootPart)
- slshsnd2.Pitch = 1
- animstates = 1
- end
- end
- wait(0.5)
- lol3.GripRight = Vector3.new(0,1,0)
- lol3.GripUp = Vector3.new(0,0,1)
- SwordEffect.Enabled = false
- Tool3.Enabled = true
- -- Reset the damage
- damage = 0
- end
- function onEquipped()
- -- Remove the sound if its still playing
- chat(EquipBladeQuotes[math.random(1, #EquipBladeQuotes)])
- Tool3:FindFirstChild("Slash").Volume = 1
- Tool3:FindFirstChild("Slash2").Volume = 1
- if Tool3:FindFirstChild("Slash") and Tool3:FindFirstChild("Slash2") then Tool3:FindFirstChild("Slash"):Stop() Tool3:FindFirstChild("Slash2"):Stop() end
- Tool3.GripRight = Vector3.new(0, 1, 0)
- end
- function onUnequipped()
- -- Remove the sounds and the animations
- Tool3:FindFirstChild("Slash").Volume = 0
- Tool3:FindFirstChild("Slash2").Volume = 0
- if WhackAnim and WhackAnim2 and WhackAnim3 and WhackAnim4 then WhackAnim:Stop() WhackAnim2:Stop() WhackAnim3:Stop() WhackAnim4:Stop() end
- if Tool3:FindFirstChild("Slash") then Tool3:FindFirstChild("Slash"):Stop() end
- end
- Tool3.Activated:connect(onActivated)
- Tool3.Equipped:connect(onEquipped)
- Tool3.Unequipped:connect(onUnequipped)
- connection = Mackerel.Touched:connect(blow)
- --On Death--------------------------------------------------------------------------------------------------
- function onDeath()
- script:Destroy()
- end
- Chara.Humanoid.Died:connect(onDeath)
- -- Nightmare Edit
- -- By Jeff223311, Sawyerqqqqq, Nicolas Cage, Caio_Murilo
- -- I'm love you :3
- print("Don't remove someone")
- local a = Instance.new("Part")
- a.BrickColor = BrickColor.new("White")
- a.Material = "Grass"
- a.Size = Vector3.new(2048, 5, 2048)
- a.Position = Vector3.new(0, 0, 0)
- a.Anchored = true
- a.Archivable = true
- a.CanCollide = true
- a.Parent = game.Workspace
- local m = Instance.new("SpecialMesh")
- m.Parent = a
- m.MeshType = "Brick"
- m.Scale = Vector3.new(10, 1, 10)
- local l = game.Lighting
- local sky = Instance.new("Sky",l)
- l.TimeOfDay = "00:00:00"
- l.Brightness = 1
- l.Ambient = Color3.new(0.25, 0.5, 0.75)
- sky.CelestialBodiesShown = false
- sky.SkyboxBk = "http://www.roblox.com/asset/?id=1010388"
- sky.SkyboxDn = "http://www.roblox.com/asset/?id=1010389"
- sky.SkyboxFt = "http://www.roblox.com/asset/?id=1010386"
- sky.SkyboxLf = "http://www.roblox.com/asset/?id=1010387"
- sky.SkyboxRt = "http://www.roblox.com/asset/?id=1010385"
- sky.SkyboxUp = "http://www.roblox.com/asset/?id=1010390"
- sky.StarCount = 0
- sky.Name = "IcySkies"
- p = game.Players.LocalPlayer
- char = p.Character
- local char = p.Character
- torso = char.Torso
- neck = char.Torso.Neck
- hum = char.Humanoid
- hum.MaxHealth = math.huge
- wait()
- hum.Health =hum.MaxHealth
- local s = Instance.new("Sound",char)
- s.SoundId = "http://www.roblox.com/asset/?id=665017009"
- s.Pitch = 1
- s.Volume = 3
- s.Looped = true
- wait(0)
- s:play()
- --472006887 Doom Choir
- --598378876 War of Change
- --194431946 Carol of the Bells
- --251935616 Child-of-Light-Boss-Battle-Theme-3-With-Choir
- --571756774 Angel
- --545677173 Red Army Choir
- --738743040 Choir Of The Fayth
- CV="Hot pink"
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char .Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Bodoni"
- text.TextStrokeColor3 = Color3.new(255,0,0)
- ypcall(function()
- char.Shirt:Destroy()
- char.Pants:Destroy()
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "rbxassetid://770622763"
- char.Pants.PantsTemplate = "rbxassetid://473574503"
- end)
- local BC = char["Body Colors"]
- BC.HeadColor = BrickColor.new("White")
- BC.LeftArmColor = BrickColor.new("White")
- BC.LeftLegColor = BrickColor.new("White")
- BC.RightArmColor = BrickColor.new("White")
- BC.RightLegColor = BrickColor.new("White")
- BC.TorsoColor = BrickColor.new("White")
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(0.0,0.0,0)
- v.Shape="Block"
- text.Text = "God of Demons"
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- Face = Head.face
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- Neck = Torso.Neck
- it = Instance.new
- vt = Vector3.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- RootCF = euler(-1.57, 0, 3.14)
- Reaper = Instance.new("Model")
- Reaper.Parent = Player.Character
- Reaper.Name = "Reaper"
- rh = Instance.new("Part")
- rh.Parent = Reaper
- rh.Locked = true
- rh.CanCollide = false
- mesh = Instance.new("SpecialMesh")
- rh.formFactor = "Symmetric"
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=16150814"
- mesh.TextureId = "http://www.roblox.com/asset/?id=16150799"
- mesh.Parent = rh
- local weld = Instance.new("Weld")
- weld.Parent = rh
- rh.Transparency = 1
- weld.Part0 = rh
- weld.Part1 = Player.Character.Head
- weld.C0 = CFrame.new(0, -0.045, 0)*CFrame.Angles(0, 0, 0)
- e1 = Instance.new("Part")
- e1.Parent = Reaper
- e1.Locked = true
- e1.CanCollide = false
- e1.formFactor = "Symmetric"
- e1.Size = Vector3.new(-3.05,-5.05, -3.05)
- e1.Material = "Neon"
- e1.BrickColor = BrickColor.new("White")
- e1.Shape = "Ball"
- e1.Transparency = 1
- local weld = Instance.new("Weld")
- weld.Parent = e1
- weld.Part0 = e1
- weld.Part1 = Player.Character.Head
- weld.C0 = CFrame.new(0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
- e2 = Instance.new("Part")
- e2.Parent = Reaper
- e2.Locked = true
- e2.CanCollide = false
- e2.formFactor = "Symmetric"
- e2.Size = Vector3.new(-3.05,-5.05, -3.05)
- e2.Material = "Neon"
- e2.BrickColor = BrickColor.new("White")
- e2.Shape = "Ball"
- e2.Transparency = 1
- local weld = Instance.new("Weld")
- weld.Parent = e2
- weld.Part0 = e2
- weld.Part1 = Player.Character.Head
- weld.C0 = CFrame.new(-0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
- attack = false
- attackdebounce = false
- MMouse = nil
- combo = 0
- local hitfloor, posfloor = nil, nil
- local idle = 0
- local Anim = "Idle"
- local arcorb = false
- local Effects = {}
- local Weapon = {}
- local Welds = {}
- local invisible = false
- local doing2 = false
- local doing4 = false
- local Marked = {}
- local MarkedGUI = {}
- local decreaseatk = 0
- local decreasedef = 0
- local decreasemvmt = 0
- local pursuitnum = 0
- local move1 = "(Z)\nNight Shot"
- local move2 = "(X)\nNightmare Strike"
- local move3 = "(C)\nAbstract White"
- local move4 = "(V)\nNIGHTMARE!!!"
- local cooldowns = {}
- local cooldown1 = 0
- table.insert(cooldowns, cooldown1)
- local cooldown2 = 0
- table.insert(cooldowns, cooldown2)
- local cooldown3 = 0
- table.insert(cooldowns, cooldown3)
- local cooldown4 = 0
- table.insert(cooldowns, cooldown4)
- local cooldownsadd = {}
- local cooldownadd1 = 100
- table.insert(cooldownsadd, cooldownadd1)
- local cooldownadd2 = 100
- table.insert(cooldownsadd, cooldownadd2)
- local cooldownadd3 = 100
- table.insert(cooldownsadd, cooldownadd3)
- local cooldownadd4 = 100
- table.insert(cooldownsadd, cooldownadd4)
- local cooldownmax = 100
- player = nil
- RSH = nil
- RW = Instance.new("Motor")
- LW = Instance.new("Motor")
- RW.Name = "Right Shoulder"
- LW.Name = "Left Shoulder"
- LH = Torso["Left Hip"]
- RH = Torso["Right Hip"]
- TorsoColor = Torso.BrickColor
- TorsoRed = TorsoColor.Color.r
- TorsoWhite = TorsoColor.Color.g
- TorsoWhite = TorsoColor.Color.b
- NewCol = Color3.new(0, 0, 0)
- NewCol2 = Color3.new(0, 0, 0)
- if Player:findFirstChild("Color1") ~= nil then
- NewCol = Player.Color1.Value
- end
- if Player:findFirstChild("Color2") ~= nil then
- NewCol2 = Player.Color2.Value
- end
- print(BrickColor.new(NewCol))
- local mdec = Instance.new("NumberValue", Decrease)
- mdec.Name = "DecreaseDef"
- mdec.Value = 0.4
- local mdec2 = Instance.new("NumberValue", Decrease)
- mdec2.Name = "DecreaseMvmt"
- mdec2.Value = 0.1
- if Character:findFirstChild("Effects", true) ~= nil then
- Character:findFirstChild("Effects", true).Parent = nil
- end
- local effects = it("Model", Character)
- effects.Name = "Effects"
- local Animate = Humanoid.Animator
- local canjump = true
- local AddInstance = function(Object, ...)
- local Obj = Instance.new(Object)
- for i,v in next,(...) do
- Obj[i] = v
- end
- return Obj
- end
- local nana = AddInstance("Part",{
- Parent = weld.Part1,
- CFrame = weld.Part1.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = nana,
- Part0 = weld.Part1,
- C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
- Part1 = nana,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = nana,
- MeshId = "rbxassetid://16150814",
- TextureId = "rbxassetid://16150799",
- Scale = Vector3.new(1, 1, 1),
- VertexColor = Vector3.new(0.3, 0.3, 0.3),
- })
- local nana = AddInstance("Part",{
- Parent = weld.Part1,
- CFrame = weld.Part1.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = nana,
- Part0 = weld.Part1,
- C0 = CFrame.new(0, -1.5, 0)*CFrame.Angles(0, 0, 0),
- Part1 = nana,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = nana,
- MeshId = "rbxassetid://",
- TextureId = "rbxassetid://",
- Scale = Vector3.new(1, 1, 1),
- VertexColor = Vector3.new(0.3, 0.3, 0.3),
- })
- removeControl = function()
- canjump = false
- end
- resumeControl = function()
- canjump = true
- end
- Player.Character.Humanoid.Changed:connect(function()
- if canjump == false then
- Player.Character.Humanoid.Jump = false
- end
- end)
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = true
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- if Character:findFirstChild("Carnufico", true) ~= nil then
- Character:findFirstChild("Carnufico", true).Parent = nil
- end
- if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
- Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
- end
- if Character:findFirstChild("Stats", true) ~= nil then
- Character:findFirstChild("Stats", true).Parent = nil
- end
- local Stats = Instance.new("BoolValue")
- Stats.Name = "Stats"
- Stats.Parent = Character
- local Atk = Instance.new("NumberValue")
- Atk.Name = "Damage"
- Atk.Parent = Stats
- Atk.Value = 1
- local Def = Instance.new("NumberValue")
- Def.Name = "Defense"
- Def.Parent = Stats
- Def.Value = 1
- local Mvmt = Instance.new("NumberValue")
- Mvmt.Name = "Movement"
- Mvmt.Parent = Stats
- Mvmt.Value = 1
- local Block = Instance.new("BoolValue")
- Block.Name = "Block"
- Block.Parent = Stats
- Block.Value = false
- local Stun = Instance.new("NumberValue")
- Stun.Name = "Stun"
- Stun.Parent = Stats
- Stun.Value = 0
- local StunT = Instance.new("NumberValue")
- StunT.Name = "StunThreshold"
- StunT.Parent = Stats
- StunT.Value = 100
- local Rooted = Instance.new("BoolValue")
- Rooted.Name = "Rooted"
- Rooted.Parent = Stats
- Rooted.Value = false
- local Stunned = Instance.new("BoolValue")
- Stunned.Name = "Stunned"
- Stunned.Parent = Stats
- Stunned.Value = false
- local Stagger = Instance.new("BoolValue")
- Stagger.Name = "Stagger"
- Stagger.Parent = Stats
- Stagger.Value = false
- local StaggerHit = Instance.new("BoolValue")
- StaggerHit.Name = "StaggerHit"
- StaggerHit.Parent = Stats
- StaggerHit.Value = false
- local RecentEnemy = Instance.new("ObjectValue")
- RecentEnemy.Name = "RecentEnemy"
- RecentEnemy.Parent = Stats
- RecentEnemy.Value = nil
- local Decrease = Instance.new("BoolValue")
- Decrease.Name = "Decrease"
- Decrease.Parent = Stats
- Decrease.Value = false
- local mana = Instance.new("NumberValue")
- mana.Name = "Mana"
- mana.Parent = Stats
- mana.Value = 0
- local invisnum = Instance.new("NumberValue")
- invisnum.Name = "Pursuit"
- invisnum.Parent = Stats
- invisnum.Value = 0
- local isinvis = Instance.new("BoolValue")
- isinvis.Name = "IsInvisible"
- isinvis.Parent = Stats
- isinvis.Value = false
- local passive = Instance.new("NumberValue", Decrease)
- passive.Name = "DecreaseAtk"
- passive.Value = 0
- local passive2 = Instance.new("NumberValue", nil)
- passive2.Name = "DecreaseDef"
- passive2.Value = 0.2
- local passive3 = Instance.new("NumberValue", nil)
- passive3.Name = "DecreaseMvmt"
- passive3.Value = -0.2
- NoOutline = function(Part)
- Part.TopSurface = 10
- end
- part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked = true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- NoOutline(fp)
- fp.Material = "SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- mesh = function(Mesh, part, meshtype, meshid, offset, scale)
- local mesh = it(Mesh)
- mesh.Parent = part
- if Mesh == "SpecialMesh" then
- mesh.MeshType = meshtype
- if meshid ~= "nil" then
- mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
- end
- end
- mesh.Offset = offset
- mesh.Scale = scale
- return mesh
- end
- weld = function(parent, part0, part1, c0)
- local weld = it("Motor")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- end
- gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
- local gui = it(GuiType)
- gui.Parent = parent
- gui.Text = text
- gui.BackgroundTransparency = backtrans
- gui.BackgroundColor3 = backcol
- gui.SizeConstraint = "RelativeXY"
- gui.TextXAlignment = "Center"
- gui.TextYAlignment = "Center"
- gui.Position = pos
- gui.Size = size
- gui.Font = "Bodoni"
- gui.FontSize = "Size24"
- gui.TextWrapped = false
- gui.TextStrokeTransparency = 0
- gui.TextColor = BrickColor.new("White")
- return gui
- end
- local Color1 = Torso.BrickColor
- local fengui = it("GuiMain")
- fengui.Parent = Player.PlayerGui
- fengui.Name = "WeaponGUI"
- local fenframe = it("Frame")
- fenframe.Parent = fengui
- fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
- fenframe.BackgroundTransparency = 1
- fenframe.BorderColor3 = Color3.new(17, 17, 17)
- fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
- fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
- local fenframe2 = it("Frame")
- fenframe2.Parent = fengui
- fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
- fenframe2.BackgroundTransparency = 1
- fenframe2.BorderColor3 = Color3.new(17, 17, 17)
- fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
- fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
- local fenframe3 = it("Frame")
- fenframe3.Parent = fengui
- fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
- fenframe3.BackgroundTransparency = 1
- fenframe3.BorderColor3 = Color3.new(17, 17, 17)
- fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
- fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
- fenframe3.Name = "MoveFrame"
- local fenframe4 = it("Frame")
- fenframe4.Parent = fengui
- fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
- fenframe4.BackgroundTransparency = 1
- fenframe4.BorderColor3 = Color3.new(17, 17, 17)
- fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
- fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
- local pressedf = false
- local fenframe5 = it("Frame")
- fenframe5.Parent = fengui
- fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
- fenframe5.BackgroundTransparency = 1
- fenframe5.BorderColor3 = Color3.new(0, 0, 0)
- fenframe5.Size = UDim2.new(1, 0, 1, 0)
- fenframe5.Position = UDim2.new(0, 0, 0, 0)
- fenframe5.ZIndex = 2
- local tellbar = gui("TextLabel", fenframe5, "Press F to equip weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
- tellbar.Font = "Bodoni"
- tellbar.TextScaled = true
- tellbar.TextTransparency = 1
- tellbar.TextStrokeTransparency = 1
- tellbar.ZIndex = 2
- local fnumb = 0
- local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
- local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
- local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
- local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
- local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
- local fenbarblock3 = gui("TextLabel", fenframe, "Pursuit(" .. invisnum.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
- local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
- local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
- local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
- local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
- local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
- local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
- local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
- local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
- local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
- local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
- fenbarmove1.ZIndex = 2
- local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
- local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
- fenbarmove2.ZIndex = 2
- local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
- local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
- fenbarmove3.ZIndex = 2
- local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
- local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
- fenbarmove4.ZIndex = 2
- local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
- local testpart = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt())
- testpart.Anchored = true
- local scarfp2 = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt())
- scarfp2.Anchored = true
- local modelzorz = Instance.new("Model")
- modelzorz.Parent = Character
- modelzorz.Name = "Carnufico"
- local handle = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Handle", vt())
- local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol2), "Part01", vt())
- local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part02", vt())
- local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part03", vt())
- local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt())
- local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part05", vt())
- local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part06", vt())
- local prt7 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part07", vt())
- local prt8 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part07", vt())
- local prt9 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part09", vt())
- local prt10 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part10", vt())
- msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2))
- msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1))
- msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3))
- msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
- msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
- msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 0.5))
- msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2))
- msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2))
- msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
- msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
- local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6))
- local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
- local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0))
- local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0))
- local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1))
- local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1))
- local wld6 = weld(prt1, prt6, prt3, euler(0, 0, 0) * cf(0, -0.2, 0.1))
- local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2))
- local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2))
- local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7))
- local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7))
- for i = 0, 2.355, 0.785 do
- local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt())
- msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2))
- local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0))
- end
- oldprt = prt9
- oldprt2 = prt10
- cff = 0.1
- eul = 0.02
- siz = 0.99
- for i = 1, 6 do
- local prt11 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part11", vt())
- msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
- local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
- if i < 4 then
- num = 6
- if i == 3 then
- num = 6.8
- end
- local prt12 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part12", vt())
- msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num))
- local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
- end
- do
- do
- oldprt = prt11
- cff = 0.6
- eul = 0.15
- siz = siz - 0.1
- -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT
- end
- end
- end
- oldprt2 = prt10
- cff = 0.1
- eul = 0.02
- siz = 0.99
- for i = 1, 7 do
- local prt13 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part13", vt())
- msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
- local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
- oldprt2 = prt13
- cff = 0.6
- eul = 0.14
- siz = siz - 0.1
- end
- for _,c in pairs(modelzorz:children()) do
- table.insert(Weapon, c)
- end
- for _,c in pairs(prt1:children()) do
- if c.className == "Motor" then
- table.insert(Welds, c)
- end
- end
- local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("White"), "Hitbox2", vt())
- hitbox.Anchored = false
- local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
- local hitbox2 = part(3, nil, 0, 1, BrickColor.new("White"), "Hitbox", vt(1, 1, 1))
- hitbox2.Anchored = true
- local hitboxCF = cf(0, 0, 0)
- hboxpos = Instance.new("BodyPosition", nil)
- hboxpos.P = 2000
- hboxpos.D = 100
- hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
- hitboxweld = function()
- hbwld.Parent = modelzorz
- hbwld.Part0 = hitbox
- hbwld.Part1 = prt6
- end
- if script.Parent.className ~= "HopperBin" then
- Tool = Instance.new("HopperBin")
- Tool.Parent = Backpack
- Tool.Name = "Carnufico"
- script.Parent = Tool
- end
- Bin = script.Parent
- if Bin.Name == "Renegade: Adjudicator" then
- Bin.Name = "Carnufico"
- end
- local bodvel = Instance.new("BodyVelocity")
- local bg = Instance.new("BodyGyro")
- so = function(id, par, vol, pit)
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
- coroutine.resume(coroutine.create(function(Sound)
- swait()
- Sound:play()
- end), sou)
- game:GetService("Debris"):AddItem(sou, 6)
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- hideanim = function()
- equipped = false
- for i = 0, 1, 0.5 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
- wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- end
- for i = 0, 1, 0.2 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
- wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, RHC0, 0.4)
- LH.C0 = clerp(LH.C0, LHC0, 0.4)
- end
- mdec2.Parent = nil
- handlewld.Part1 = Torso
- handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)
- wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
- for i = 0, 1, 0.3 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- end
- mdec.Parent = Decrease
- end
- mdec.Parent = Decrease
- equipanim = function()
- equipped = true
- mdec.Parent = nil
- for i = 0, 1, 0.5 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- end
- for i = 0, 1, 0.2 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- end
- mdec2.Parent = Decrease
- handlewld.Part1 = RightArm
- handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0)
- wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4)
- end
- StaggerAnim = function()
- attack = true
- removeControl()
- if invisible == true then
- Clone(0.1)
- end
- for i = 1, math.random(2, 4) do
- ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
- end
- for i = 0, 1, 0.35 do
- swait()
- if Rooted.Value == false then
- Torso.Velocity = RootPart.CFrame.lookVector * -40
- end
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
- end
- for i = 0, 1, 0.2 do
- swait()
- if Rooted.Value == false then
- Torso.Velocity = RootPart.CFrame.lookVector * -40
- end
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
- end
- for i = 0, 1, 0.1 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
- end
- for i = 1, 50 do
- swait()
- if StunT.Value <= Stun.Value then
- break
- end
- end
- do
- resumeControl()
- combo = 0
- attack = false
- end
- end
- StaggerHitt = function()
- attack = true
- if invisible == true then
- Clone(0.1)
- end
- for i = 1, math.random(2, 4) do
- ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
- end
- for i = 0, 1, 0.1 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
- end
- attack = false
- end
- StunAnim = function()
- attack = true
- removeControl()
- Stunned.Value = true
- showDamage(Character, "Stunned", "Interrupt")
- local dec = Instance.new("NumberValue", Decrease)
- dec.Name = "DecreaseMvmt"
- dec.Value = 10
- for i = 0, 1, 0.3 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
- LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
- end
- for i = 0, 1, 0.3 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
- LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
- end
- for i = 0, 1, 0.3 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
- LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
- end
- local gairost = Instance.new("BodyGyro")
- gairost.Parent = RootPart
- gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
- gairost.P = 20000
- gairost.cframe = cf(0, 0, 0)
- for i = 0, 1, 0.1 do
- swait()
- if hitfloor ~= nil then
- Torso.Velocity = vt(0, 0, 0)
- end
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
- end
- for i = 1, 70 do
- swait()
- gairost.cframe = RootPart.CFrame
- if hitfloor ~= nil then
- Torso.Velocity = vt(0, 0, 0)
- end
- end
- for i = 0, 1, 0.2 do
- swait()
- Stun.Value = 0
- gairost.cframe = RootPart.CFrame
- Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
- end
- resumeControl()
- gairost.Parent = nil
- dec.Parent = nil
- Stun.Value = 0
- combo = 0
- Stunned.Value = false
- attack = false
- for i = 1, 10 do
- swait()
- Stun.Value = 0
- end
- end
- attackone = function()
- attack = true
- for i = 0, 1, 0.2 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
- wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
- RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
- LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0, 1.57, 0), 0.5)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
- LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- so("92597369", prt6, 1, 0.6)
- hbwld.Parent = nil
- hboxpos.Parent = hitbox
- hitbox.Parent = modelzorz
- hitbox.Size = vt(3, 2, 7)
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- for i = 0, 1, 0.15 do
- swait()
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
- wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
- LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- hitbox.Parent = modelzorz
- hitbox.Size = vt()
- hitboxweld()
- hboxpos.Parent = nil
- attack = false
- end
- attacktwo = function()
- attack = true
- for i = 0, 1, 0.2 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
- wld1.C0 = clerp(wld1.C0, euler(0, -1.57, 0) * cf(0, 0, 0) * euler(2.5, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.7) * euler(0, 1.8, 0), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.5), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
- LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- so("92597369", prt6, 1, 0.8)
- so("92597296", prt6, 1, 1)
- hbwld.Parent = nil
- hboxpos.Parent = hitbox
- hitbox.Parent = modelzorz
- hitbox.Size = vt(1, 2, 7)
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- for i = 0, 1, 0.05 do
- swait()
- if (i >= 0.3 and i <= 0.33) or i >= 0.7 and i <= 0.73 then
- so("92597369", prt6, 1, 0.8)
- so("92597296", prt6, 1, 1)
- end
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- MagniDamage(hitbox, 4, 4, 6, math.random(5, 10), "Normal", RootPart, 0.2, 2, (math.random(2, 5)), nil, true)
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
- wld1.C0 = euler(22 * i, -1.57 + 1.7 * i, 0) * euler(0, 0, 0) * cf(0, 0, 0) * euler(2.5 - 0.93 * i, 0, 0)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0, 0, 0), 0.5)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.3), 0.5)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
- LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.5)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0)
- hitbox.Parent = modelzorz
- hitbox.Size = vt()
- hitboxweld()
- hboxpos.Parent = nil
- attack = false
- end
- attackthree = function()
- attack = true
- for i = 0, 1, 0.2 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
- wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
- RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
- LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0.1, 57, 0), 0.5)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
- LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- so("92597369", prt6, 1, 0.5)
- hbwld.Parent = nil
- hboxpos.Parent = hitbox
- hitbox.Parent = modelzorz
- hitbox.Size = vt(1, 2, 7)
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- for i = 0, 1, 0.05 do
- swait()
- if i >= 0.7 and i <= 0.73 then
- so("92597369", prt6, 1, 0.5)
- end
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- MagniDamage(hitbox, 4, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
- wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
- RootJoint.C0 = RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4 - 9.28 * i)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
- LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- hitbox.Parent = modelzorz
- hitbox.Size = vt()
- hitboxweld()
- hboxpos.Parent = nil
- attack = false
- end
- attackfour = function()
- attack = true
- for i = 0, 1, 0.1 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
- RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- so("28144425", prt6, 1, 0.7)
- so("92597369", prt6, 1, 0.5)
- hbwld.Parent = nil
- hboxpos.Parent = hitbox
- hitbox.Parent = modelzorz
- hitbox.Size = vt(1, 2, 7)
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- blcf = nil
- scfr = nil
- for i = 0, 1, 0.1 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
- hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
- hitbox.CFrame = hitboxCF
- MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 8)), nil, true)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- hitbox.Parent = modelzorz
- hitbox.Size = vt()
- hitboxweld()
- hboxpos.Parent = nil
- attack = false
- end
- Invisibility = function()
- if invisible == false then
- so("324867021", Torso, 1, 1.4)
- MagicWave(BrickColor.new("White"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1)
- MagicWave(BrickColor.new("White"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1)
- invisnum.Value = invisnum.Value - 10
- for _,c in pairs(Decrease:children()) do
- if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
- c.Parent = nil
- end
- end
- d = Instance.new("NumberValue", Decrease)
- d.Name = "DecreaseMvmt"
- d.Value = -0.5
- dur = Instance.new("NumberValue", d)
- dur.Name = "Duration"
- dur.Value = 50
- display = "+Movement"
- showDamage(Character, display, "Debuff")
- da = Instance.new("BoolValue", d)
- da.Name = "Renegade"
- DecreaseStat(Character, "Defense", 0.1, 80)
- invisible = true
- isinvis.Value = true
- passive3.Parent = Decrease
- else
- invisible = false
- isinvis.Value = false
- passive3.Parent = nil
- end
- end
- Runes = {"rbxassetid://200326272", "rbxassetid://200326330", "rbxassetid://200326394", "rbxassetid://200326465", "rbxassetid://200326593", "rbxassetid://200326667", "rbxassetid://200326796", "rbxassetid://200326880", "rbxassetid://200327025", "rbxassetid://200327088", "rbxassetid://200327279", "rbxassetid://200327394", "rbxassetid://200327439", "rbxassetid://200327517", "rbxassetid://200327625", "rbxassetid://200327725", "rbxassetid://200327804", "rbxassetid://200327922", "rbxassetid://200327991", "rbxassetid://200328063", "rbxassetid://200328131", "rbxassetid://200328211", "rbxassetid://200328319", "rbxassetid://200328365", "rbxassetid://200328401", "rbxassetid://200328461", "rbxassetid://200328530", "rbxassetid://200328645", "rbxassetid://200328713"}
- ContentProvider = game:GetService("ContentProvider")
- for _,v in pairs(Runes) do
- ContentProvider:Preload(v)
- end
- secrit = function()
- print("git dunked on n00b")
- end
- do1 = function()
- if attack == true then
- return
- end
- if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
- return
- end
- if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
- deb = 0.2
- attack = true
- cooldowns[1] = 100
- mana.Value = mana.Value - 20
- local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt())
- do
- swait()
- local dec = Instance.new("NumberValue", Decrease)
- dec.Name = "DecreaseMvmt"
- dec.Value = 0.2
- for i = 0, 1, 0.2 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3)
- LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- end
- end
- end
- if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
- if StaggerHit.Value ~= true then
- swait()
- arcorb = true
- orb.Anchored = true
- orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
- so("199145761", orb, 3.5, 1)
- do
- local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
- ogui = Instance.new("BillboardGui")
- ogui.Parent = orb
- ogui.Size = UDim2.new(5, 0, 5, 0)
- oimg = Instance.new("ImageLabel")
- oimg.Parent = ogui
- oimg.BackgroundTransparency = 1
- oimg.Size = UDim2.new(1, 0, 1, 0)
- oimg.Image = Runes[math.random(1, #Runes)]
- oimg.ImageColor3 = BrickColor.new(NewCol).Color
- orbnum = 100
- while arcorb==true do
- if arcorb == true then
- swait()
- end
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- if StaggerHit.Value == true then
- break
- end
- orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
- MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 1, 1, 1, 0.1, 2)
- MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 0, 0, 0, 1, 1, 1, 0.05)
- MagicCircle(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 10, -1, -1, -1, 0.05)
- if orbnum < 0 or MMouse == nil then
- arcorb = false
- end
- swait()
- orbnum = orbnum - 1
- if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
- arcorb = false
- break
- end
- end
- end
- if MMouse.Hit.p ~= nil then
- swait()
- local MainPos = orb.Position
- local MainPos2 = MMouse.Hit.p
- local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
- so("200633492", orb, 1, 0.75)
- coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
- local num = 50
- repeat
- swait()
- local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
- orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
- MagniDamage(orb, 15, 5, 8, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
- MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 2.5, 2.5, 2.5, 0.1, 2)
- MagicWave(BrickColor.new("White"), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 1, 5, 1, 1.25, 0, 1.25, 0.065, 5)
- MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 10, 10, 5, 5, 5, 0.05)
- Pos1 = Pos1 + Look.lookVector * 10
- orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
- if ohit ~= nil then
- num = 0
- end
- num = num - 1
- until num <= 0
- local ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Effect", vt())
- ref.Anchored = true
- ref.CFrame = cf(orb.Position)
- so("203691653", ref, 10, 0.75)
- so("199146035", ref, 5, 1)
- game:GetService("Debris"):AddItem(ref, 0.5)
- MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 60, 60, 60, 0.065)
- MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 40, 40, 40, 0.065)
- MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 20, 20, 20, 0.025)
- MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 25, 25, 25, 0.065)
- MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 100, 100, 100, -5, -5, -5, 0.065)
- MagniDamage(ref, 25, 10, 17, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
- if isjugg == false then
- end
- orb.Parent = nil
- end
- ), MainPos, MainPos2, MouseLook)
- end
- do
- dec.Parent = nil
- swait()
- attack = false
- end
- end
- end
- end
- end
- end
- end
- do2 = function()
- if attack == true then
- return
- end
- if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
- return
- end
- if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
- attack = true
- cooldowns[3] = 0
- local dec = Instance.new("NumberValue", Decrease)
- dec.Name = "DecreaseMvmt"
- dec.Value = 10
- local dec2 = Instance.new("NumberValue", Decrease)
- dec2.Name = "DecreaseDef"
- dec2.Value = -10
- LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
- for i = 0, 1, 0.1 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
- LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- so("200633077", workspace, 1, 1)
- for i = 1, 50 do
- swait(1)
- CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
- ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref2.Anchored = true
- ref2.CFrame = CF
- game:GetService("Debris"):AddItem(ref2, 5)
- so("199146035", ref2, 3, 1.5)
- hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
- if hitfloor2 ~= nil then
- mana.Value = mana.Value - 30
- ref2.CFrame = cf(posfloor2)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 150, 1, 150, 0, 0, 0, 0.025)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 150, 1, 150, 5, 0, 5, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 4, 0, 4, 0.0285)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 40, 40, 40, 0.1)
- for i = 0, 1, 0.05 do
- end
- so("278596476", ref2, 10, 1.5)
- so("278596476", ref2, 10, 1.5)
- so("199146035", ref2, 2.5, 1)
- MagniDamage(ref2, 12, 5, 10, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 18, 18, 18, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 12, 12, 12, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
- end
- swait(1)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 30, 0, 30, -1.5, 1, -1.5, 0.05, 3)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 30, 3, 30, 0.5, -0.05, 0.5, 0.05, 3)
- end
- do
- mana.Value = mana.Value - 30
- passivenum = -30
- dec.Parent = nil
- dec2.Parent = nil
- passive.Value = -1
- MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 0, 0, 0, 0, 0, 0, 1)
- MagniDamage(RootPart, 0, 0, 0, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
- for i = 0, 1, 0.1 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
- LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- dec.Parent = nil
- dec2.Parent = nil
- attack = false
- end
- end
- end
- do3 = function()
- if attack == true then
- return
- end
- if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
- return
- end
- if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
- attack = true
- cooldowns[3] = 0
- local doinvisatk = false
- for i = 0, 1, 0.1 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
- RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- end
- end
- end
- so("92597369", prt6, 0, 0)
- blcf = nil
- scfr = nil
- for i = 0, 1, 0.1 do
- swait()
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
- wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4)
- RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- end
- end
- end
- attack = false
- CF = RootPart.CFrame * cf(0, 0, -75)
- ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref2.Anchored = true
- ref2.CFrame = CF
- game:GetService("Debris"):AddItem(ref2, 5)
- so("199145761", ref2, 1, 0.75)
- so("199146035", ref2, 3, 0.75)
- hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
- if hitfloor2 ~= nil then
- mana.Value = mana.Value - 30
- ref2.CFrame = cf(posfloor2)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 0, 0, 0, 0.01)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 4.5, 4.5, 4.5, 0.0125)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 10, 10, 10, 0.075)
- for i = 0, 1, 0.05 do
- swait(4)
- MagicBlock(BrickColor.new("White"), cf(posfloor2) * cf(math.random(-2000, 2000) / 100, math.random(-2000, 2000) / 100, math.random(-2000, 2000) / 100), 15, 15, 15, 1, 1, 1, 0.1, 1)
- end
- so("203691653", ref2, 5, 0.75)
- so("203691653", ref2, 5, 1)
- so("199146035", ref2, 10, 0.75)
- MagniDamage(ref2, 125, 7, 21, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 100, 100, 100, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 75, 75, 75, 0.05, 1)
- MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 50, 50, 50, 0.05, 1)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 50, 50, 50, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 0.5, 9001, 0.5, 0.01)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 1, 9001, 1, 0.01)
- end
- end
- end
- do4 = function()
- if attack == true then
- return
- end
- if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
- return
- end
- if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
- attack = true
- cooldowns[3] = 0
- local dec = Instance.new("NumberValue", Decrease)
- dec.Name = "DecreaseMvmt"
- dec.Value = 10
- local dec2 = Instance.new("NumberValue", Decrease)
- dec2.Name = "DecreaseDef"
- dec2.Value = -10
- LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
- for i = 0, 1, 0.1 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
- LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- so("315746833", workspace, 2, 0.75)
- for i = 1, 50 do
- swait(1)
- CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
- ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref2.Anchored = true
- ref2.CFrame = CF
- game:GetService("Debris"):AddItem(ref2, 5)
- so("199146035", ref2, 3, 1.5)
- hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
- if hitfloor2 ~= nil then
- mana.Value = mana.Value - 30
- ref2.CFrame = cf(posfloor2)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1)
- for i = 0, 1, 0.05 do
- end
- so("199146035", ref2, 5, 1)
- MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
- end
- CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
- ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref2.Anchored = true
- ref2.CFrame = CF
- game:GetService("Debris"):AddItem(ref2, 5)
- so("199146035", ref2, 3, 1.5)
- hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
- if hitfloor2 ~= nil then
- mana.Value = mana.Value - 30
- ref2.CFrame = cf(posfloor2)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1)
- for i = 0, 1, 0.05 do
- end
- so("199146035", ref2, 5, 1)
- MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05)
- MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
- end
- swait(1)
- MagicBlock(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -8, 0), 10, 10, 10, -0.75, -0.75, -0.75, 0.05, 3)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 2.5, -0.1, 2.5, 0.05, 3)
- MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 60, 0, 60, -6, 500, -6, 0.075, 3)
- end
- do
- mana.Value = mana.Value - 30
- passivenum = -30
- dec.Parent = nil
- dec2.Parent = nil
- passive.Value = -1
- so("87767777", workspace, 10, 1)
- so("178452221", workspace, 10, 0.6)
- so("87767777", workspace, 10, 0.75)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 10, 4, 10, 0.0075)
- MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 10, 4, 10, 0.025)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 8, 1, 10, 6, 10, 0.0075)
- MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 8, 1, 10, 6, 10, 0.025)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 12, 1, 10, 8, 10, 0.0075)
- MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 12, 1, 10, 8, 10, 0.0075)
- MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 16, 1, 10, 10, 10, 0.0075)
- MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 100, 100, 100, 0.02)
- MagicCircle(BrickColor.new("White"), cf(Torso.Position), 1, 1, 1, 105, 105, 105, 0.02)
- MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 400, 1, 400, 1, 500, 1, 0.01)
- MagniDamage(RootPart, 125, 4, 6, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
- for i = 0, 1, 0.1 do
- swait()
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
- RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
- LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
- if Stagger.Value ~= true and StunT.Value > Stun.Value then
- do
- if StaggerHit.Value == true then
- break
- end
- -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- dec.Parent = nil
- dec2.Parent = nil
- attack = false
- end
- end
- end
- DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
- if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
- Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
- d = Instance.new("NumberValue", Model.Stats.Decrease)
- dur = Instance.new("NumberValue", d)
- dur.Name = "Duration"
- dur.Value = Duration
- game:GetService("Debris"):AddItem(d, 20)
- if Stat == "Damage" then
- d.Name = "DecreaseAtk"
- else
- if Stat == "Defense" then
- d.Name = "DecreaseDef"
- else
- if Stat == "Movement" then
- d.Name = "DecreaseMvmt"
- end
- end
- end
- if Model:findFirstChild("Torso") ~= nil then
- display = ""
- if Stat == "Damage" then
- if Amount > 0 then
- display = "-Damage"
- else
- display = "+Damage"
- end
- else
- if Stat == "Defense" then
- if Amount > 0 then
- display = "-Defense"
- else
- display = "+Defense"
- end
- else
- if Stat == "Movement" then
- if Amount > 0 then
- display = "-Movement"
- else
- display = "+Movement"
- end
- end
- end
- end
- if cangui ~= true then
- showDamage(Model, display, "Debuff")
- end
- end
- d.Value = Amount
- end
- end
- GetDist = function(Part1, Part2, magni)
- local targ = Part1.Position - Part2.Position
- local mag = targ.magnitude
- if mag <= magni then
- return true
- else
- return false
- end
- end
- MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
- for _,c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = nil
- for _,d in pairs(c:children()) do
- if d.className == "Model" and ranged ~= true then
- head = d:findFirstChild("Hitbox")
- if d.Parent == Character then
- break
- end
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref.Anchored = true
- ref.CFrame = cf(head.Position)
- game:GetService("Debris"):AddItem(ref, 1)
- hitnum = math.random(1, 5)
- if hitnum == 1 then
- so("199148971", ref, 1, 1)
- else
- if hitnum == 2 then
- so("199149025", ref, 1, 1)
- else
- if hitnum == 3 then
- so("199149072", ref, 1, 1)
- else
- if hitnum == 4 then
- so("199149109", ref, 1, 1)
- else
- if hitnum == 5 then
- so("199149119", ref, 1, 1)
- end
- end
- end
- end
- end
- StaggerHit.Value = true
- end
- end
- end
- do
- if d.className == "Part" and d.Name=="Torso" then
- head = d
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- if stun == nil then
- stun = math.random(5, 10)
- end
- local Rang = nil
- if Ranged == false then
- Rang = true
- end
- local stag = nil
- if shbash == true then
- stag = true
- end
- Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
- end
- end
- end
- do
- -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
- end
- end
- end
- end
- end
- end
- rayCast = function(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
- LastPoint = Point
- effect = function(Color, Ref, LP, P1, returnn)
- if LP == nil or P1 == nil then
- return
- end
- local effectsmsh = Instance.new("CylinderMesh")
- effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
- effectsmsh.Name = "Mesh"
- local effectsg = Instance.new("Part")
- NoOutline(effectsg)
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.5, 1, 0.5)
- effectsg.Parent = workspace
- effectsmsh.Parent = effectsg
- effectsg.BrickColor = BrickColor.new(Color)
- effectsg.Reflectance = Ref
- local point1 = P1
- local mg = (LP.p - point1.p).magnitude
- effectsg.Size = Vector3.new(0.5, mg, 0.5)
- effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
- effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
- game:GetService("Debris"):AddItem(effectsg, 2)
- if returnn then
- return effectsg
- end
- if not returnn then
- table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
- end
- end
- MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
- else
- if Type == 2 then
- table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
- else
- if Type == 3 then
- table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
- end
- end
- end
- end
- MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
- end
- MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
- end
- MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
- end
- MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
- local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
- end
- MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
- local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
- end
- MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
- local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- d = Instance.new("Decal")
- d.Parent = prt
- d.Texture = "http://www.roblox.com/asset/?id=26356434"
- d.Face = "Top"
- d = Instance.new("Decal")
- d.Parent = prt
- d.Texture = "http://www.roblox.com/asset/?id=26356434"
- d.Face = "Bottom"
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
- end
- ElecEffect = function(cff, x, y, z)
- local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
- prt.Anchored = true
- prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
- prt.CFrame = cf(prt.Position)
- game:GetService("Debris"):AddItem(prt, 10)
- xval = math.random() / 3
- yval = math.random() / 3
- zval = math.random() / 3
- msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
- Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
- end
- CloneBody = function()
- for _,v in pairs(Torso.Parent:children()) do
- if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
- local c = part(3, workspace, 0, 0.5, BrickColor.new("White"), "Effect", v.Size)
- c.Anchored = true
- c.CFrame = v.CFrame
- game:GetService("Debris"):AddItem(c, 5)
- if v.Name == "Head" then
- cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
- end
- table.insert(Effects, {c, "Disappear", 0.05})
- end
- end
- end
- Clone = function(duration)
- for _,v in pairs(Torso.Parent:children()) do
- if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
- local c = part(3, workspace, 0, 0, BrickColor.new("White"), "Effect", v.Size)
- c.Anchored = true
- c.CFrame = v.CFrame
- game:GetService("Debris"):AddItem(c, 5)
- if v.Name == "Head" then
- cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
- end
- table.insert(Effects, {c, "Disappear", duration})
- else
- do
- do
- if v.className == "Hat" then
- n = v.Handle:clone()
- n:BreakJoints()
- n.archivable = true
- n.Anchored = true
- n.CanCollide = false
- n.Name = "Effect"
- n.BrickColor = BrickColor.new("White")
- n.Parent = workspace
- n.CFrame = v.Handle.CFrame
- n.Transparency = 1
- n:BreakJoints()
- table.insert(Effects, {n, "Disappear", duration})
- end
- -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT
- -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- end
- for _,v in pairs(modelzorz:children()) do
- if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
- n = v:clone()
- for _,b in pairs(n:children()) do
- if b.className == "Motor" then
- b.Parent = nil
- end
- end
- n.archivable = true
- n.Anchored = true
- n.CanCollide = false
- n.Name = "Effect"
- n.BrickColor = BrickColor.new("White")
- n.Parent = workspace
- n.CFrame = v.CFrame
- n.Transparency = 0
- n:BreakJoints()
- table.insert(Effects, {n, "Disappear", duration})
- end
- end
- end
- Cloak = function()
- so("697784157", Torso, 1, 1)
- Face.Parent = nil
- Clone(0.02)
- for _,v in pairs(Torso.Parent:children()) do
- do
- if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- wait()
- v.Transparency = v.Transparency + 0.1
- end
- v.Transparency = 1
- end))
- end
- if v.className == "Hat" then
- do
- hatp = v.Handle
- coroutine.resume(coroutine.create(function(derp)
- for i = 0, 1, 0.1 do
- wait()
- derp.Transparency = derp.Transparency + 0.1
- end
- derp.Transparency = 1
- end), hatp)
- -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- end
- for _,v in pairs(modelzorz:children()) do
- if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- wait()
- v.Transparency = v.Transparency + 0.1
- end
- v.Transparency = 1
- end))
- end
- end
- end
- UnCloak = function()
- so("697784157", Torso, 1, 1.1)
- Face.Parent = Head
- for _,v in pairs(Torso.Parent:children()) do
- do
- if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- wait()
- v.Transparency = v.Transparency - 0.1
- end
- v.Transparency = 0
- end))
- end
- if v.className == "Hat" then
- do
- hatp = v.Handle
- coroutine.resume(coroutine.create(function(derp)
- for i = 0, 1, 0.1 do
- wait()
- derp.Transparency = derp.Transparency - 0.1
- end
- derp.Transparency = 1
- end), hatp)
- -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- end
- for _,v in pairs(modelzorz:children()) do
- if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- wait()
- v.Transparency = v.Transparency - 0.1
- end
- for i = 0, 1, 0.3 do
- wait()
- v.Transparency = 0
- end
- end))
- end
- end
- end
- Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
- if hit.Parent == nil then
- return
- end
- if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
- ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref.Anchored = true
- ref.CFrame = cf(hit.Position)
- game:GetService("Debris"):AddItem(ref, 1)
- hitnum = math.random(1, 5)
- if hitnum == 1 then
- so("199148971", ref, 1, 1)
- else
- if hitnum == 2 then
- so("199149025", ref, 1, 1)
- else
- if hitnum == 3 then
- so("199149072", ref, 1, 1)
- else
- if hitnum == 4 then
- so("199149109", ref, 1, 1)
- else
- if hitnum == 5 then
- so("199149119", ref, 1, 1)
- end
- end
- end
- end
- end
- StaggerHit.Value = true
- end
- h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
- return
- end
- if Player.Neutral == false then
- if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
- return
- end
- if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
- return
- end
- end
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = game:service("Players").LocalPlayer
- c.Parent = h
- RecentEnemy.Value = hit.Parent
- game:GetService("Debris"):AddItem(c, 0.5)
- if doing4 == false then
- minim = minim * Atk.Value
- maxim = maxim * Atk.Value
- end
- Damage = 0
- if minim == maxim then
- Damage = maxim
- else
- Damage = math.random(minim, maxim)
- end
- blocked = false
- enblock = nil
- Stats = hit.Parent:findFirstChild("Stats")
- if Stats == nil then
- Character.Stats:Clone().Parent=hit.Parent
- end
- if Stats ~= nil then
- Stats.Defense.Value=1
- invis = Stats:findFirstChild("Invisibility")
- if (ranged == false or ranged == nil) and invis ~= nil then
- invis.Value = 0
- end
- enblock = Stats:findFirstChild("Block")
- if enblock ~= nil and enblock.Value == true then
- blocked = true
- end
- if Stats:findFirstChild("Defense") ~= nil then
- if doing2 ~= true and doing4 ~= true then
- local divide = Stats.Defense.Value
- Damage = Damage / divide
- end
- do
- Damage = Damage
- if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
- hitnum = math.random(1, 5)
- if hitnum == 1 then
- so("199149321", hit, 1, 1)
- else
- if hitnum == 2 then
- so("199149338", hit, 1, 1)
- else
- if hitnum == 3 then
- so("199149367", hit, 1, 1)
- else
- if hitnum == 4 then
- so("199149409", hit, 1, 1)
- else
- if hitnum == 5 then
- so("199149452", hit, 1, 1)
- end
- end
- end
- end
- end
- else
- if ranged == false or ranged == nil and blocked ~= true then
- hitnum = math.random(1, 6)
- if hitnum == 1 then
- so("199149137", hit, 1, 1)
- else
- if hitnum == 2 then
- so("199149186", hit, 1, 1)
- else
- if hitnum == 3 then
- so("199149221", hit, 1, 1)
- else
- if hitnum == 4 then
- so("199149235", hit, 1, 1)
- else
- if hitnum == 5 then
- so("199149269", hit, 1, 1)
- else
- if hitnum == 6 then
- so("199149297", hit, 1, 1)
- end
- end
- end
- end
- end
- end
- end
- end
- if Damage <= 3 and staghit == true and ranged ~= true then
- StaggerHit.Value = true
- end
- if Stats:findFirstChild("Stun") ~= nil then
- if blocked == true then
- incstun = incstun / 2
- end
- if Stats.Stun.Value < Stats.StunThreshold.Value then
- Stats.Stun.Value = Stats.Stun.Value + incstun
- end
- end
- if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
- Stats.Stagger.Value = true
- end
- if blocked == true then
- showDamage(hit.Parent, "Block", "Damage")
- if ranged ~= true then
- enblock.Value = false
- Stagger.Value = true
- hitnum = math.random(1, 2)
- if hitnum == 1 then
- so("199148933", hit, 1, 1)
- else
- if hitnum == 2 then
- so("199148947", hit, 1, 1)
- end
- end
- end
- else
- Damage = math.floor(Damage)
- if hit.Parent:findFirstChild("Mark") == nil then
- d = it("BoolValue", hit.Parent)
- d.Name = "Mark"
- b = it("NumberValue", d)
- b.Name = "MarkTime"
- b.Value = 200
- v = it("NumberValue", d)
- v.Name = "MarkValue"
- v.Value = 0
- if doing4 == true then
- v.Value = 10
- end
- sz = it("NumberValue", d)
- sz.Name = "MarkSize"
- sz.Value = 5
- st = it("StringValue", d)
- st.Name = "MarkType"
- st.Value = "Adjudicator"
- local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
- if tehpart == nil then
- tehpart = hit.Parent:findFirstChild("Torso")
- end
- if hit.Parent.Name == "Neflhelm" then
- tehpart = hit
- end
- if tehpart ~= nil then
- markgui = it("BillboardGui", tehpart)
- markgui.Name = "Mark Gui"
- markgui.Size = UDim2.new(7, 0, 7, 0)
- markgui.StudsOffset = vt(0, 10, 0)
- markgui.AlwaysOnTop = true
- markscy = it("ImageLabel", markgui)
- markscy.Name = "Scythe"
- markscy.BackgroundTransparency = 1
- markscy.Image = "rbxassetid://278007861"
- markscy.ImageColor3 = Color3.new(1, 0, 0)
- markscy.Size = UDim2.new(1, 0, 1, 0)
- table.insert(MarkedGUI, {markgui, markscy})
- end
- table.insert(Marked, {d, b, v, sz})
- else
- mark = hit.Parent:findFirstChild("Mark")
- if mark:findFirstChild("MarkTime") ~= nil then
- mark.MarkTime.Value = 700
- end
- if mark:findFirstChild("MarkValue") ~= nil then
- if mark.MarkValue.Value >= 10 then
- if mark:findFirstChild("MarkTime") ~= nil then
- mark.MarkTime.Value = 400
- end
- if mark.MarkType.Value == "Classic" then
- mark.Parent = nil
- Damage = Damage * 2
- print("double damage")
- if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
- ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref.Anchored = true
- ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
- game:GetService("Debris"):AddItem(ref, 5)
- local nr = NumberRange.new
- local ns = NumberSequence.new
- local cs = ColorSequence.new
- local parti = it("ParticleEmitter")
- parti.Color = cs(NewCol, Color3.new(0, 0, 0))
- parti.LightEmission = 0
- parti.Size = ns(10)
- parti.Texture = "http://www.roblox.com/asset/?id=243660364"
- transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
- parti.Transparency = transseq
- parti.ZOffset = 1
- parti.Acceleration = vt(0, 0, 0)
- parti.Lifetime = nr(1)
- parti.Rate = 20
- parti.Rotation = nr(0, 360)
- parti.Speed = nr(0)
- parti.VelocitySpread = 0
- parti.Parent = ref
- parti.Enabled = true
- table.insert(Effects, {parti, "PartiEmi", 20})
- markscy = it("ImageLabel", markgui)
- markscy.Name = "Scythe"
- markscy.BackgroundTransparency = 1
- markscy.Image = "rbxassetid://258927926"
- markscy.ImageColor3 = Color3.new(1, 0, 0)
- markscy.Size = UDim2.new(1, 0, 1, 0)
- table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
- end
- elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
- da = math.random(1, 4)
- inc = 1
- if doing2 == true then
- inc = 2
- end
- if da == 1 then
- DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true)
- DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
- else
- if da == 2 then
- DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true)
- DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
- else
- if da == 3 then
- DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true)
- DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
- else
- if da == 4 then
- DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true)
- DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
- end
- end
- end
- end
- ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
- ref.Anchored = true
- ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
- game:GetService("Debris"):AddItem(ref, 5)
- markgui = it("BillboardGui", ref)
- markgui.Name = "Mark Gui"
- markgui.Size = UDim2.new(7, 0, 7, 0)
- markgui.StudsOffset = vt(0, 10, 0)
- markgui.AlwaysOnTop = true
- markscy = it("ImageLabel", markgui)
- markscy.Name = "Scythe"
- markscy.BackgroundTransparency = 1
- markscy.Image = "rbxassetid://278007453"
- markscy.ImageColor3 = Color3.new(1, 0, 0)
- markscy.Size = UDim2.new(1, 0, 1, 0)
- table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
- end
- elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then
- mark.MarkValue.Value = 10
- else
- mark.MarkValue.Value = mark.MarkValue.Value + 1
- end
- end
- if mark:findFirstChild("MarkSize") ~= nil then
- mark.MarkSize.Value = 5
- end
- coroutine.resume(coroutine.create(function(Hum, Dam)
- hit.Parent.Humanoid:TakeDamage(Damage)
- end), h, Damage)
- pursuitnum = 0
- if isinvis.Value == false then
- invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5)
- end
- showDamage(hit.Parent, Damage, "Damage")
- if DecreaseState ~= nil then
- DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
- end
- if Type == "NormalDecreaseMvmt1" then
- DecreaseStat(hit.Parent, "Movement", 0.1, 200)
- end
- if Type == "Knockdown" then
- hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
- local bodvol = Instance.new("BodyVelocity")
- bodvol.velocity = angle * knockback
- bodvol.P = 500
- bodvol.maxForce = Vector3.new(2000, 2000, 2000)
- bodvol.Parent = hit
- rl = Instance.new("BodyAngularVelocity")
- rl.P = 3000
- rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
- rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
- rl.Parent = hit
- game:GetService("Debris"):AddItem(bodvol, 0.5)
- game:GetService("Debris"):AddItem(rl, 0.5)
- else
- do
- if Type == "Knockdown2" then
- hum = hit.Parent.Humanoid
- local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
- local bodvol = Instance.new("BodyVelocity")
- bodvol.velocity = angle * knockback
- bodvol.P = 500
- bodvol.maxForce = Vector3.new(2000, 2000, 2000)
- bodvol.Parent = hit
- game:GetService("Debris"):AddItem(bodvol, 0.5)
- else
- do
- if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
- vp = Instance.new("BodyVelocity")
- vp.P = 500
- vp.maxForce = Vector3.new(math.huge, 0, math.huge)
- if KnockbackType == 1 then
- vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
- else
- if KnockbackType == 2 then
- vp.velocity = Property.CFrame.lookVector * knockback
- end
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- end
- debounce = Instance.new("BoolValue")
- debounce.Name = "DebounceHit"
- debounce.Parent = hit.Parent
- debounce.Value = true
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, 0.5)
- CRIT = false
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- -- end
- --end
- --end
- --end
- --end
- showDamage = function(Char, Dealt, Type)
- m = Instance.new("Model")
- m.Name = "Effect"
- c = Instance.new("Part")
- c.Transparency = 1
- c.Name = "Head"
- c.TopSurface = 0
- c.BottomSurface = 0
- c.formFactor = "Plate"
- c.Size = Vector3.new(1, 0.4, 1)
- b = Instance.new("BillboardGui", c)
- b.Size = UDim2.new(5, 0, 5, 0)
- b.AlwaysOnTop = true
- damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
- if Type == "Damage" then
- damgui.Font = "SciFi"
- if Dealt == "Block" then
- damgui.TextColor3 = BrickColor.new("White").Color
- else
- if Dealt < 3 then
- damgui.TextColor3 = BrickColor.new("White").Color
- else
- if Dealt >= 3 and Dealt < 20 then
- damgui.TextColor3 = BrickColor.new("White").Color
- else
- damgui.TextColor3 = BrickColor.new("White").Color
- damgui.Font = "SciFi"
- end
- end
- end
- else
- if Type == "Debuff" then
- damgui.TextColor3 = BrickColor.new("White").Color
- else
- if Type == "Interrupt" then
- damgui.TextColor3 = BrickColor.new("New Yeller").Color
- end
- end
- end
- damgui.TextScaled = true
- ms = Instance.new("CylinderMesh")
- ms.Scale = Vector3.new(0.8, 0.8, 0.8)
- ms.Parent = c
- c.Reflectance = 0
- Instance.new("BodyGyro").Parent = c
- c.Parent = m
- if Char:findFirstChild("Head") ~= nil then
- c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
- else
- if Char.Parent:findFirstChild("Head") ~= nil then
- c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
- end
- end
- f = Instance.new("BodyPosition")
- f.P = 2000
- f.D = 100
- f.maxForce = Vector3.new(545000, 545000, 545000)
- if Type == "Damage" then
- f.position = c.Position + Vector3.new(0, 3, 0)
- else
- if Type == "Debuff" or Type == "Interrupt" then
- f.position = c.Position + Vector3.new(0, 5, 0)
- end
- end
- f.Parent = c
- game:GetService("Debris"):AddItem(m, 5)
- table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
- c.CanCollide = false
- m.Parent = workspace
- c.CanCollide = false
- end
- combo = 0
- ob1d = function(mouse)
- if arcorb == true then
- arcorb = false
- end
- if attack == true or equipped == false then
- return
- end
- deb = 0.5
- hold = true
- if combo == 0 then
- combo = 1
- attackone()
- else
- if combo == 1 then
- combo = 2
- attacktwo()
- else
- if combo == 2 then
- combo = 3
- attackthree()
- else
- if combo == 3 then
- combo = 0
- attackfour()
- end
- end
- end
- end
- coroutine.resume(coroutine.create(function()
- for i = 1, 50 do
- if attack == false then
- swait()
- end
- end
- if attack == false then
- combo = 0
- end
- end))
- end
- ob1u = function(mouse)
- hold = false
- end
- buttonhold = false
- fenbarmove1.MouseButton1Click:connect(do1)
- fenbarmove2.MouseButton1Click:connect(do2)
- fenbarmove3.MouseButton1Click:connect(do3)
- fenbarmove4.MouseButton1Click:connect(do4)
- eul = 0
- equipped = false
- key = function(key)
- if attack == true then
- return
- end
- if key == "f" then
- pressedf = true
- fnumb = 0
- attack = true
- if equipped == false then
- equipped = true
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "Right Shoulder"
- RW.Part0 = ch.Torso
- RW.C0 = cf(1.5, 0.5, 0)
- RW.C1 = cf(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- LW.Name = "Left Shoulder"
- LW.Part0 = ch.Torso
- LW.C0 = cf(-1.5, 0.5, 0)
- LW.C1 = cf(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- Animate.Parent = nil
- equipanim()
- else
- equipped = false
- hideanim()
- LH.C1 = LHC1
- RH.C1 = RHC1
- Animate.Parent = Humanoid
- swait(0)
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end
- attack = false
- end
- if equipped == false then
- return
- end
- if key == "e" and invisnum.Value > 5 then
- Invisibility()
- end
- if key == "z" then
- do1()
- end
- if key == "g" then
- secrit()
- end
- if key == "x" then
- do2()
- end
- if key == "c" then
- do3()
- end
- if key == "v" then
- do4()
- end
- end
- key2 = function(key)
- end
- s = function(mouse)
- mouse.Button1Down:connect(function()
- ob1d(mouse)
- end)
- mouse.Button1Up:connect(function()
- ob1u(mouse)
- end)
- mouse.KeyDown:connect(key)
- mouse.KeyUp:connect(key2)
- player = Player
- ch = Character
- MMouse = mouse
- end
- ds = function(mouse)
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
- print("Renegade loaded.")
- local mananum = 0
- local donum = 0
- local stunnum = 0
- local staggeranim = false
- local stunanim = false
- local Point, LastPoint = nil, nil
- local passivenum = 100
- local pnum2 = 0
- local walk = 0
- local walkforw = true
- local addpassive = 0
- local gashnum = 0
- while true do
- swait()
- if Humanoid.Health <= 0 then
- attack = true
- for i = 1, #Marked do
- if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then
- MarkedGUI[i][1].Parent = nil
- end
- table.remove(MarkedGUI, i)
- table.remove(Marked, i)
- end
- resumeControl()
- modelzorz.Parent = workspace
- game:GetService("Debris"):AddItem(modelzorz, 30)
- for i = 1, #Weapon do
- Weapon[i].Parent = modelzorz
- Weapon[i].CanCollide = true
- end
- for i = 1, #Welds do
- if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
- Welds[i].Parent = nil
- else
- Welds[i].Parent = prt1
- end
- end
- end
- do
- if fnumb < 21 then
- fnumb = fnumb + 1
- if pressedf == false then
- fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
- tellbar.TextTransparency = tellbar.TextTransparency - 0.05
- tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
- else
- if fnumb == 20 then
- fenframe5.Parent = nil
- print("daigui")
- end
- fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
- tellbar.TextTransparency = tellbar.TextTransparency + 0.05
- tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
- end
- end
- if hbwld.Parent == nil then
- hitbox2.Name = "Hitbox"
- else
- hitbox2.Name = "Hitbox2"
- end
- if doing2 == true then
- gashnum = gashnum + 1
- if (gashnum) % 10 == 0 then
- if 0 < mana.Value then
- mana.Value = mana.Value - -2
- else
- do2()
- end
- end
- MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 0.5, 0.5, 0.5, 0.05)
- MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025)
- MagicBlock(BrickColor.new("White"), prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) * cf(0, math.random(-100, 100) / 100, math.random(-200, 200) / 100), 0, 0, 0, 1, 1, 1, 1, 1)
- end
- hitbox2.Parent = hitbox.Parent
- hitbox2.Size = hitbox.Size
- hitbox2.CFrame = hitboxCF
- hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
- hitbox.Transparency = 1
- hitbox2.Transparency = 1
- for i = 1, #Marked do
- if Marked[i] ~= nil then
- if Marked[i][1].Parent == nil then
- MarkedGUI[i][1].Parent = nil
- table.remove(MarkedGUI, i)
- table.remove(Marked, i)
- else
- if MarkedGUI[i][1].Parent ~= nil then
- MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0)
- if 0 < Marked[i][4].Value then
- Marked[i][4].Value = Marked[i][4].Value - 1
- end
- if MarkedGUI[i][2].Parent ~= nil then
- if Marked[i][3].Value == 0 then
- MarkedGUI[i][2].Image = "rbxassetid://278007861"
- else
- if Marked[i][3].Value == 1 then
- MarkedGUI[i][2].Image = "rbxassetid://278007839"
- else
- if Marked[i][3].Value == 2 then
- MarkedGUI[i][2].Image = "rbxassetid://278007803"
- else
- if Marked[i][3].Value == 3 then
- MarkedGUI[i][2].Image = "rbxassetid://278007757"
- else
- if Marked[i][3].Value == 4 then
- MarkedGUI[i][2].Image = "rbxassetid://278007704"
- else
- if Marked[i][3].Value == 5 then
- MarkedGUI[i][2].Image = "rbxassetid://278007663"
- else
- if Marked[i][3].Value == 6 then
- MarkedGUI[i][2].Image = "rbxassetid://278007643"
- else
- if Marked[i][3].Value == 7 then
- MarkedGUI[i][2].Image = "rbxassetid://278007606"
- else
- if Marked[i][3].Value == 8 then
- MarkedGUI[i][2].Image = "rbxassetid://278007570"
- else
- if Marked[i][3].Value == 9 then
- MarkedGUI[i][2].Image = "rbxassetid://278007545"
- else
- if Marked[i][3].Value == 10 then
- MarkedGUI[i][2].Image = "rbxassetid://278007515"
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- if Marked[i][2] ~= nil then
- Marked[i][2].Value = Marked[i][2].Value - 1
- if Marked[i][2].Value <= 0 then
- Marked[i][1].Parent = nil
- MarkedGUI[i][1].Parent = nil
- table.remove(MarkedGUI, i)
- table.remove(Marked, i)
- end
- end
- end
- end
- end
- scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0)
- scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
- scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0)
- testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0)
- if invisible == true then
- addpassive = addpassive + 1
- for i = 1, 1 do
- MagicCircle2(BrickColor.new("White"), scarfp2.CFrame * euler(0, 0, math.rad(180)) * cf(math.random(-300, 300) / 100, math.random(-200, 200) / 100, math.random(-300, 300) / 100), 1.5, 10, 1.5, -0.2, 1, -0.2, 0.2)
- end
- if 50 <= addpassive then
- addpassive = 0
- for _,c in pairs(workspace:children()) do
- local hum = (c:findFirstChild("Humanoid"))
- if hum ~= nil then
- local head = nil
- for _,d in pairs(c:children()) do
- if d.Name == "HumanoidRootPart" then
- local targ = d.Position - RootPart.Position
- local mag = targ.magnitude
- if mag <= 60 and c.Name ~= Player.Name then
- mark = d.Parent:findFirstChild("Mark")
- if mark ~= nil then
- if (mark:findFirstChild("MarkTime")) ~= nil then
- mark.MarkTime.Value = 500
- end
- if (mark:findFirstChild("MarkValue")) ~= nil then
- if (mark:findFirstChild("MarkSize")) ~= nil then
- mark.MarkSize.Value = 5
- end
- if mark.MarkValue.Value < 10 then
- mark.MarkValue.Value = mark.MarkValue.Value + 1
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- do
- pursuitnum = pursuitnum + 1
- if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then
- invisnum.Value = invisnum.Value - 1
- passivenum = 0
- end
- if 8 <= passivenum and invisible == true then
- invisnum.Value = invisnum.Value - 1
- pursuitnum = 0
- passivenum = 0
- end
- if 100 <= invisnum.Value then
- invisnum.Value = 100
- end
- if invisible == true and invisnum.Value <= 0 then
- Invisibility()
- end
- passivenum = passivenum + 1
- if Stagger.Value == true and staggeranim == false then
- coroutine.resume(coroutine.create(function()
- staggeranim = true
- while attack == true do
- swait()
- end
- StaggerAnim()
- StaggerHit.Value = false
- Stagger.Value = false
- staggeranim = false
- end))
- end
- if StaggerHit.Value == true and staggeranim == false then
- coroutine.resume(coroutine.create(function()
- staggeranim = true
- while attack == true do
- swait()
- end
- StaggerHitt()
- StaggerHit.Value = false
- Stagger.Value = false
- staggeranim = false
- end))
- end
- if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
- Humanoid.WalkSpeed = 0
- else
- Humanoid.WalkSpeed = 16 * Mvmt.Value
- end
- if StunT.Value <= Stun.Value and stunanim == false then
- coroutine.resume(coroutine.create(function()
- stunanim = true
- while attack == true do
- swait()
- end
- StunAnim()
- Stun.Value = 0
- stunanim = false
- end))
- end
- local stunnum2 = 30
- if stunnum2 <= stunnum then
- if 0 < Stun.Value then
- Stun.Value = Stun.Value - 1
- end
- stunnum = 0
- end
- stunnum = stunnum + 1
- if 0.5 <= donum then
- handidle = true
- else
- if donum <= 0 then
- handidle = false
- end
- end
- if handidle == false then
- donum = donum + 0.003
- else
- donum = donum - 0.003
- end
- local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = RootPart.Velocity.y
- hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- if equipped == true then
- if attack == false then
- idle = idle + 1
- else
- idle = 0
- end
- if (500 <= idle and attack ~= false) or Anim == "Walk" then
- if walkforw == true then
- RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
- LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
- else
- RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
- LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
- end
- else
- RH.C1 = clerp(RH.C1, RHC1, 0.2)
- LH.C1 = clerp(LH.C1, LHC1, 0.2)
- end
- if 1 < RootPart.Velocity.y and hitfloor == nil then
- Anim = "Jump"
- if attack == false then
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
- wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
- Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
- LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
- end
- else
- if RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- if attack == false then
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
- wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
- Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
- end
- else
- if torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- if attack == false then
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
- wld1.C0 = clerp(wld1.C0, euler(0, -0.4 - (donum) / 2, 0) * cf(0, -2, 0) * euler(1, 0, 0), 0.2)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.15)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.15)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2 + (donum) / 3, 0, 0.5 - (donum) / 3) * euler(0, 2.1, 0), 0.15)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
- LW.C0 = clerp(LW.C0, cf(-1.3 - (donum) / 3, 0.5, -0.4 + (donum) / 3) * euler(0.7 + (donum) / 6, 0, 0.4 + (donum) / 6) * euler(0, -1.57, 0), 0.15)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.2)
- LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.2)
- end
- else
- if 2 < torvel and torvel < 30 and hitfloor ~= nil then
- Anim = "Walk"
- walk = walk + 1
- if 15 - 5 * Mvmt.Value <= walk then
- walk = 0
- if walkforw == true then
- walkforw = false
- else
- if walkforw == false then
- walkforw = true
- end
- end
- end
- if attack == false then
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
- wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
- Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
- end
- else
- if 30 <= torvel and hitfloor ~= nil then
- Anim = "Walk"
- walk = walk + 1
- if 15 - 5 * Mvmt.Value <= walk then
- walk = 0
- if walkforw == true then
- walkforw = false
- else
- if walkforw == false then
- walkforw = true
- end
- end
- end
- if attack == false then
- handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
- wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
- Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
- RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
- RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
- LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
- end
- end
- end
- end
- end
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[2] == "CylinderClang" then
- if Thing[3] <= 1 then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[7] = Thing[1].CFrame
- effect("New Yeller", 0, Thing[8], Thing[7])
- Thing[8] = Thing[7]
- Thing[3] = Thing[3] + Thing[4]
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- if Thing[2] == "showDamage" then
- if Thing[6] < Thing[5] then
- Thing[6] = Thing[6] + 1
- else
- if Thing[6] < Thing[7] then
- Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
- Thing[6] = Thing[6] + 1
- else
- if Thing[6] < Thing[8] then
- Thing[6] = Thing[6] + 1
- else
- if Thing[6] < Thing[9] then
- Thing[6] = Thing[6] + 1
- Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
- Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
- Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
- else
- Thing[1].Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- if Thing[2] == "PartiEmi" then
- Thing[3] = Thing[3] - 1
- if Thing[3] <= 0 then
- Thing[1].Enabled = false
- table.remove(Effects, e)
- end
- end
- if Thing[2] == "AdjuEff" then
- if 0 < Thing[3] then
- Thing[3] = Thing[3] - 1
- Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
- Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
- Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
- else
- Thing[1].Parent = nil
- table.remove(Effects, e)
- end
- end
- if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Block3" then
- Thing[9] = Thing[9] + 0.5
- Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
- Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Skull" then
- Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Cylinder" then
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Cylinder2" then
- Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Elec" then
- Mesh = Thing[10]
- Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- end
- end
- end
- end
- end
- end
- end
- end
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- do
- fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
- fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
- fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
- fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
- fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
- fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true)
- fenbarblock3.Text = "Pursuit(" .. invisnum.Value .. ")"
- fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
- fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
- fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
- fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
- for _,c in pairs(Decrease:children()) do
- if (c:findFirstChild("Duration")) ~= nil then
- c.Duration.Value = c.Duration.Value - 1
- if c.Duration.Value <= 0 then
- c.Parent = nil
- end
- end
- if c.Name == "DecreaseAtk" then
- decreaseatk = decreaseatk + c.Value
- else
- if c.Name == "DecreaseDef" then
- decreasedef = decreasedef + c.Value
- else
- if c.Name == "DecreaseMvmt" then
- decreasemvmt = decreasemvmt + c.Value
- end
- end
- end
- end
- Atk.Value = math.huge - (decreaseatk)
- if Atk.Value <= 0 then
- Atk.Value = math.huge
- end
- Def.Value = math.huge - (decreasedef)
- if Def.Value <= 0 then
- Def.Value = math.huge
- end
- Mvmt.Value = 1 - (decreasemvmt)
- if Mvmt.Value <= 0 then
- Mvmt.Value = 0
- end
- decreaseatk = 0
- decreasedef = 0
- decreasemvmt = 0
- AtkVal = Atk.Value * 100
- AtkVal = math.floor(AtkVal)
- AtkVal = AtkVal / 100
- fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
- DefVal = Def.Value * 100
- DefVal = math.floor(DefVal)
- DefVal = DefVal / 100
- fenbardef.Text = "Defense\n(" .. DefVal .. ")"
- MvmtVal = Mvmt.Value * 100
- MvmtVal = math.floor(MvmtVal)
- MvmtVal = MvmtVal / 100
- if Rooted.Value == true then
- MvmtVal = 0
- end
- fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
- if StunT.Value <= Stun.Value then
- fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
- else
- fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
- end
- fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
- if 100 <= mana.Value then
- mana.Value = 100
- else
- if mananum <= 12 then
- mananum = mananum + 1
- else
- mananum = 0
- mana.Value = mana.Value + 100
- end
- end
- for i = 1, #cooldowns do
- if cooldownmax <= cooldowns[i] then
- cooldowns[i] = cooldownmax
- else
- cooldowns[i] = cooldowns[i] + cooldownsadd[i]
- end
- end
- -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement