-- Void by Ietahuoy
-- Converted by TypicalUsername
wait(1/30)
script.Parent=nil
do
local Mist = Instance.new("ParticleEmitter")
Mist.Name = "Mist"
Mist.Lifetime = NumberRange.new(2, 2)
Mist.SpreadAngle = Vector2.new(360, 360)
Mist.Transparency = NumberSequence.new(0.9, 1)
Mist.Color = ColorSequence.new(Color3.fromRGB(185, 0, 0))
Mist.Drag = 6
Mist.VelocitySpread = 360
Mist.Speed = NumberRange.new(5, 12)
Mist.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.1, 3), NumberSequenceKeypoint.new(0.5, 3), NumberSequenceKeypoint.new(1, 3)})
Mist.Enabled = false
Mist.ZOffset = 2
Mist.Rate = 100
Mist.Texture = "rbxassetid://431361643"
Mist.Parent = script
local Blood = Instance.new("ParticleEmitter")
Blood.Name = "Blood"
Blood.Lifetime = NumberRange.new(0.25, 1.75)
Blood.SpreadAngle = Vector2.new(360, 360)
Blood.Transparency = NumberSequence.new(0.25)
Blood.Color = ColorSequence.new(Color3.fromRGB(165, 0, 0))
Blood.VelocitySpread = 360
Blood.Speed = NumberRange.new(5, 14)
Blood.Size = NumberSequence.new(0.5, 0)
Blood.Enabled = false
Blood.Acceleration = Vector3.new(0, -20, 0)
Blood.ZOffset = 1
Blood.Rate = 100000
Blood.Texture = "rbxassetid://134531274"
Blood.EmissionDirection = Enum.NormalId.Front
Blood.Parent = script
local Axe = Instance.new("Part")
Axe.Name = "Axe"
Axe.Anchored = true
Axe.CanCollide = false
Axe.Size = Vector3.new(2.476452112197876, 12.079339027404785, 0.3624209463596344)
Axe.CFrame = CFrame.new(-57.181209564208984, 1.2382584810256958, -23.03969955444336, 0, 0, 1, -1, 0, 0, 0, -1, 0)
local Mesh = Instance.new("SpecialMesh")
Mesh.Scale = Vector3.new(0.007248417939990759, 0.007248417939990759, 0.0072484188713133335)
Mesh.MeshId = "rbxassetid://867643049"
Mesh.TextureId = "rbxassetid://867643060"
Mesh.MeshType = Enum.MeshType.FileMesh
Mesh.Parent = Axe
local Attachment = Instance.new("Attachment")
Attachment.WorldSecondaryAxis = Vector3.new(-0.7071068286895752, 0.7071068286895752, 7.45057615603173e-09)
Attachment.WorldOrientation = Vector3.new(3.018543850430433e-07, 3.018543850430433e-07, 45)
Attachment.CFrame = CFrame.new(0.7000000476837158, 5.999998092651367, 0, -0.7071068286895752, -0.7071068286895752, 5.268353309162421e-09, 0, -7.45057615603173e-09, -1.0000001192092896, 0.7071068286895752, -0.7071068286895752, 5.268353309162421e-09)
Attachment.WorldPosition = Vector3.new(-57.181209564208984, 0.53825843334198, -29.039697647094727)
Attachment.Axis = Vector3.new(-0.7071068286895752, 0, 0.7071068286895752)
Attachment.Rotation = Vector3.new(90, 3.018543850430433e-07, 135)
Attachment.WorldCFrame = CFrame.new(-57.181209564208984, 0.53825843334198, -29.039697647094727, 0.7071068286895752, -0.7071068286895752, 5.268353309162421e-09, 0.7071068286895752, 0.7071068286895752, -5.268353309162421e-09, 0, 7.45057615603173e-09, 1.0000001192092896)
Attachment.SecondaryAxis = Vector3.new(-0.7071068286895752, -7.45057615603173e-09, -0.7071068286895752)
Attachment.Position = Vector3.new(0.7000000476837158, 5.999998092651367, 0)
Attachment.Orientation = Vector3.new(90, -135, 0)
Attachment.WorldAxis = Vector3.new(0.7071068286895752, 0.7071068286895752, 0)
Attachment.Parent = Axe
local Attachment1 = Instance.new("Attachment")
Attachment1.WorldSecondaryAxis = Vector3.new(-0.7071068286895752, 0.7071068286895752, 4.371139183945161e-08)
Attachment1.WorldOrientation = Vector3.new(0.0000017709336361804162, 0.0000017709334088067408, 45)
Attachment1.CFrame = CFrame.new(0.8000000715255737, 1, 0, -0.7071068286895752, -0.7071068286895752, 3.090862321641907e-08, 0, -4.371139183945161e-08, -1.0000001192092896, 0.7071068286895752, -0.7071068286895752, 3.090862321641907e-08)
Attachment1.WorldPosition = Vector3.new(-57.181209564208984, 0.43825840950012207, -24.03969955444336)
Attachment1.Axis = Vector3.new(-0.7071068286895752, 0, 0.7071068286895752)
Attachment1.Rotation = Vector3.new(89.99999237060547, 0.0000017709336361804162, 135)
Attachment1.WorldCFrame = CFrame.new(-57.181209564208984, 0.43825840950012207, -24.03969955444336, 0.7071068286895752, -0.7071068286895752, 3.090862321641907e-08, 0.7071068286895752, 0.7071068286895752, -3.090862321641907e-08, 0, 4.371139183945161e-08, 1.0000001192092896)
Attachment1.SecondaryAxis = Vector3.new(-0.7071068286895752, -4.371139183945161e-08, -0.7071068286895752)
Attachment1.Position = Vector3.new(0.8000000715255737, 1, 0)
Attachment1.Orientation = Vector3.new(90, -135, 0)
Attachment1.WorldAxis = Vector3.new(0.7071068286895752, 0.7071068286895752, 0)
Attachment1.Parent = Axe
local Trail = Instance.new("Trail")
Trail.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0), Color3.fromRGB(255, 255, 255))
Trail.WidthScale = NumberSequence.new(1, 0.5)
Trail.Transparency = NumberSequence.new(0, 1)
Trail.Texture = "rbxassetid://2443461141"
Trail.MinLength = 1
Trail.Lifetime = 1
Trail.Parent = Axe
local Beam = Instance.new("Beam")
Beam.FaceCamera = true
Beam.CurveSize1 = -2
Beam.Segments = 100
Beam.Width1 = 5
Beam.Width0 = 5
Beam.CurveSize0 = 2
Beam.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)})
Beam.TextureLength = 5
Beam.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
Beam.Texture = "rbxassetid://446111271"
Beam.Parent = Axe
local Attachment2 = Instance.new("Attachment")
Attachment2.WorldSecondaryAxis = Vector3.new(0, 0, -1)
Attachment2.WorldOrientation = Vector3.new(80.00000762939453, -90, 90)
Attachment2.CFrame = CFrame.new(0.800000011920929, 1, 0, -0.17364811897277832, 0, 0.9848077893257141, 0, 1, 0, -0.9848077893257141, 0, -0.17364811897277832)
Attachment2.WorldPosition = Vector3.new(-57.181209564208984, 0.43825846910476685, -24.03969955444336)
Attachment2.Axis = Vector3.new(-0.17364811897277832, 0, -0.9848077893257141)
Attachment2.Rotation = Vector3.new(-180, 80.00000762939453, -180)
Attachment2.WorldCFrame = CFrame.new(-57.181209564208984, 0.43825846910476685, -24.03969955444336, -0.9848077893257141, 0, -0.17364811897277832, 0.17364811897277832, 0, -0.9848077893257141, -0, -1, 0)
Attachment2.Position = Vector3.new(0.800000011920929, 1, 0)
Attachment2.Orientation = Vector3.new(-0, 99.99999237060547, 0)
Attachment2.WorldAxis = Vector3.new(-0.9848077893257141, 0.17364811897277832, -0)
Attachment2.Parent = Axe
local Attachment3 = Instance.new("Attachment")
Attachment3.WorldSecondaryAxis = Vector3.new(0, 0, -1)
Attachment3.WorldOrientation = Vector3.new(79.99998474121094, -90, 90)
Attachment3.CFrame = CFrame.new(0.699999988079071, 6, 0, -0.1736481934785843, 0, 0.9848077297210693, 0, 1, 0, -0.9848077297210693, 0, -0.1736481934785843)
Attachment3.WorldPosition = Vector3.new(-57.181209564208984, 0.5382584929466248, -29.03969955444336)
Attachment3.Axis = Vector3.new(-0.1736481934785843, 0, -0.9848077297210693)
Attachment3.Rotation = Vector3.new(-180, 79.99998474121094, -180)
Attachment3.WorldCFrame = CFrame.new(-57.181209564208984, 0.5382584929466248, -29.03969955444336, -0.9848077297210693, 0, -0.1736481934785843, 0.1736481934785843, 0, -0.9848077297210693, -0, -1, 0)
Attachment3.Position = Vector3.new(0.699999988079071, 6, 0)
Attachment3.Orientation = Vector3.new(-0, 100, 0)
Attachment3.WorldAxis = Vector3.new(-0.9848077297210693, 0.1736481934785843, -0)
Attachment3.Parent = Axe
local Beam1 = Instance.new("Beam")
Beam1.FaceCamera = true
Beam1.CurveSize1 = -2
Beam1.Segments = 100
Beam1.Width1 = 5
Beam1.Width0 = 5
Beam1.CurveSize0 = 2
Beam1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)})
Beam1.TextureLength = 5
Beam1.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
Beam1.Texture = "rbxassetid://446111271"
Beam1.Parent = Axe
local Attachment4 = Instance.new("Attachment")
Attachment4.WorldSecondaryAxis = Vector3.new(1.54268171570493e-08, -5.757366494663074e-08, -1)
Attachment4.WorldOrientation = Vector3.new(-15, 90, -90)
Attachment4.CFrame = CFrame.new(0.800000011920929, 1, 0, 0.9659258723258972, 5.757366494663074e-08, -0.258819043636322, -5.960464477539063e-08, 1, 0, 0.258819043636322, 1.54268171570493e-08, 0.9659258723258972)
Attachment4.WorldPosition = Vector3.new(-57.181209564208984, 0.43825846910476685, -24.03969955444336)
Attachment4.Axis = Vector3.new(0.9659258723258972, -5.960464477539063e-08, 0.258819043636322)
Attachment4.Rotation = Vector3.new(-0, -15, -0.0000034150941701227566)
Attachment4.WorldCFrame = CFrame.new(-57.181209564208984, 0.43825846910476685, -24.03969955444336, 0.258819043636322, 1.54268171570493e-08, 0.9659258723258972, -0.9659258723258972, -5.757366494663074e-08, 0.258819043636322, 5.960464477539063e-08, -1, 0)
Attachment4.SecondaryAxis = Vector3.new(5.757366494663074e-08, 1, 1.54268171570493e-08)
Attachment4.Position = Vector3.new(0.800000011920929, 1, 0)
Attachment4.Orientation = Vector3.new(-0, -14.999998092651367, -0.000003415094397496432)
Attachment4.WorldAxis = Vector3.new(0.258819043636322, -0.9659258723258972, 5.960464477539063e-08)
Attachment4.Parent = Axe
local Attachment5 = Instance.new("Attachment")
Attachment5.WorldSecondaryAxis = Vector3.new(2.2886474937422463e-08, -1.2499545221089647e-07, -1)
Attachment5.WorldOrientation = Vector3.new(-15.00000286102295, 90, -90.00000762939453)
Attachment5.CFrame = CFrame.new(0.699999988079071, 6, 0, 0.9659258127212524, 1.2499545221089647e-07, -0.2588191032409668, -1.266597848825768e-07, 1, 1.0244573189766015e-08, 0.2588191032409668, 2.2886474937422463e-08, 0.9659258127212524)
Attachment5.WorldPosition = Vector3.new(-57.181209564208984, 0.5382584929466248, -29.03969955444336)
Attachment5.Axis = Vector3.new(0.9659258127212524, -1.266597848825768e-07, 0.2588191032409668)
Attachment5.Rotation = Vector3.new(-6.076768954699219e-07, -15.00000286102295, -0.0000074143490564893)
Attachment5.WorldCFrame = CFrame.new(-57.181209564208984, 0.5382584929466248, -29.03969955444336, 0.2588191032409668, 2.2886474937422463e-08, 0.9659258127212524, -0.9659258127212524, -1.2499545221089647e-07, 0.2588191032409668, 1.266597848825768e-07, -1, -1.0244573189766015e-08)
Attachment5.SecondaryAxis = Vector3.new(1.2499545221089647e-07, 1, 2.2886474937422463e-08)
Attachment5.Position = Vector3.new(0.699999988079071, 6, 0)
Attachment5.Orientation = Vector3.new(-5.869707706551708e-07, -15.00000286102295, -0.000007257071047206409)
Attachment5.WorldAxis = Vector3.new(0.2588191032409668, -0.9659258127212524, 1.266597848825768e-07)
Attachment5.Parent = Axe
local Beam2 = Instance.new("Beam")
Beam2.FaceCamera = true
Beam2.CurveSize1 = -2
Beam2.Segments = 100
Beam2.Width1 = 5
Beam2.Width0 = 5
Beam2.CurveSize0 = 2
Beam2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1)})
Beam2.TextureLength = 5
Beam2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
Beam2.Texture = "rbxassetid://446111271"
Beam2.Parent = Axe
local ParticleEmitter = Instance.new("ParticleEmitter")
ParticleEmitter.Lifetime = NumberRange.new(15, 30)
ParticleEmitter.SpreadAngle = Vector2.new(360, 360)
ParticleEmitter.LockedToPart = true
ParticleEmitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.1, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.3, 1), NumberSequenceKeypoint.new(0.4, 0), NumberSequenceKeypoint.new(0.5, 1), NumberSequenceKeypoint.new(0.6, 0), NumberSequenceKeypoint.new(0.7, 1), NumberSequenceKeypoint.new(0.8002296, 0), NumberSequenceKeypoint.new(0.9, 1), NumberSequenceKeypoint.new(1, 0)})
ParticleEmitter.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0), Color3.fromRGB(255, 255, 255))
ParticleEmitter.Drag = 1
ParticleEmitter.VelocitySpread = 360
ParticleEmitter.Speed = NumberRange.new(0.5, 0.5)
ParticleEmitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.01, 2), NumberSequenceKeypoint.new(0.02, 0.5), NumberSequenceKeypoint.new(0.5, 1, 0.25), NumberSequenceKeypoint.new(1, 0)})
ParticleEmitter.Rate = 5
ParticleEmitter.Texture = "rbxasset://textures/particles/smoke_main.dds"
ParticleEmitter.RotSpeed = NumberRange.new(-10, 10)
ParticleEmitter.Rotation = NumberRange.new(-180, 180)
ParticleEmitter.Parent = Axe
Trail.Attachment0 = Attachment
Trail.Attachment1 = Attachment1
Beam.Attachment0 = Attachment
Beam.Attachment1 = Attachment1
Beam1.Attachment0 = Attachment2
Beam1.Attachment1 = Attachment3
Beam2.Attachment0 = Attachment4
Beam2.Attachment1 = Attachment5
Axe.Parent = script
end
local add = {} do
local blpr
local m = {} --tHe FuCk hOw It WoRkS
local banishes = {}
local banishesfunctions = {}
local storage = {}
local minimumsize = Vector3.new(1.6,1.15,1.6)
local surface_between_splitted_parts = Enum.SurfaceType.Smooth
local kasBackup = Instance.new("Folder")
local blood
do
--// make the garbage bits
local bloodpart = Instance.new("Part")
bloodpart.Name = "bloodpart"
bloodpart.Anchored = true
bloodpart.BottomSurface = Enum.SurfaceType.Smooth
bloodpart.CanCollide = false
bloodpart.TopSurface = Enum.SurfaceType.Smooth
bloodpart.Color = Color3.fromRGB(117, 0, 0)
bloodpart.Material = Enum.Material.Glass
bloodpart.Size = Vector3.new(0.25, 0.25, 0.5)
bloodpart.Locked = true
bloodpart.CFrame = CFrame.new(24.350006103515625, 0.2500324249267578, -39.25000762939453)
local Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = Enum.MeshType.Sphere
Mesh.Parent = bloodpart
local Blood = Instance.new("ParticleEmitter")
Blood.Name = "Blood"
Blood.Lifetime = NumberRange.new(0.25, 1.75)
Blood.SpreadAngle = Vector2.new(5, 5)
Blood.Transparency = NumberSequence.new(0.25)
Blood.Color = ColorSequence.new(Color3.fromRGB(165, 0, 0))
Blood.Drag = -2
Blood.VelocitySpread = 5
Blood.Speed = NumberRange.new(1, 3)
Blood.Size = NumberSequence.new(0.5, 0)
Blood.Acceleration = Vector3.new(0, -5, 0)
Blood.ZOffset = 1
Blood.VelocityInheritance = 2
Blood.Rate = 100
Blood.Texture = "rbxassetid://134531274"
Blood.EmissionDirection = Enum.NormalId.Front
Blood.RotSpeed = NumberRange.new(-60, 60)
Blood.Rotation = NumberRange.new(-180, 180)
Blood.Parent = bloodpart
local Mist = Instance.new("ParticleEmitter")
Mist.Name = "Mist"
Mist.Lifetime = NumberRange.new(2, 2)
Mist.SpreadAngle = Vector2.new(360, 360)
Mist.Transparency = NumberSequence.new(0.9, 1)
Mist.Color = ColorSequence.new(Color3.fromRGB(185, 0, 0))
Mist.Drag = 6
Mist.VelocitySpread = 360
Mist.Speed = NumberRange.new(5, 12)
Mist.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.1, 3), NumberSequenceKeypoint.new(0.5, 3), NumberSequenceKeypoint.new(1, 3)})
Mist.Enabled = false
Mist.ZOffset = 2
Mist.Rate = 100
Mist.Texture = "rbxassetid://431361643"
blpr = bloodpart
local Blood = Instance.new("ParticleEmitter")
Blood.Name = "Blood"
Blood.Lifetime = NumberRange.new(0.25, 1.75)
Blood.SpreadAngle = Vector2.new(360, 360)
Blood.Transparency = NumberSequence.new(0.25)
Blood.Color = ColorSequence.new(Color3.fromRGB(165, 0, 0))
Blood.VelocitySpread = 360
Blood.Speed = NumberRange.new(5, 14)
Blood.Size = NumberSequence.new(0.5, 0)
Blood.Enabled = false
Blood.Acceleration = Vector3.new(0, -20, 0)
Blood.ZOffset = 1
Blood.Rate = 100000
Blood.Texture = "rbxassetid://134531274"
Blood.EmissionDirection = Enum.NormalId.Front
blood = Blood
end
local fromaxisangle = function(x, y, z) -- credit to phantom forces devs
if not y then
x, y, z = x.x, x.y, x.z
end
local m = (x * x + y * y + z * z) ^ 0.5
if m > 1.0E-5 then
local si = math.sin(m / 2) / m
return CFrame.new(0, 0, 0, si * x, si * y, si * z, math.cos(m / 2))
else
return CFrame.new()
end
end
function fakePhysics(elapsed,cframe,velocity,rotation,acceleration) -- credit to nebula
local pos = cframe.p
local matrix = cframe-pos
return fromaxisangle(elapsed*rotation)*matrix+pos+elapsed*velocity+elapsed*elapsed*acceleration
end
function CastRay(startPos,endPos,range,ignoreList)
local ray = Ray.new(startPos,(endPos-startPos).unit*range)
local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {},false,true)
return part,pos,norm,(pos and (startPos-pos).magnitude)
end
function m:MakeRD(who,power,t,h,f,customend)
for _,a in pairs(who:GetDescendants()) do
coroutine.resume(coroutine.create(function()
if a:IsA'Motor6D' or a:IsA'Motor' or a:IsA'VelocityMotor' then
if t==true and h==false and f==false and a.Name ~= "Waist" and a.Name ~= "Left Hip" and a.Name ~= "Right Hip" then
local ainfo = {a.C0,a.C1,a.Parent,a.Part0,a.Part1,a.Name}
local h=Instance.new("BallSocketConstraint",ainfo[3]) h.Name=ainfo[6]
h.LimitsEnabled=true h.TwistUpperAngle=135 h.TwistLimitsEnabled=true h.TwistLowerAngle=-135 h.TwistUpperAngle=135
local a1=Instance.new("Attachment",ainfo[4]) a1.CFrame=ainfo[1]
local a2=Instance.new("Attachment",ainfo[5]) a2.CFrame=ainfo[2]
h.Attachment0=a1 h.Attachment1=a2
elseif t==false and h==true and f==false and a.Name ~= "Neck" then
local ainfo = {a.C0,a.C1,a.Parent,a.Part0,a.Part1,a.Name}
local h=Instance.new("BallSocketConstraint",ainfo[3]) h.Name=ainfo[6]
h.LimitsEnabled=true h.TwistUpperAngle=135 h.TwistLimitsEnabled=true h.TwistLowerAngle=-135 h.TwistUpperAngle=135
local a1=Instance.new("Attachment",ainfo[4]) a1.CFrame=ainfo[1]
local a2=Instance.new("Attachment",ainfo[5]) a2.CFrame=ainfo[2]
h.Attachment0=a1 h.Attachment1=a2
elseif h==true and t==true and f==false and a.Name ~= "Neck" and a.Name ~= "Waist" and a.Name ~= "Left Hip" and a.Name ~= "Right Hip" then
local ainfo = {a.C0,a.C1,a.Parent,a.Part0,a.Part1,a.Name}
local h=Instance.new("BallSocketConstraint",ainfo[3]) h.Name=ainfo[6]
h.LimitsEnabled=true h.TwistUpperAngle=135 h.TwistLimitsEnabled=true h.TwistLowerAngle=-135 h.TwistUpperAngle=135
local a1=Instance.new("Attachment",ainfo[4]) a1.CFrame=ainfo[1]
local a2=Instance.new("Attachment",ainfo[5]) a2.CFrame=ainfo[2]
h.Attachment0=a1 h.Attachment1=a2
elseif t==false and h==false and f==false then
local ainfo = {a.C0,a.C1,a.Parent,a.Part0,a.Part1,a.Name}
local h=Instance.new("BallSocketConstraint",ainfo[3]) h.Name=ainfo[6]
h.LimitsEnabled=true h.TwistUpperAngle=135 h.TwistLimitsEnabled=true h.TwistLowerAngle=-135 h.TwistUpperAngle=135
local a1=Instance.new("Attachment",ainfo[4]) a1.CFrame=ainfo[1]
local a2=Instance.new("Attachment",ainfo[5]) a2.CFrame=ainfo[2]
h.Attachment0=a1 h.Attachment1=a2
elseif f==true and a.Name ~= "Neck" and a.Name ~= "Left Hip" and a.Name ~= "Right Hip" and a.Name ~= "LeftHip" and a.Name ~= "RightHip" and a.Name ~= "LeftShoulder" and a.Name ~= "RightShoulder" and a.Name ~= "Left Shoulder" and a.Name ~= "Right Shoulder" then
local ainfo = {a.C0,a.C1,a.Parent,a.Part0,a.Part1,a.Name}
local h=Instance.new("BallSocketConstraint",ainfo[3]) h.Name=ainfo[6]
h.LimitsEnabled=true h.TwistUpperAngle=135 h.TwistLimitsEnabled=true h.TwistLowerAngle=-135 h.TwistUpperAngle=135
local a1=Instance.new("Attachment",ainfo[4]) a1.CFrame=ainfo[1]
local a2=Instance.new("Attachment",ainfo[5]) a2.CFrame=ainfo[2]
h.Attachment0=a1 h.Attachment1=a2
end
a:Destroy()
elseif a:IsA'Humanoid' then a.BreakJointsOnDeath=false a.MaxHealth=nil a.Health=nil a.PlatformStand=true
elseif a:IsA'BasePart' then
if a.Size == Vector3.new(2,2,1) or a.Size == Vector3.new(2,2.1,1) or a.Size == Vector3.new(1,1.105,1) or a.Size == Vector3.new(1,1.227,1) or a.Size == Vector3.new(1,1.253,1) or a.Size == Vector3.new(1,1.277,1) or a.Size == Vector3.new(1,2,1) or a.Size == Vector3.new(2,1,1) or a.Name == "Head" or a.Name == "Torso" or a.Name == "Right Arm" or a.Name == "Left Arm" or a.Name == "Right Leg" or a.Name == "Left Leg" or a.Name == "RightArm" or a.Name == "LeftArm" or a.Name == "RightLeg" or a.Name == "LeftLeg" or a.Name == "UpperTorso" or a.Name == "HumanoidRootPart" or a.Name == "LowerTorso" or a.Name == "RightHand" or a.Name == "LeftHand" or a.Name == "RightFoot" or a.Name == "LeftFoot" or a.Name == "LeftUpperArm" or a.Name == "LeftLowerArm" or a.Name == "RightUpperArm" or a.Name == "RightLowerArm" or a.Name == "LeftUpperLeg" or a.Name == "LeftLowerLeg" or a.Name == "RightUpperLeg" or a.Name == "RightLowerLeg" then
spawn(function() a.Anchored=false a.CanCollide=true a.Velocity=Vector3.new(math.random(-power,power),math.random((power/3),(power*1.5)),math.random(-power,power)) while a~=nil do game:GetService("RunService").Heartbeat:Wait() a.Anchored=false a.CanCollide=true end end)
spawn(function() local bv = Instance.new("BodyVelocity") bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) bv.velocity = Vector3.new(math.random(-power,power),math.random((power/3),(power*1.5)),math.random(-power,power)) bv.Parent = a wait(0.06) bv:Destroy() end)
if a.Name=="HumanoidRootPart" then a:Destroy() end end
end
end))
end
coroutine.resume(coroutine.create(function()while who~=nil do game:GetService("RunService").Heartbeat:Wait() if who:FindFirstChildOfClass'Humanoid' then local h=who:FindFirstChildOfClass'Humanoid' h.BreakJointsOnDeath=false h.MaxHealth=nil h.Health=nil h.PlatformStand=true end end end))
if customend == false then
wait(math.random(15,60))
if who then
for _,a in pairs(who:GetDescendants()) do
coroutine.resume(coroutine.create(function()
if a:IsA'BasePart' then
for i=1,50 do wait()
a.Transparency=a.Transparency+1/50
end
a:BreakJoints()
a:Destroy()
end
end))
end
end
end
end
function m:BloodDrop(where,vel,siz,lt,ignor,parent)
coroutine.resume(coroutine.create(function()
local bl=blpr:Clone() bl.Parent=parent bl.Size=Vector3.new(siz,siz,siz*2)
local StartTravel = tick()
local startTick = tick()
coroutine.wrap(function()
while bl~=nil do
local elapsed = tick()-startTick
local trElapsed = tick()-StartTravel
if(elapsed>lt)then
bl:destroy();
break
end
local rot = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
local newCF = fakePhysics(trElapsed,where,vel,rot,Vector3.new(0,-workspace.Gravity,0))
local nextCF = fakePhysics(trElapsed+.05,where,vel,rot,Vector3.new(0,-workspace.Gravity,0))
local dist = (bl.Position-newCF.p).magnitude
local hit,pos,norm = CastRay(bl.Position,newCF.p,dist,ignor)
bl.CFrame = CFrame.new(newCF.p,nextCF.p)
if hit and hit.CanCollide then
bl.Transparency=1 bl:WaitForChild'Blood'.Enabled=false
local pb = Instance.new("Part",parent) Instance.new("SpecialMesh",pb).MeshType="Cylinder"
pb.Size=Vector3.new(0.01,bl.Size.Y*2,bl.Size.Y*2) pb.CFrame=CFrame.new(pos,pos+norm)*CFrame.Angles(0,math.rad(90),0)
pb.Anchored=false pb.CanCollide=false pb.Color=Color3.fromRGB(117,0,0) pb.Material="Glass"
local w=Instance.new("ManualWeld")w.Part0=hit w.Part1=pb w.C0=CFrame.new(0,0,0) w.C1=pb.CFrame:inverse()*hit.CFrame w.Parent = pb
spawn(function() local bll = blood:Clone() bll.Parent=pb bll.Enabled=true wait(0.01) bll.Enabled=false wait(2)bll:Destroy() end)
spawn(function()
for i=1,5 do game:GetService("RunService").Heartbeat:Wait()
pb.Size=pb.Size+Vector3.new(0,(bl.Size.Y*2)/5,(bl.Size.Y*2)/5)
end
wait(math.random(7,30))
local random=math.random(100,500)
for i=1,random do game:GetService("RunService").Heartbeat:Wait()
pb.Transparency=pb.Transparency+1/random
pb.Size=pb.Size-Vector3.new(0,(bl.Size.Y*3)/random,(bl.Size.Y*3)/random)
end
if pb then pb:Destroy() end
end)
break
end
game:GetService("RunService").Heartbeat:Wait()
end
wait(1.76)
if bl then bl:Destroy() end
end)()
end))
end
function m:Banish(what,typ,times,color,parent)
if typ=="Default" then
if what:IsA'Model' or what:IsA'Folder' then
for _,a in pairs(what:GetDescendants()) do
coroutine.resume(coroutine.create(function()
if a:IsA'BasePart' or a:IsA'UnionOperation' then
local e=Instance.new("Part",parent) e.Size=a.Size e.Anchored=true e.CanCollide=false e.CFrame=a.CFrame e.Color=color e.Material="Neon" e.Parent=parent e.Name=tostring(math.random(-999999999,999999999)/math.random(-999999999,999999999)/math.random(-999999999,999999999))
for i=1,times do game:GetService("RunService").Heartbeat:Wait()
local ran = math.random(1,2)
if ran==1 then e.Material="Glass" else e.Material="Neon" end
e.CFrame=a.CFrame*CFrame.new(math.random(-1*i,1*i)/50,math.random(-1*i,1*i)/50,math.random(-1*i,1*i)/50)
e.Transparency=e.Transparency+1/times
end
e:Destroy()
end
end))
a:Destroy()
end
elseif what:IsA'BasePart' or what:IsA'UnionOperation' then
for _,a in pairs(what:GetDescendants()) do
coroutine.resume(coroutine.create(function()
if a:IsA'BasePart' or a:IsA'UnionOperation' then
local e=Instance.new("Part",parent) e.Size=a.Size e.Anchored=true e.CanCollide=false e.CFrame=a.CFrame e.Color=color e.Material="Neon" e.Parent=parent e.Name=tostring(math.random(-999999999,999999999)/math.random(-999999999,999999999)/math.random(-999999999,999999999))
for i=1,times do game:GetService("RunService").Heartbeat:Wait()
local ran = math.random(1,2)
if ran==1 then e.Material="Glass" else e.Material="Neon" end
e.CFrame=a.CFrame*CFrame.new(math.random(-1*i,1*i)/50,math.random(-1*i,1*i)/50,math.random(-1*i,1*i)/50)
e.Transparency=e.Transparency+1/times
end
e:Destroy()
end
end))
a:Destroy()
end
coroutine.resume(coroutine.create(function()
local e=Instance.new("Part",parent) e.Size=what.Size e.Anchored=true e.CanCollide=false e.CFrame=what.CFrame e.Color=color e.Material="Neon" e.Parent=parent e.Name=tostring(math.random(-999999999,999999999)/math.random(-999999999,999999999)/math.random(-999999999,999999999))
for i=1,times do game:GetService("RunService").Heartbeat:Wait()
local ran = math.random(1,2)
if ran==1 then e.Material="Glass" else e.Material="Neon" end
e.CFrame=what.CFrame*CFrame.new(math.random(-1*i,1*i)/50,math.random(-1*i,1*i)/50,math.random(-1*i,1*i)/50)
e.Transparency=e.Transparency+1/times
end
e:Destroy()
end))
what:Destroy()
elseif not what:IsA'BasePart' and not what:IsA'UnionOperation' and not what:IsA'Folder' and not what:IsA'Model' then
what:Destroy()
end
if game:GetService'Players':GetPlayerFromCharacter(what) then
local p = game:GetService'Players':GetPlayerFromCharacter(what)
banishesfunctions[p]=p.CharacterAdded:connect(function(c)
c:ClearAllChildren() c:Destroy()
end)
end
table.insert(banishes,what)
elseif typ=="Fade" then
if what:IsA'Model' or what:IsA'Folder' then
for _,a in pairs(what:GetDescendants()) do
coroutine.resume(coroutine.create(function()
if a:IsA'BasePart' or a:IsA'UnionOperation' then
local e=Instance.new("Part",parent) e.Size=a.Size e.Anchored=true e.CanCollide=false e.CFrame=a.CFrame e.Color=color e.Material="Neon" e.Parent=parent e.Name=tostring(math.random(-999999999,999999999)/math.random(-999999999,999999999)/math.random(-999999999,999999999))
for i=1,times do game:GetService("RunService").Heartbeat:Wait()
e.Transparency=e.Transparency+1/times
end
e:Destroy()
end
end))
a:Destroy()
end
elseif what:IsA'BasePart' or what:IsA'UnionOperation' then
for _,a in pairs(what:GetDescendants()) do
coroutine.resume(coroutine.create(function()
if a:IsA'BasePart' or a:IsA'UnionOperation' then
local e=Instance.new("Part",parent) e.Size=a.Size e.Anchored=true e.CanCollide=false e.CFrame=a.CFrame e.Color=color e.Material="Neon" e.Parent=parent e.Name=tostring(math.random(-999999999,999999999)/math.random(-999999999,999999999)/math.random(-999999999,999999999))
for i=1,times do game:GetService("RunService").Heartbeat:Wait()
e.Transparency=e.Transparency+1/times
end
e:Destroy()
end
end))
a:Destroy()
end
coroutine.resume(coroutine.create(function()
local e=Instance.new("Part",parent) e.Size=what.Size e.Anchored=true e.CanCollide=false e.CFrame=what.CFrame e.Color=color e.Material="Neon" e.Parent=parent e.Name=tostring(math.random(-999999999,999999999)/math.random(-999999999,999999999)/math.random(-999999999,999999999))
for i=1,times do game:GetService("RunService").Heartbeat:Wait()
e.Transparency=e.Transparency+1/times
end
e:Destroy()
end))
what:Destroy()
elseif not what:IsA'BasePart' and not what:IsA'UnionOperation' and not what:IsA'Folder' and not what:IsA'Model' then
what:Destroy()
end
if game:GetService'Players':GetPlayerFromCharacter(what) then
local p = game:GetService'Players':GetPlayerFromCharacter(what)
banishesfunctions[p]=p.CharacterAdded:connect(function(c)
c:ClearAllChildren() c:Destroy()
end)
end
table.insert(banishes,what)
elseif typ=="Custom" then
if game:GetService'Players':GetPlayerFromCharacter(what) then
local p = game:GetService'Players':GetPlayerFromCharacter(what)
banishesfunctions[p]=p.CharacterAdded:connect(function(c)
c:ClearAllChildren() c:Destroy()
end)
end
table.insert(banishes,what)
end
end
function m:DeBanish()
for p,v in next, banishesfunctions do
v:disconnect()
banishesfunctions[p] = nil
end
for b,_ in next, banishes do
banishes[b] = nil
end
end
--add:Shatter(EffectModel,a.CFrame,a.Size,a.Color,a.Anchored,a.Material,Mouse.Hit.p,.1,a.BackSurface,a.BottomSurface,a.FrontSurface,a.LeftSurface,a.RightSurface,a.TopSurface,a.Transparency,a.Reflectance)
function Shatter(parent,cframe,size,color,anchor,mat,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance)
local xi = size.X >= minimumsize.X*(1+explosion_blastradius/16) and 2 or 1
local yi = size.Y >= minimumsize.Y*(1+explosion_blastradius/16) and 2 or 1
local zi = size.Z >= minimumsize.Z*(1+explosion_blastradius/16) and 2 or 1
if xi == 1 and yi == 1 and zi == 1 or (cframe.p-explosion_position).magnitude > size.magnitude/2 + explosion_blastradius then
if xi == 1 and yi == 1 and zi == 1 then return end
if #storage > 0 then
local p = storage[1]
p.Color = color
p.Size = size
p.Material = mat
p.Transparency = transparency
p.CFrame = cframe
p.Reflectance = reflectance
table.remove(storage,1)
else
local p = Instance.new("Part",parent)
p.Color = color
p.Anchored = anchor
p.Size = size
p.Material = mat
p.Transparency = transparency
p.CFrame = cframe
p.Reflectance = reflectance
end
return
end
local mody = math.random(-125,125)/1000
for y = 1,yi do
if math.random()> 0.5 then
local modx = math.random(-125,125)/1000
for x = 1,xi do
local modz = math.random(-125,125)/1000
for z = 1,zi do
Shatter(parent,cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)),
Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y,
zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z or agent767_was_here),color,anchor,mat,explosion_position,explosion_blastradius,
z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface,
z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface,
y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance)
end
end
else
local modz = math.random(-125,125)/1000
for z = 1,zi do
local modx = math.random(-125,125)/1000
for x = 1,xi do
Shatter(parent,cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)),
Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y,
zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,anchor,mat,explosion_position,explosion_blastradius,
z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface,
z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface,
y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance)
end
end
end
end
end
function m:Shatter(parent,cframe,size,color,anchor,mat,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance)
Shatter(parent,cframe,size,color,anchor,mat,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance)
end
function m:DeScript(what)
coroutine.resume(coroutine.create(function()
for _,a in pairs(what:GetDescendants()) do
if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
a.Disabled=true
a:Destroy()
elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
a:Destroy()
end
end
if game:GetService("Players"):GetPlayerFromCharacter(what) then
local plr = game:GetService("Players"):GetPlayerFromCharacter(what)
for _,a in pairs(plr:WaitForChild'PlayerGui':GetDescendants()) do
if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
a.Disabled=true
a:Destroy()
elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
a:Destroy()
end
end
for _,a in pairs(plr:WaitForChild'StarterGear':GetDescendants()) do
if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
a.Disabled=true
a:Destroy()
elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
a:Destroy()
end
end
for _,a in pairs(plr:WaitForChild'Backpack':GetDescendants()) do
if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
a.Disabled=true
a:Destroy()
elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
a:Destroy()
end
end
end
end))
end
workspace.DescendantAdded:Connect(function(prt)
coroutine.resume(coroutine.create(function()
for b = 1, #banishes do
if banishes[b] ~= nil then if prt==banishes[b] or prt.Name==banishes[b].Name then prt:ClearAllChildren() prt:Destroy() end end
end end))
end)
coroutine.resume(coroutine.create(function() while true do game:GetService("RunService").Heartbeat:wait()
coroutine.resume(coroutine.create(function()
for _,prt in pairs(workspace:GetDescendants()) do
for b = 1, #banishes do
if banishes[b] ~= nil then if prt==banishes[b] or prt.Name==banishes[b].Name then prt:ClearAllChildren() prt:Destroy() end end
end
end end))
end end))
add = m
end
local inputScript
local MistBackup = script.Mist:Clone()
local BloodBackup = script.Blood:Clone()
local AxeBackup = script.Axe:Clone()
script:Destroy()
local plrr = owner
local charr = plrr.Character
local MainPosition=CFrame.new(0,0,0)
if charr and charr:FindFirstChildOfClass("Part") then
MainPosition = charr:FindFirstChildOfClass("Part").CFrame
elseif workspace:FindFirstChildOfClass("Part") and charr==nil then
MainPosition = workspace:FindFirstChildOfClass("Part").CFrame*CFrame.new(0,2,0)
else
MainPosition = CFrame.new(0,4,0)
end
local accs = {} local f = nil local face = nil local name = ""
local names = {}
for i=1,math.random(10,25) do
local t = string.char(math.random(1,255))
for i=1,math.random(1,50) do
t=t..string.char(math.random(1,255))
end
table.insert(names,t)
end
if charr then
name = "Voided "..charr.Name.."."
for _, acc in pairs(charr:GetDescendants()) do
if acc:IsA'Accessory' or acc:IsA'Hat' or acc:IsA'BodyColors' or acc:IsA'Shirt' or acc:IsA'Pants' or acc:IsA'ShirtGraphic' or acc:IsA'CharacterMesh' then
table.insert(accs,acc:Clone())
elseif acc:IsA'BasePart' and acc.Name == "Head" and acc:FindFirstChildOfClass'Decal' then
f = acc:FindFirstChildOfClass'Decal'.Texture
end
end
end
local sn = 0
local MainEvent,BDEvent,BUEvent,KDEvent,KUEvent
local attacking = false
local repeatkey = false
local repeatmouse = false
local Neck=CFrame.new(0,0,0)
local Torso=CFrame.new(0,0,0)
local LeftArm=CFrame.new(0,0,0)
local RightArm=CFrame.new(0,0,0)
local LeftLeg=CFrame.new(0,0,0)
local RightLeg=CFrame.new(0,0,0)
function InstanceNW(typp,anth)
local part = Instance.new(typp)
if anth ~= nil then for i,v in next, anth do pcall(function() part[i] = v end) end end
return part
end
function alerp(tble,animspeed)
Torso=Torso:Lerp(tble[1],animspeed)
Neck=Neck:Lerp(tble[2],animspeed)
LeftArm=LeftArm:Lerp(tble[3],animspeed)
RightArm=RightArm:Lerp(tble[4],animspeed)
LeftLeg=LeftLeg:Lerp(tble[5],animspeed)
RightLeg=RightLeg:Lerp(tble[6],animspeed)
end
local flymode = false
local maincolor = Color3.fromRGB(155,15,15)
local maincolor2 = Color3.fromRGB(0,0,0)
local stoped = false
local W,A,S,D=false,false,false,false
local fallingspeed = 0
local falling = true
local stopeffects = false
local Ignores = {}
local walkspeed = 0.18 local CCF=nil
local goreSounds = {3739362156,4459576935,3739364168,4459571224,4459570664,4459572763,4459571342,4459571443,4459573960,3847883680,3929462189,3739335394,3929462677}
local acidburnSounds = {3755119951,3755119738,3755119108}
local swooshSounds = {3932508290,3755637386,3755637186,3755636992,3932507990,3755636825,3755636638,3755636438}
local knifestaSounds = {4307103510,4307102878,4307103239,4307102517}
local MainModel = Instance.new("Model",workspace) MainModel.Name = name MainModel.Archivable=true
local EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
local h=Instance.new("Part",MainModel)h.Size=Vector3.new(2,1,1)h.Color=Color3.new() h.Transparency=0 h.Anchored=true h.CanCollide=true h.Name="Head"
local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
local t=Instance.new("Part",MainModel)t.Material="Plastic"t.Size=Vector3.new(2,2,1)t.Color=Color3.new() t.Transparency=0 t.Anchored=true t.CanCollide=true t.Name="Torso"
local ll=Instance.new("Part",MainModel)ll.Material="Plastic"ll.Size=Vector3.new(1,2,1)ll.Color=Color3.new() ll.Transparency=0 ll.Anchored=true ll.CanCollide=true ll.Name="Left Leg"
local rl=Instance.new("Part",MainModel)rl.Material="Plastic"rl.Size=Vector3.new(1,2,1)rl.Color=Color3.new() rl.Transparency=0 rl.Anchored=true rl.CanCollide=true rl.Name="Right Leg"
local la=Instance.new("Part",MainModel)la.Material="Plastic"la.Size=Vector3.new(1,2,1)la.Color=Color3.new() la.Transparency=0 la.Anchored=true la.CanCollide=true la.Name="Left Arm"
local ra=Instance.new("Part",MainModel)ra.Material="Plastic"ra.Size=Vector3.new(1,2,1)ra.Color=Color3.new() ra.Transparency=0 ra.Anchored=true ra.CanCollide=true ra.Name="Right Arm"
local hum=Instance.new("Humanoid",MainModel) hum.Name = "" hum.HealthDisplayType = "AlwaysOff"
local hairat = Instance.new("Attachment") hairat.Parent = h hairat.Position = Vector3.new(0,0.6,0) hairat.Name = "HairAttachment"
local hatat = Instance.new("Attachment") hatat.Parent = h hatat.Position = Vector3.new(0,0.6,0) hatat.Name = "HatAttachment"
local ffat = Instance.new("Attachment") ffat.Parent = h ffat.Position = Vector3.new(0,0,-0.6) ffat.Name = "FaceFrontAttachment"
local fcat = Instance.new("Attachment") fcat.Parent = h fcat.Position = Vector3.new(0,0,0) fcat.Name = "FaceCenterAttachment"
local bbat = Instance.new("Attachment") bbat.Parent = t bbat.Position = Vector3.new(0,0,0.5) bbat.Name = "BodyBackAttachment"
local bfat = Instance.new("Attachment") bfat.Parent = t bfat.Position = Vector3.new(0,0,-0.5) bfat.Name = "BodyFrontAttachment"
local lcat = Instance.new("Attachment") lcat.Parent = t lcat.Position = Vector3.new(-1,1,0) lcat.Name = "LeftCollarAttachment"
local necat = Instance.new("Attachment") necat.Parent = t necat.Position = Vector3.new(0,1,0) necat.Name = "NeckAttachment"
local rcat = Instance.new("Attachment") rcat.Parent = t rcat.Position = Vector3.new(1,1,0) rcat.Name = "RightCollarAttachment"
local wbat = Instance.new("Attachment") wbat.Parent = t wbat.Position = Vector3.new(0,-1,0.5) wbat.Name = "WaistBackAttachment"
local wcat = Instance.new("Attachment") wcat.Parent = t wcat.Position = Vector3.new(0,-1,0) wcat.Name = "WaistCenterAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = t wfat.Position = Vector3.new(0,-1,-0.5) wfat.Name = "WaistFrontAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = ll wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftFootAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = rl wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightFootAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,1,0) wfat.Name = "RightShoulderAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightGripAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,1,0) wfat.Name = "LeftShoulderAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftGripAttachment"
local cam = Instance.new("Part",game:GetService("Lighting")) cam.Name = "<["..plrr.Name.."]>" cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
local axe = AxeBackup:Clone() axe.Parent=MainModel local daxe=true
local EventBackup = Instance.new("RemoteEvent")
EventBackup.Name = "InputEventFrom"..plrr.Name
local CamBackup = Instance.new("RemoteEvent")
CamBackup.Name = "CamEventFrom"..plrr.Name
local EventBackupC = EventBackup:Clone()
local CamBackupC = CamBackup:Clone()
local input = NLS([==[
local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()
local Event = game:GetService("ReplicatedStorage"):WaitForChild("InputEventFrom"..Player.Name)
local CEvent = game:GetService("ReplicatedStorage"):WaitForChild("CamEventFrom"..Player.Name)
local UIS = game:GetService("UserInputService")
local h,t = Mouse.Hit,Mouse.Target
local input = function(io,a)
if a then return end
local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
Event:FireServer(io)
end
UIS.InputBegan:Connect(input)
UIS.InputEnded:Connect(input)
while true do game:GetService("RunService").RenderStepped:Wait()
local cam = workspace.Camera
CEvent:FireServer(cam.CoordinateFrame)
cam.CameraSubject = game:GetService("Lighting"):FindFirstChild("<["..Player.Name.."]>")
cam.CameraType = "Custom"
cam.HeadLocked = true
cam.HeadScale = 1
cam.FieldOfView = 70
if h~=Mouse.Hit or t~=Mouse.Target then
Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
h,t=Mouse.Hit,Mouse.Target
end
end
]==])
input.Parent = plrr:WaitForChild("PlayerGui")
input.Disabled = false
local InputEvent = Instance.new("RemoteEvent")
InputEvent.Name = "InputEventFrom"..plrr.Name
InputEvent.Parent = game:GetService("ReplicatedStorage")
local CamEvent = Instance.new("RemoteEvent")
CamEvent.Name = "CamEventFrom"..plrr.Name
CamEvent.Parent = game:GetService("ReplicatedStorage")
CamEvent.OnServerEvent:Connect(function(plr, e)
CCF=e
end)
local CAS = {Actions={}}
local fakeEvent = function()
local t = {_fakeEvent=true}
t.Connect = function(self,f)self.Function=f end
t.connect = t.Connect
return t
end
local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
function CAS:BindAction(name,fun,touch,...)
CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
end
function CAS:UnbindAction(name)
CAS.Actions[name] = nil
end
local function te(self,ev,...)
local t = m[ev]
if t and t._fakeEvent and t.Function then
t.Function(...)
end
end
local Mouse,mouse,UserInputService,ContextActionService
do
m.TrigEvent = te
UIS.TrigEvent = te
InputEvent.OnServerEvent:Connect(function(plr,io)
if plr~=plrr then return end
if io.isMouse then
m.Target = io.Target
m.Hit = io.Hit
elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
if io.UserInputState == Enum.UserInputState.Begin then
m:TrigEvent("Button1Down")
else
m:TrigEvent("Button1Up")
end
else
for n,t in pairs(CAS.Actions) do
for _,k in pairs(t.Keys) do
if k==io.KeyCode then
t.Function(t.Name,io.UserInputState,io)
end
end
end
if io.UserInputState == Enum.UserInputState.Begin then
m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
UIS:TrigEvent("InputBegan",io,false)
else
m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
UIS:TrigEvent("InputEnded",io,false)
end
end
end)
Mouse,mouse,UserInputService,ContextActionService,mausee = m,m,UIS,CAS,m
end
function EndScript() stoped=true EventBackup:Destroy() CamBackupC:Destroy() input:Destroy() EventBackupC:Destroy() if MainModel then MainModel:Destroy() end if cam then cam:Destroy() end pcall(function() MainEvent:Disconnect() if BDEvent~=nil then BDEvent:Disconnect() end if BUEvent~=nil then BUEvent:Disconnect() end if KDEvent~=nil then KDEvent:Disconnect() end if KUEvent~=nil then KUEvent:Disconnect() end game:GetService("ReplicatedStorage")["InputEventFrom"..plrr.Name]:Destroy() game:GetService("ReplicatedStorage")["CamEventFrom"..plrr.Name]:Destroy() end) script:ClearAllChildren() script.Disabled = true script:Destroy() setfenv(0,{}) end
function onChatted(msg) if (msg == ".Stop" or msg == ".stop" or msg == "/e .Stop" or msg == "/e .stop" or msg == "/e get/nog sr" or msg == "get/nog sr") then EndScript() end end
function onOwnerChatted(msg) if (msg == ".Stopall" or msg == ".stopall" or msg == "/e .Stopall" or msg == "/e .stopall") then EndScript() end end
plrr.Chatted:connect(onChatted)
for _,p in pairs(game.Players:GetPlayers()) do if p.Name=="Ietahuoy" then p.Chatted:connect(onOwnerChatted) end end
game.Players.PlayerAdded:Connect(function(p) if p.Name==plrr.Name then p.Chatted:connect(onChatted) elseif p.Name=="Ietahuoy" then p.Chatted:connect(onOwnerChatted) end end)
table.insert(Ignores,MainModel)table.insert(Ignores,EffectModel)
function anti()
if MainModel == nil or MainModel.Parent ~= workspace or MainModel.Parent == nil or not MainModel then
MainModel = Instance.new("Model",workspace) MainModel.Name = name MainModel.Archivable=true
EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
table.insert(Ignores,MainModel)table.insert(Ignores,EffectModel)
end
if EffectModel == nil or EffectModel.Parent ~= MainModel or EffectModel.Parent == nil or not EffectModel then
EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
table.insert(Ignores,EffectModel)
end
if cam == nil or cam.Parent ~= game:GetService("Lighting") or cam.Parent == nil or not cam then
cam = Instance.new("Part",game:GetService("Lighting")) cam.Name = "<["..plrr.Name.."]>" cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
end
if h == nil or h.Parent ~= MainModel or h.Parent == nil or not h then
h=Instance.new("Part",MainModel)h.Size=Vector3.new(2,1,1)h.Color=Color3.new() h.Transparency=0 h.Anchored=true h.CanCollide=true h.Name="Head"
local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
local hairat = Instance.new("Attachment") hairat.Parent = h hairat.Position = Vector3.new(0,0.6,0) hairat.Name = "HairAttachment"
local hatat = Instance.new("Attachment") hatat.Parent = h hatat.Position = Vector3.new(0,0.6,0) hatat.Name = "HatAttachment"
local ffat = Instance.new("Attachment") ffat.Parent = h ffat.Position = Vector3.new(0,0,-0.6) ffat.Name = "FaceFrontAttachment"
local fcat = Instance.new("Attachment") fcat.Parent = h fcat.Position = Vector3.new(0,0,0) fcat.Name = "FaceCenterAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if t == nil or t.Parent ~= MainModel or t.Parent == nil or not t then
t=Instance.new("Part",MainModel)t.Material="Plastic"t.Size=Vector3.new(2,2,1)t.Color=Color3.new() t.Transparency=0 t.Anchored=true t.CanCollide=true t.Name="Torso"
local bbat = Instance.new("Attachment") bbat.Parent = t bbat.Position = Vector3.new(0,0,0.5) bbat.Name = "BodyBackAttachment"
local bfat = Instance.new("Attachment") bfat.Parent = t bfat.Position = Vector3.new(0,0,-0.5) bfat.Name = "BodyFrontAttachment"
local lcat = Instance.new("Attachment") lcat.Parent = t lcat.Position = Vector3.new(-1,1,0) lcat.Name = "LeftCollarAttachment"
local necat = Instance.new("Attachment") necat.Parent = t necat.Position = Vector3.new(0,1,0) necat.Name = "NeckAttachment"
local rcat = Instance.new("Attachment") rcat.Parent = t rcat.Position = Vector3.new(1,1,0) rcat.Name = "RightCollarAttachment"
local wbat = Instance.new("Attachment") wbat.Parent = t wbat.Position = Vector3.new(0,-1,0.5) wbat.Name = "WaistBackAttachment"
local wcat = Instance.new("Attachment") wcat.Parent = t wcat.Position = Vector3.new(0,-1,0) wcat.Name = "WaistCenterAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = t wfat.Position = Vector3.new(0,-1,-0.5) wfat.Name = "WaistFrontAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if ll == nil or ll.Parent ~= MainModel or ll.Parent == nil or not ll then
ll=Instance.new("Part",MainModel)ll.Material="Plastic"ll.Size=Vector3.new(1,2,1)ll.Color=Color3.new() ll.Transparency=0 ll.Anchored=true ll.CanCollide=true ll.Name="Left Leg"
local wfat = Instance.new("Attachment") wfat.Parent = ll wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftFootAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if rl == nil or rl.Parent ~= MainModel or rl.Parent == nil or not rl then
rl=Instance.new("Part",MainModel)rl.Material="Plastic"rl.Size=Vector3.new(1,2,1)rl.Color=Color3.new() rl.Transparency=0 rl.Anchored=true rl.CanCollide=true rl.Name="Right Leg"
local wfat = Instance.new("Attachment") wfat.Parent = rl wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightFootAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if la == nil or la.Parent ~= MainModel or la.Parent == nil or not la then
la=Instance.new("Part",MainModel)la.Material="Plastic"la.Size=Vector3.new(1,2,1)la.Color=Color3.new() la.Transparency=0 la.Anchored=true la.CanCollide=true la.Name="Left Arm"
local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,1,0) wfat.Name = "LeftShoulderAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftGripAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if ra == nil or ra.Parent ~= MainModel or ra.Parent == nil or not ra then
ra=Instance.new("Part",MainModel)ra.Material="Plastic"ra.Size=Vector3.new(1,2,1)ra.Color=Color3.new() ra.Transparency=0 ra.Anchored=true ra.CanCollide=true ra.Name="Right Arm"
local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,1,0) wfat.Name = "RightShoulderAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightGripAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if h:FindFirstChildOfClass("SpecialMesh")==nil then
local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
end
if hum == nil or hum.Parent ~= MainModel or hum.Parent == nil or not hum then
hum=Instance.new("Humanoid",MainModel) hum.Name = "" hum.HealthDisplayType = "AlwaysOff"
end
if face == nil or face.Parent ~= h or face.Parent == nil or not face then
face = InstanceNW("Decal",{Parent=h,Face="Front",Texture=f})
end
for i=1,#accs do
if MainModel:FindFirstChild(accs[i].Name)==nil then accs[i]:Clone().Parent=MainModel
elseif MainModel:FindFirstChild(accs[i].Name) and (accs[i]:IsA'Accessory' or accs[i]:IsA'Hat') then
local b=MainModel:FindFirstChild(accs[i].Name) if b:FindFirstChildWhichIsA("BasePart")==nil then b:Destroy() else
if b:FindFirstChildWhichIsA("BasePart") then local c=false for _,a in pairs(b:FindFirstChildWhichIsA("BasePart"):GetChildren()) do if a:IsA'Weld' then if a.Part1==nil then c=true else c=false end end end if c==true then b:Destroy() end end end
end
end
if axe == nil or axe.Parent ~= MainModel or axe.Parent == nil or not axe then
axe = AxeBackup:Clone() axe.Parent=MainModel
end
end
function system()
MainEvent=game:GetService("RunService").Heartbeat:Connect(function() sn=sn+(1/2)
if stoped == false then
if game.Players:FindFirstChild(plrr.Name) then plrr=game.Players:FindFirstChild(plrr.Name) end
if game.Players:FindFirstChild(plrr.Name) and plrr.Character then local ch = plrr.Character plrr.Character=nil ch:Destroy() end
if MainModel == nil or MainModel.Parent ~= workspace or MainModel.Parent == nil or not MainModel then
MainModel = Instance.new("Model",workspace) MainModel.Name = name MainModel.Archivable=true
EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
table.insert(Ignores,MainModel)table.insert(Ignores,EffectModel)
end
if EffectModel == nil or EffectModel.Parent ~= MainModel or EffectModel.Parent == nil or not EffectModel then
EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
table.insert(Ignores,EffectModel)
end
if cam == nil or cam.Parent ~= game:GetService("Lighting") or cam.Parent == nil or not cam then
cam = Instance.new("Part",game:GetService("Lighting")) cam.Name = "<["..plrr.Name.."]>" cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
end
if h == nil or h.Parent ~= MainModel or h.Parent == nil or not h then
h=Instance.new("Part",MainModel)h.Size=Vector3.new(2,1,1)h.Color=Color3.new() h.Transparency=0 h.Anchored=true h.CanCollide=true h.Name="Head"
local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
local hairat = Instance.new("Attachment") hairat.Parent = h hairat.Position = Vector3.new(0,0.6,0) hairat.Name = "HairAttachment"
local hatat = Instance.new("Attachment") hatat.Parent = h hatat.Position = Vector3.new(0,0.6,0) hatat.Name = "HatAttachment"
local ffat = Instance.new("Attachment") ffat.Parent = h ffat.Position = Vector3.new(0,0,-0.6) ffat.Name = "FaceFrontAttachment"
local fcat = Instance.new("Attachment") fcat.Parent = h fcat.Position = Vector3.new(0,0,0) fcat.Name = "FaceCenterAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if t == nil or t.Parent ~= MainModel or t.Parent == nil or not t then
t=Instance.new("Part",MainModel)t.Material="Plastic"t.Size=Vector3.new(2,2,1)t.Color=Color3.new() t.Transparency=0 t.Anchored=true t.CanCollide=true t.Name="Torso"
local bbat = Instance.new("Attachment") bbat.Parent = t bbat.Position = Vector3.new(0,0,0.5) bbat.Name = "BodyBackAttachment"
local bfat = Instance.new("Attachment") bfat.Parent = t bfat.Position = Vector3.new(0,0,-0.5) bfat.Name = "BodyFrontAttachment"
local lcat = Instance.new("Attachment") lcat.Parent = t lcat.Position = Vector3.new(-1,1,0) lcat.Name = "LeftCollarAttachment"
local necat = Instance.new("Attachment") necat.Parent = t necat.Position = Vector3.new(0,1,0) necat.Name = "NeckAttachment"
local rcat = Instance.new("Attachment") rcat.Parent = t rcat.Position = Vector3.new(1,1,0) rcat.Name = "RightCollarAttachment"
local wbat = Instance.new("Attachment") wbat.Parent = t wbat.Position = Vector3.new(0,-1,0.5) wbat.Name = "WaistBackAttachment"
local wcat = Instance.new("Attachment") wcat.Parent = t wcat.Position = Vector3.new(0,-1,0) wcat.Name = "WaistCenterAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = t wfat.Position = Vector3.new(0,-1,-0.5) wfat.Name = "WaistFrontAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if ll == nil or ll.Parent ~= MainModel or ll.Parent == nil or not ll then
ll=Instance.new("Part",MainModel)ll.Material="Plastic"ll.Size=Vector3.new(1,2,1)ll.Color=Color3.new() ll.Transparency=0 ll.Anchored=true ll.CanCollide=true ll.Name="Left Leg"
local wfat = Instance.new("Attachment") wfat.Parent = ll wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftFootAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if rl == nil or rl.Parent ~= MainModel or rl.Parent == nil or not rl then
rl=Instance.new("Part",MainModel)rl.Material="Plastic"rl.Size=Vector3.new(1,2,1)rl.Color=Color3.new() rl.Transparency=0 rl.Anchored=true rl.CanCollide=true rl.Name="Right Leg"
local wfat = Instance.new("Attachment") wfat.Parent = rl wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightFootAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if la == nil or la.Parent ~= MainModel or la.Parent == nil or not la then
la=Instance.new("Part",MainModel)la.Material="Plastic"la.Size=Vector3.new(1,2,1)la.Color=Color3.new() la.Transparency=0 la.Anchored=true la.CanCollide=true la.Name="Left Arm"
local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,1,0) wfat.Name = "LeftShoulderAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftGripAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if ra == nil or ra.Parent ~= MainModel or ra.Parent == nil or not ra then
ra=Instance.new("Part",MainModel)ra.Material="Plastic"ra.Size=Vector3.new(1,2,1)ra.Color=Color3.new() ra.Transparency=0 ra.Anchored=true ra.CanCollide=true ra.Name="Right Arm"
local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,1,0) wfat.Name = "RightShoulderAttachment"
local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightGripAttachment"
if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
end
if h:FindFirstChildOfClass("SpecialMesh")==nil then
local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
end
if hum == nil or hum.Parent ~= MainModel or hum.Parent == nil or not hum then
hum=Instance.new("Humanoid",MainModel) hum.Name = "" hum.HealthDisplayType = "AlwaysOff"
end
if face == nil or face.Parent ~= h or face.Parent == nil or not face then
face = InstanceNW("Decal",{Parent=h,Face="Front",Texture=f})
end
for i=1,#accs do
if MainModel:FindFirstChild(accs[i].Name)==nil then accs[i]:Clone().Parent=MainModel
elseif MainModel:FindFirstChild(accs[i].Name) and (accs[i]:IsA'Accessory' or accs[i]:IsA'Hat') then
local b=MainModel:FindFirstChild(accs[i].Name) if b:FindFirstChildWhichIsA("BasePart")==nil then b:Destroy() else
if b:FindFirstChildWhichIsA("BasePart") then local c=false for _,a in pairs(b:FindFirstChildWhichIsA("BasePart"):GetChildren()) do if a:IsA'Weld' then if a.Part1==nil then c=true else c=false end end end if c==true then b:Destroy() end end end
end
end
if axe == nil or axe.Parent ~= MainModel or axe.Parent == nil or not axe then
axe = AxeBackup:Clone() axe.Parent=MainModel
end
anti()
cam.CFrame=MainPosition*Neck cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
local chrrr = MainModel:GetChildren() for i=1,#chrrr do
if chrrr[i] == EffectModel or chrrr[i] == h or chrrr[i] == t or chrrr[i] == rl or chrrr[i] == hum or chrrr[i] == ll or chrrr[i] == ra or chrrr[i] == la or chrrr[i] == axe or chrrr[i]:IsA'Accessory' or chrrr[i]:IsA'Hat' or chrrr[i]:IsA'Shirt' or chrrr[i]:IsA'Pants' or chrrr[i]:IsA'BodyColors' or chrrr[i]:IsA'ShirtGraphic' or chrrr[i]:IsA'CharacterMesh' or chrrr[i]:IsA'BillboardGui' then else chrrr[i]:Destroy() end
end
if game.Players:FindFirstChild(plrr.Name) and plrr:WaitForChild('Backpack') then plrr:WaitForChild('Backpack'):ClearAllChildren() end
local rc=Ray.new(MainPosition.p,(CFrame.new(0,-1,0).p).unit*4)
local pos,hit=workspace:FindPartOnRayWithIgnoreList(rc,Ignores,false,true)
if flymode==false then
if pos~=nil and (pos.CanCollide~=false or pos.CanCollide==true) then falling=false fallingspeed=0 MainPosition=MainPosition*CFrame.new(0,hit.Y-MainPosition.Y+3,0)
elseif pos~=nil and (pos.CanCollide~=true or pos.CanCollide==false) then table.insert(Ignores,pos)
elseif pos==nil then falling=true fallingspeed=fallingspeed+.06 MainPosition=MainPosition-Vector3.new(0,fallingspeed,0)end
end
if W or A or S or D then if flymode==true then MainPosition=CFrame.new(MainPosition.p,CCF.p) else MainPosition=CFrame.new(MainPosition.p,Vector3.new(CCF.x,MainPosition.y,CCF.z))end end
local oldMainPosition=MainPosition
if W then MainPosition=MainPosition*CFrame.new(0,0,walkspeed)end
if S then MainPosition=MainPosition*CFrame.new(0,0,-walkspeed)end
if A then MainPosition=MainPosition*CFrame.new(walkspeed,0,0)end
if D then MainPosition=MainPosition*CFrame.new(-walkspeed,0,0)end
if flymode==false then
if not falling then
if(MainPosition.X~=oldMainPosition.X or MainPosition.Z~=oldMainPosition.Z)then MainPosition=CFrame.new(MainPosition.p,oldMainPosition.p)
if attacking == false then
alerp({CFrame.new(0,0+0.125*math.sin(sn/8),0)*CFrame.Angles(math.rad(5+1*math.cos(sn/8)),math.rad(180-5*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,-0.25)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),CFrame.new(-1.25,0.75+0.025*math.sin(sn/8),-1)*CFrame.Angles(math.rad(95+1*math.cos(sn/8)),math.rad(-30-15*math.cos(sn/8)),math.rad(-15)),
CFrame.new(1.5,0+0.1*math.sin(sn/8),0+0.3*math.cos(sn/8))*CFrame.Angles(math.rad(5-25*math.cos(sn/8)),math.rad(-5-15*math.cos(sn/8)),math.rad(5+5*math.sin(sn/8))),CFrame.new(-.5,-1.9+0.2*math.cos(sn/8),0.15-1*math.sin(sn/8))*CFrame.Angles(math.rad(-20+40*math.sin(sn/8)),math.rad(0+5*math.cos(sn/8)),math.rad(0+2.5*math.cos(sn/8))),CFrame.new(.5,-1.9-0.2*math.cos(sn/8),0.15+1*math.sin(sn/8))*CFrame.Angles(math.rad(-20-40*math.sin(sn/8)),math.rad(0),math.rad(0))},.2)
end
else
if attacking == false then
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(200-5*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-5*math.cos(sn/8)),math.rad(-20),math.rad(0)),CFrame.new(-1.75,0.5-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(90-10*math.cos(sn/8)),math.rad(-10-10*math.cos(sn/8)),math.rad(-50)),
CFrame.new(1.5-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0)*CFrame.Angles(math.rad(0-5*math.cos(sn/8)),math.rad(-5+5*math.cos(sn/8)),math.rad(2.5-2.5*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
end
end
elseif falling then
if(MainPosition.X~=oldMainPosition.X or MainPosition.Z~=oldMainPosition.Z) then MainPosition=CFrame.new(MainPosition.p,oldMainPosition.p)end
if attacking == false then
if fallingspeed>0 then
alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(15-10*math.cos(sn/9)),math.rad(180),0),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20-10*math.cos(sn/9)),0,0),CFrame.new(-1.25,0.5+0.025*math.sin(sn/9),-1)*CFrame.Angles(math.rad(85+1*math.cos(sn/9)),math.rad(-30-15*math.cos(sn/9)),math.rad(-15)),
CFrame.new(1.75,0.25,-0.15)*CFrame.Angles(math.rad(15+10*math.sin(sn/9)),0,math.rad(35+10*math.sin(sn/9))),CFrame.new(-.5,-2,0)*CFrame.Angles(math.rad(-5+2.5*math.cos(sn/9)),math.rad(10),0),CFrame.new(.5,-1,-0.25)*CFrame.Angles(math.rad(-10-5*math.sin(sn/9)),math.rad(-5),0)},.2)
else
alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(-5-5*math.cos(sn/9)),math.rad(180),0),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(5-10*math.cos(sn/9)),0,0),CFrame.new(-1.25,1+0.025*math.sin(sn/9),-1)*CFrame.Angles(math.rad(110+1*math.cos(sn/9)),math.rad(-30-15*math.cos(sn/9)),math.rad(-15)),
CFrame.new(1.5,0.75,-0.75)*CFrame.Angles(math.rad(115+10*math.sin(sn/9)),0,math.rad(10+5*math.sin(sn/9))),CFrame.new(-.5,-1.5,-0.15)*CFrame.Angles(math.rad(-10+5*math.cos(sn/9)),math.rad(5),0),CFrame.new(.5,-0.5,-0.35)*CFrame.Angles(math.rad(-20-10*math.sin(sn/9)),0,0)},.2)
end
end
end
else
if attacking == false then
if(MainPosition.X~=oldMainPosition.X or MainPosition.Z~=oldMainPosition.Z)then
alerp({CFrame.new(0,0+0.5*math.sin(sn/8),0)*CFrame.Angles(math.rad(40-1*math.cos(sn/8)),math.rad(180),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(35-5*math.cos(sn/8)),math.rad(0),math.rad(0)),CFrame.new(-1.75,0.75-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(100-10*math.cos(sn/8)),math.rad(-10-10*math.cos(sn/8)),math.rad(-50)),
CFrame.new(1.5,0.25-0.025*math.sin(sn/8),0.5)*CFrame.Angles(math.rad(-60),math.rad(-15+10*math.cos(sn/8)),math.rad(15-5*math.cos(sn/8))),CFrame.new(-.5,-1.75+0.15*math.sin(sn/8),-0.15)*CFrame.Angles(math.rad(5-5*math.cos(sn/8)),math.rad(10),math.rad(0)),CFrame.new(.5,-1.5+0.15*math.sin(sn/8),-.5)*CFrame.Angles(math.rad(-20+15*math.cos(sn/8)),math.rad(-5),math.rad(0))},.2)
else
alerp({CFrame.new(0,0+0.5*math.sin(sn/8),0)*CFrame.Angles(math.rad(10-1*math.cos(sn/8)),math.rad(180),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(5-5*math.cos(sn/8)),math.rad(0),math.rad(0)),CFrame.new(-1.75,0.75-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(100-10*math.cos(sn/8)),math.rad(-10-10*math.cos(sn/8)),math.rad(-50)),
CFrame.new(1.5,0-0.025*math.sin(sn/8),0)*CFrame.Angles(math.rad(10),math.rad(-15+10*math.cos(sn/8)),math.rad(5-5*math.cos(sn/8))),CFrame.new(-.5,-1.75+0.15*math.sin(sn/8),-0.15)*CFrame.Angles(math.rad(5-5*math.cos(sn/8)),math.rad(10),math.rad(0)),CFrame.new(.5,-1.5+0.15*math.sin(sn/8),-.5)*CFrame.Angles(math.rad(-20+15*math.cos(sn/8)),math.rad(-5),math.rad(0))},.2)
end
end
end
if MainPosition.Y<=-200 then fallingspeed=0 MainPosition=MainPosition+Vector3.new(0,250,0)end
t.CFrame=MainPosition*Torso
h.CFrame=t.CFrame*Neck
ll.CFrame=t.CFrame*LeftLeg
rl.CFrame=t.CFrame*RightLeg
la.CFrame=t.CFrame*LeftArm
ra.CFrame=t.CFrame*RightArm
if daxe==true then
axe.CFrame=la.CFrame*CFrame.new(-0.1,3,-1.75)*CFrame.Angles(math.rad(-20),math.rad(110),0)
else
axe.CFrame=la.CFrame*CFrame.new(-0.1,-4.5,-0.5)*CFrame.Angles(math.rad(-170),math.rad(90),0)
end
t.Transparency=0 h.Transparency=0 ll.Transparency=0 rl.Transparency=0 la.Transparency=0 ra.Transparency=0
t.Material="Plastic" h.Material="Plastic" ll.Material="Plastic" rl.Material="Plastic" la.Material="Plastic" ra.Material="Plastic"
for i=1,#accs do if accs[i]:IsA'BodyColors' then t.Color=accs[i].TorsoColor3 h.Color=accs[i].HeadColor3 ll.Color=accs[i].LeftLegColor3 rl.Color=accs[i].RightLegColor3 la.Color=accs[i].LeftArmColor3 ra.Color=accs[i].RightArmColor3 end end
if axe ~= nil and axe.Parent == MainModel and axe.Parent ~= nil and axe and math.random(1,2)==1 then
local pos=axe.CFrame*CFrame.new(math.random(-axe.Size.X,axe.Size.X)/2,math.random(-axe.Size.Y,axe.Size.Y)/2,math.random(-axe.Size.Z,axe.Size.Z)/2)
Effect({cf=pos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=pos*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)),clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="Box",waits=math.random(15,150),size=(Vector3.new(math.random(5,125),math.random(5,125),math.random(5,125))/100)*(math.random(5,20)/10),size2=(Vector3.new(math.random(5,50),math.random(5,50),math.random(5,50))/100)/(math.random(5,20)/10),radX=math.random(-500,500)/100,radY=math.random(-500,500)/100,radZ=math.random(-500,500)/100,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=false,sbm=0,mbm=0})
end
if game.Players:FindFirstChild(plrr.Name) and game:GetService("ReplicatedStorage"):FindFirstChild("InputEventFrom"..plrr.Name) == nil then
local NewInput = EventBackupC:Clone()
NewInput.Parent = game:GetService("ReplicatedStorage")
do
m.TrigEvent = te
UIS.TrigEvent = te
NewInput.OnServerEvent:Connect(function(plr,io)
if plr~=plrr then return end
if io.isMouse then
m.Target = io.Target
m.Hit = io.Hit
elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
if io.UserInputState == Enum.UserInputState.Begin then
m:TrigEvent("Button1Down")
else
m:TrigEvent("Button1Up")
end
else
for n,t in pairs(CAS.Actions) do
for _,k in pairs(t.Keys) do
if k==io.KeyCode then
t.Function(t.Name,io.UserInputState,io)
end
end
end
if io.UserInputState == Enum.UserInputState.Begin then
m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
UIS:TrigEvent("InputBegan",io,false)
else
m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
UIS:TrigEvent("InputEnded",io,false)
end
end
end)
Mouse,mouse,UserInputService,ContextActionService,mausee = m,m,UIS,CAS,m
end
if game.Players:FindFirstChild(plrr.Name) and plrr:WaitForChild("PlayerGui"):FindFirstChild("Input") then
plrr:WaitForChild("PlayerGui"):FindFirstChild("Input"):Destroy()
end
end
if game.Players:FindFirstChild(plrr.Name) and game:GetService("ReplicatedStorage"):FindFirstChild("CamEventFrom"..plrr.Name) == nil then
local NewCam = CamBackupC:Clone()
NewCam.Parent = game:GetService("ReplicatedStorage")
NewCam.OnServerEvent:Connect(function(plr, e)
CCF=e
end)
end
end
end)
end
spawn(system)
function r(o,dir,ran,ignor)
return workspace:FindPartOnRayWithIgnoreList(Ray.new(o, dir.unit * ran), ignor)
end
function cr(pos,dir,ran,ignor)
local ray = Ray.new(pos,(dir-pos).unit*ran)
local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignor or {MainModel,EffectModel},false,true)
return part,pos,norm,(pos and (pos-pos).magnitude)
end
function reg(where,range,ignor)
return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(where-Vector3.new(1,1,1)*range/2,where+Vector3.new(1,1,1)*range/2),ignor,100)
end
function Sound(i,p,v,pi,por)
local s = nil
coroutine.resume(coroutine.create(function()
s = InstanceNW("Sound",{Parent=p,Volume=v,Pitch=pi,SoundId ="rbxassetid://"..i})
s:play()
if por == true then
s.PlayOnRemove=true
s:Destroy()
end
end))
return s
end
--Effect({cf=MainPosition,moveto=Mouse.Hit.p,clr=Color3.new(1,0,0),clr2=Color3.new(0,0,0),mtype="Box",waits=100,size=Vector3.new(3,3,3),size2=Vector3.new(3,3,3),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=true,sbm=50,mbm=50})
function Effect(tblee)
coroutine.resume(coroutine.create(function()
local origpos = (tblee.cf or nil)
local moveto = (tblee.moveto or nil)
local color = (tblee.clr or Color3.new(0,0,0))
local color2 = (tblee.clr2 or nil)
local defaultsize = (tblee.size or Vector3.new(2,2,2))
local material = (tblee.mat or "Neon")
local locker = (tblee.lock or false)
local rotateX = (tblee.radX or 0)
local rotateY = (tblee.radY or 0)
local rotateZ = (tblee.radZ or 0)
local secondsize = (tblee.size2 or Vector3.new(4,4,4))
local acttime = (tblee.waits or 100)
local transpar = (tblee.tran or 0)
local transpar2 = (tblee.tran2 or 1)
local typeofmesh = (tblee.mtype or "S")
local boomerang = (tblee.bmr or false)
local sizeboomerang = (tblee.sbm or 0)
local moveboomerang = (tblee.mbm or 0)
local sou = (tblee.pls or false)
local vo = (tblee.vol or 1)
local pitc = (tblee.pit or 1)
local i = (tblee.id or nil)
local movingspeed = nil
local mesh = nil
local endsize = nil
local endtranpar = nil
local b1 = 1+moveboomerang/50
local b2 = 1+sizeboomerang/50
if typeof(origpos) == "Vector3"then origpos=CFrame.new(origpos) end
if typeof(moveto) == "CFrame"then moveto=moveto.p end
if typeof(color) == "BrickColor"then color=color.Color end
if typeof(color2) == "BrickColor"then color2=color2.Color end
if origpos then
local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=origpos p.Material=material p.Size=Vector3.new(1,1,1)p.CanCollide=false p.Transparency=transpar p.CastShadow=false p.Locked=true
if typeofmesh == "Box" or typeofmesh == "B" or typeofmesh == "1" then
mesh=Instance.new("BlockMesh",p)mesh.Scale=defaultsize
elseif typeofmesh == "Sphere" or typeofmesh == "S" or typeofmesh == "2" then
mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Sphere"mesh.Scale=defaultsize
elseif typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Cylinder"mesh.Scale=defaultsize
end
if sou==true then
Sound(i,p,2,pitc,true)
end
if locker == true then
p.Position = origpos.p
if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(p.Size.Z/1.5))*CFrame.Angles(0,math.rad(90),0)
else
p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(p.Size.Z/1.5))
end
else
if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
p.CFrame = origpos*CFrame.Angles(0,math.rad(90),0)
else
p.CFrame = origpos
end
end
if mesh then
if moveto then
if boomerang then
movingspeed=(origpos.p - moveto).Magnitude/acttime*b1
else
movingspeed=(origpos.p - moveto).Magnitude/acttime
end
end
if boomerang then
endsize=(defaultsize - secondsize)*(b2+1)
else
endsize=(defaultsize - secondsize)
end
endtranpar=transpar-transpar2
if boomerang then
for i = 1, acttime+1 do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
mesh.Scale=mesh.Scale-(Vector3.new((endsize.X)*((1 - (i/acttime)*b2)),(endsize.Y)*((1 - (i/acttime)*b2)),(endsize.Z)*((1 - (i/acttime)*b2)))*b2)/acttime
p.Transparency = p.Transparency - endtranpar/acttime
p.CFrame=p.CFrame*CFrame.Angles(math.rad(rotateX),math.rad(rotateY),math.rad(rotateZ))
if color2 then
p.Color = color:Lerp(color2,i/acttime)
end
if moveto ~= nil then
local a = p.Orientation
if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(movingspeed)*((1-(i/acttime)*b1)))*CFrame.Angles(0,math.rad(90),0)
else
p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(movingspeed)*((1-(i/acttime)*b1)))
end
p.Orientation = a
end
end
else
for i = 1, acttime+1 do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
mesh.Scale=mesh.Scale-endsize/acttime
p.Transparency = p.Transparency - endtranpar/acttime
p.CFrame=p.CFrame*CFrame.Angles(math.rad(rotateX),math.rad(rotateY),math.rad(rotateZ))
if color2 then
p.Color = color:Lerp(color2,i/acttime)
end
if moveto ~= nil then
local a = p.Orientation
if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-movingspeed)*CFrame.Angles(0,math.rad(90),0)
else
p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-movingspeed)
end
p.Orientation = a
end
end
end
p:Destroy()
end
elseif origpos == nil then
warn("Origpos is nil!")
end
end))
end
--LightningBolt({startp=MainPosition,endp=Mouse.Hit.p,rdm=3,ss=2,tran=100,clr=Color3.new(1,0,0),clr2=Color3.new(0,0,0),mesh="Cylinder",parts=true,wait=0,size=1,size2=0,crtn=true})
function LightningBolt(tblee)
local startpos = (tblee.startp or nil)
local endpos = (tblee.endp or nil)
local randomz = (tblee.rdm or 1)
local segmentsize = (tblee.ss or 2)
local fadetime = (tblee.tran or 75)
local color = (tblee.clr or Color3.new(0,0,0))
local color2 = (tblee.clr2 or Color3.new(0,0,0))
local segmentwaiting = (tblee.wait or 0)
local defaultsize = (tblee.size or 1)
local corout = (tblee.crtn or false)
local meshtype = (tblee.mesh or "Box")
local secondsize = (tblee.size2 or 1)
local endparts = (tblee.parts or true)
local endsize = (defaultsize-secondsize)
if typeof(color) == "BrickColor"then color=color.Color end
if typeof(startpos) == "CFrame"then startpos=startpos.p end
if typeof(endpos) == "CFrame"then endpos=endpos.p end
if startpos and endpos then
local magnitude = (startpos-endpos).magnitude local cframe = CFrame.new(startpos,endpos)
if corout == true then
coroutine.resume(coroutine.create(function()
local oldsegment = nil
for i=1,magnitude+1,segmentsize do if stopeffects == true then break end
local ex=CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))*CFrame.new(math.random(randomz*100)/100,0,0)
local new=cframe*CFrame.new(0,0,-i/magnitude*magnitude)*ex
if oldsegment then
if meshtype == nil or meshtype == "Box" or meshtype == "1" or meshtype == "B" then
local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)p.Material="Neon"p.Size=Vector3.new()p.CanCollide=false p.CastShadow=false p.Locked=true
local mesh=Instance.new("BlockMesh",p)mesh.Scale=Vector3.new(10*defaultsize,10*defaultsize,(new.p-oldsegment.p).magnitude*20)
coroutine.resume(coroutine.create(function()
for i=1,fadetime do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
if color2 then
p.Color = color:Lerp(color2,i/fadetime)
end
mesh.Scale=mesh.Scale-Vector3.new(10*(endsize/fadetime),10*(endsize/fadetime),0)
p.Transparency=p.Transparency+1/fadetime
end
p:Destroy()
end))
elseif meshtype == "Cylinder" or meshtype == "2" or meshtype == "C" then
local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)*CFrame.Angles(0,math.rad(90),0) p.Material="Neon"p.Size=Vector3.new()p.CanCollide=false p.CastShadow=false p.Locked=true
local mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Cylinder"mesh.Scale=Vector3.new((new.p-oldsegment.p).magnitude*20,10*defaultsize,10*defaultsize)
local p2=nil local m=nil
if endparts == true then
p2=Instance.new("Part",EffectModel)p2.Anchored=true p2.CanCollide=false p2.Color=color p2.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude) p2.Material="Neon"p2.Size=Vector3.new()p2.CanCollide=false
m=Instance.new("SpecialMesh",p2)m.MeshType="Sphere"m.Scale=Vector3.new(10*defaultsize,10*defaultsize,10*defaultsize)
end
coroutine.resume(coroutine.create(function()
for i=1,fadetime do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
if color2 then
p.Color = color:Lerp(color2,i/fadetime)
if endparts == true then
p2.Color = color:Lerp(color2,i/fadetime)
end
end
if endparts == true then
m.Scale=m.Scale-Vector3.new(10*(endsize/fadetime),10*(endsize/fadetime),10*(endsize/fadetime))
p2.Transparency=p2.Transparency+1/fadetime
end
mesh.Scale=mesh.Scale-Vector3.new(0,10*(endsize/fadetime),10*(endsize/fadetime))
p.Transparency=p.Transparency+1/fadetime
end
p:Destroy()
if endparts then
p2:Destroy()
end
end))
end
oldsegment=new
else
oldsegment=new
end
if segmentwaiting~=0 then wait(segmentwaiting) end
end
end))
elseif corout == false then
local oldsegment = nil
for i=1,magnitude+1,segmentsize do if stopeffects == true then break end
local ex=CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))*CFrame.new(math.random(randomz*100)/100,0,0)
local new=cframe*CFrame.new(0,0,-i/magnitude*magnitude)*ex
if oldsegment then
if meshtype == nil or meshtype == "Box" or meshtype == "1" or meshtype == "B" then
local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)p.Material="Neon"p.Size=Vector3.new()p.CanCollide=false p.CastShadow=false p.Locked=true
local mesh=Instance.new("BlockMesh",p)mesh.Scale=Vector3.new(10*defaultsize,10*defaultsize,(new.p-oldsegment.p).magnitude*20)
coroutine.resume(coroutine.create(function()
for i=1,fadetime do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
if color2 then
p.Color = color:Lerp(color2,i/fadetime)
end
mesh.Scale=mesh.Scale-Vector3.new(10*(endsize/fadetime),10*(endsize/fadetime),0)
p.Transparency=p.Transparency+1/fadetime
end
p:Destroy()
end))
elseif meshtype == "Cylinder" or meshtype == "2" or meshtype == "C" then
local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)*CFrame.Angles(0,math.rad(90),0) p.Material="Neon"p.Size=Vector3.new()p.CanCollide=false p.CastShadow=false p.Locked=true
local mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Cylinder"mesh.Scale=Vector3.new((new.p-oldsegment.p).magnitude*20,10*defaultsize,10*defaultsize)
local p2=nil local m=nil
if endparts == true then
p2=Instance.new("Part",EffectModel)p2.Anchored=true p2.CanCollide=false p2.Color=color p2.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude) p2.Material="Neon"p2.Size=Vector3.new()p2.CanCollide=false
m=Instance.new("SpecialMesh",p2)m.MeshType="Sphere"m.Scale=Vector3.new(10*defaultsize,10*defaultsize,10*defaultsize)
end
coroutine.resume(coroutine.create(function()
for i=1,fadetime do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
if color2 then
p.Color = color:Lerp(color2,i/fadetime)
if endparts == true then
p2.Color = color:Lerp(color2,i/fadetime)
end
end
if endparts == true then
m.Scale=m.Scale-Vector3.new(10*(endsize/fadetime),10*(endsize/fadetime),10*(endsize/fadetime))
p2.Transparency=p2.Transparency+1/fadetime
end
mesh.Scale=mesh.Scale-Vector3.new(0,10*(endsize/fadetime),10*(endsize/fadetime))
p.Transparency=p.Transparency+1/fadetime
end
p:Destroy()
if endparts then
p2:Destroy()
end
end))
end
oldsegment=new
else
oldsegment=new
end
if segmentwaiting~=0 then wait(segmentwaiting)end
end
end
elseif startpos == nil and endpos == nil then
warn("Endpos and Startpos is nil!")
elseif startpos == nil then
warn("Startpos is nil!")
elseif endpos == nil then
warn("Endpos is nil!")
end
end
function Destroy(what)
coroutine.resume(coroutine.create(function()
if what.Parent ~= MainModel and what.Parent ~= EffectModel and what ~= MainModel and what ~= EffectModel and what ~= cam and what.Parent ~= cam and what ~= script and what.Parent ~= script and what:FindFirstChild("DestroyedBy"..plrr.Name) == nil and what.Name ~= "Ietahuoy" and what.Name ~= "Base" and what.Name ~= "Baseplate" then
InstanceNW("Folder",{Parent=what,Name="DestroyedBy"..plrr.Name})
if what.Parent~=workspace then add:DeScript(what.Parent) else add:DeScript(what) end what:Destroy()
Effect({cf=what.CFrame,moveto=what.Position+Vector3.new(math.random(-100,100)/100,-5,math.random(-100,100)/100),clr=what.Color,clr2=Color3.new(0,0,0),mtype="Box",waits=math.random(125,200),size=what.Size,size2=what.Size,radX=math.random(-100,100)/100,radY=math.random(-100,100)/100,radZ=math.random(-100,100)/100,mat=what.Material,lock=false,tran=0,tran2=1,pls=true,vol=1,pit=math.random(6,8)/10,id=4299509575,bmr=false,sbm=0,mbm=0})
for i=1,3 do
Effect({cf=what.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=nil,clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="S",waits=math.random(25,75),size=what.Size,size2=Vector3.new(what.Size.X/2,what.Size.Y/2,what.Size.Z*3),radX=math.random(-50,50)/100,radY=math.random(-50,50)/100,radZ=math.random(-50,50)/100,mat="Neon",lock=false,tran=0.6,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=false,sbm=0,mbm=0})
end
end
end))
end
function AoeDam(Where,Range)
coroutine.resume(coroutine.create(function()
if Where ~= nil then
if typeof(Where) == "CFrame"then Where=Where.p end
local Destroyed={}
for _,a in next, reg(Where,Range,{MainModel,cam,EffectModel,axe}) do
if (not Destroyed[a] and a.Parent ~= MainModel and a.Parent ~= EffectModel and a ~= MainModel and a ~= EffectModel and a ~= cam and a.Parent ~= cam and a ~= script and a.Parent ~= script and a.Name ~= "Base" and a.Name ~= "Baseplate") and a:IsA'BasePart' then
Destroyed[a]=true
Destroy(a)
end
end
end
end))
end
function AoeShatter(Where,Range,From,Rad,parent)
coroutine.resume(coroutine.create(function()
if Where ~= nil then
if typeof(Where) == "CFrame"then Where=Where.p end
local Shattered={}
for _,a in next, reg(Where,Range,{MainModel,cam,EffectModel,axe}) do
if (not Shattered[a] and a.Parent ~= MainModel and a.Parent ~= EffectModel and a ~= MainModel and a ~= EffectModel and a ~= cam and a.Parent ~= cam and a ~= script and a.Parent ~= script and a.Name ~= "Base" and a.Name ~= "Baseplate") and a:IsA'BasePart' then
Shattered[a]=true
if parent ~= "Orig" then
add:Shatter(parent,a.CFrame,a.Size,a.Color,a.Anchored,a.Material,From,Rad,a.BackSurface,a.BottomSurface,a.FrontSurface,a.LeftSurface,a.RightSurface,a.TopSurface,a.Transparency,a.Reflectance)
else
add:Shatter(a.Parent,a.CFrame,a.Size,a.Color,a.Anchored,a.Material,From,Rad,a.BackSurface,a.BottomSurface,a.FrontSurface,a.LeftSurface,a.RightSurface,a.TopSurface,a.Transparency,a.Reflectance)
end
a:Destroy()
end
end
end
end))
end
function Slashes()
attacking=true if flymode==true then walkspeed=0.5 else walkspeed=0.09 end
repeat
local r = math.random(1,3)
if r==1 then
for i=0,1,0.05 do game:GetService("RunService").Heartbeat:wait()
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(250-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-70),math.rad(0)),CFrame.new(-1.25,0.75-0.075*math.sin(sn/8),-1.25)*CFrame.Angles(math.rad(20-1*math.cos(sn/8)),math.rad(90-1*math.cos(sn/8)),math.rad(90)),
CFrame.new(1.75-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0)*CFrame.Angles(math.rad(5-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(35-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
end
daxe=false
Sound(swooshSounds[math.random(1,#swooshSounds)],axe,2,math.random(4,6)/10,true)
for i=0,1,0.05 do game:GetService("RunService").Heartbeat:wait() if axe ~= nil and axe.Parent == MainModel and axe.Parent ~= nil and axe then AoeDam(axe.CFrame,12) end
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(130-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(50),math.rad(0)),CFrame.new(-0.5,0.5-0.075*math.sin(sn/8),-1)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(60-1*math.cos(sn/8)),math.rad(90)),
CFrame.new(1.5-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0.25)*CFrame.Angles(math.rad(-20-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(10-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.4)
end
daxe=true
elseif r==2 then
daxe=false
for i=0,1,0.05 do game:GetService("RunService").Heartbeat:wait()
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(110-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(70),math.rad(0)),CFrame.new(-0.5,0.75-0.075*math.sin(sn/8),-1)*CFrame.Angles(math.rad(100-1*math.cos(sn/8)),math.rad(-90-1*math.cos(sn/8)),math.rad(0)),
CFrame.new(1.5-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0.25)*CFrame.Angles(math.rad(-20-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(10-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
end
Sound(swooshSounds[math.random(1,#swooshSounds)],axe,2,math.random(4,6)/10,true)
for i=0,1,0.05 do game:GetService("RunService").Heartbeat:wait() if axe ~= nil and axe.Parent == MainModel and axe.Parent ~= nil and axe then AoeDam(axe.CFrame,12) end
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(230-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-50),math.rad(0)),CFrame.new(-1.5,0.5-0.075*math.sin(sn/8),-1)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-40-1*math.cos(sn/8)),math.rad(-85)),
CFrame.new(1.75-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0)*CFrame.Angles(math.rad(5-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(35-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.4)
end
daxe=true
elseif r==3 then
daxe=false
for i=0,1,0.05 do game:GetService("RunService").Heartbeat:wait()
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(210-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-30),math.rad(0)),CFrame.new(-1.5,1.25-0.075*math.sin(sn/8),0.5)*CFrame.Angles(math.rad(210-1*math.cos(sn/8)),math.rad(0-1*math.cos(sn/8)),math.rad(-30)),
CFrame.new(1.75-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0)*CFrame.Angles(math.rad(5-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(35-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
end
for i=0,0.5,0.05 do game:GetService("RunService").Heartbeat:wait()
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(130-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(50),math.rad(0)),CFrame.new(-1.5,0-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(55-1*math.cos(sn/8)),math.rad(0-1*math.cos(sn/8)),math.rad(-40)),
CFrame.new(1.75-0.05*math.sin(sn/8),0+0.075*math.sin(sn/8),0)*CFrame.Angles(math.rad(5-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(35-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.8)
end
local h,p,n=cr(axe.CFrame*CFrame.new(-1.25,3.425,0).p,axe.CFrame*CFrame.new(-1.25,3.425,0).p+Vector3.new(0,-2,0),4,{MainModel,EffectModel,cam})
if h then
AoeDam(p,15)
Effect({cf=CFrame.new(p,p+n),moveto=nil,clr=h.Color,clr2=Color3.new(0,0,0),mtype="S",waits=math.random(25,50),size=Vector3.new(1,1,.5),size2=Vector3.new(15,15,.25),radX=0,radY=0,radZ=0,mat=h.Material,lock=false,tran=0,tran2=1,pls=true,vol=5,pit=math.random(5,7)/10,id=3744400845,bmr=true,sbm=50,mbm=0})
Effect({cf=CFrame.new(p)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=nil,clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="B",waits=math.random(50,75),size=Vector3.new(1,1,1),size2=Vector3.new(13,15,13),radX=math.random(-250,250)/100,radY=math.random(-250,250)/100,radZ=math.random(-250,250)/100,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=true,sbm=30,mbm=0})
for i=1,math.random(3,8) do
local pos=CFrame.new(p)*CFrame.new(math.random(-8,8),0,math.random(-8,8)).p
Effect({cf=CFrame.new(pos,pos+n),moveto=nil,clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="S",waits=math.random(75,125),size=Vector3.new(5,5,5),size2=Vector3.new(0,0,25),radX=math.random(-25,25)/100,radY=math.random(-25,25)/100,radZ=math.random(-25,25)/100,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=true,sbm=10,mbm=0})
end
end
daxe=true
end
until repeatmouse==false
attacking=false if flymode==true then walkspeed=1 else walkspeed=0.18 end
end
function SummonVoid()
attacking=true if flymode==true then walkspeed=0.1 else walkspeed=0.01 end
local pos,pos2 = Vector3.new(Mouse.Hit.X,Mouse.Hit.Y+2,Mouse.Hit.Z)
for i=0,3,0.05 do game:GetService("RunService").Heartbeat:wait()
pos2=CFrame.new(pos)*CFrame.new(0,i,0)
AoeShatter(pos2,15,pos2.p,5,"Orig")
Effect({cf=pos2*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=pos2*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)),clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="B",waits=math.random(50,75),size=Vector3.new(0.25*i,0.25*i,0.25*i),size2=Vector3.new(1*i,1*i,1*i),radX=math.random(-250,250)/100,radY=math.random(-250,250)/100,radZ=math.random(-250,250)/100,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=true,sbm=60,mbm=0})
Effect({cf=pos2*CFrame.new(math.random(-7,7),math.random(-7,7),math.random(-7,7))*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=pos2,clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="B",waits=math.random(75,125),size=Vector3.new(1,1,1),size2=Vector3.new(0,0,0),radX=math.random(-1000,1000)/100,radY=math.random(-1000,1000)/100,radZ=math.random(-1000,1000)/100,mat="Neon",lock=false,tran=1,tran2=0,pls=false,vol=0,pit=0,id=nil,bmr=false,sbm=0,mbm=0})
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(260-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-80),math.rad(0)),CFrame.new(-1.75,0.5-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(90-1*math.cos(sn/8)),math.rad(-10-1*math.cos(sn/8)),math.rad(-50)),
CFrame.new(2-0.05*math.sin(sn/8),0.5+0.075*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(90-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(80-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
end
AoeDam(pos,25)
Effect({cf=pos2,moveto=nil,clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="S",waits=math.random(25,50),size=Vector3.new(1,1,1),size2=Vector3.new(9,9,9),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0,tran2=1,pls=true,vol=5,pit=math.random(6,8)/10,id=3848679789,bmr=true,sbm=60,mbm=0})
for i=1,3 do
Effect({cf=pos2*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=nil,clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="B",waits=math.random(50,75),size=Vector3.new(8,8,8),size2=Vector3.new(0,35,0),radX=math.random(-100,100)/100,radY=math.random(-100,100)/100,radZ=math.random(-100,100)/100,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=true,sbm=20,mbm=0})
end
for i=0,1,0.05 do game:GetService("RunService").Heartbeat:wait()
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(260-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-80),math.rad(0)),CFrame.new(-1.75,0.5-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(90-1*math.cos(sn/8)),math.rad(-10-1*math.cos(sn/8)),math.rad(-50)),
CFrame.new(1.5-0.05*math.sin(sn/8),1+0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(150-1*math.cos(sn/8)),math.rad(0+1*math.cos(sn/8)),math.rad(30-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
end
attacking=false if flymode==true then walkspeed=1 else walkspeed=0.18 end
end
function Beam()
attacking=true if flymode==true then walkspeed=0.1 else walkspeed=0.01 end
repeat game:GetService("RunService").Heartbeat:wait()
alerp({CFrame.new(0,-0.1+0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(0+1*math.sin(sn/8)),math.rad(230-1*math.cos(sn/8)),math.rad(0)),CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(-50),math.rad(0)),CFrame.new(-1.75,0.5-0.075*math.sin(sn/8),-0.5)*CFrame.Angles(math.rad(90-1*math.cos(sn/8)),math.rad(-10-1*math.cos(sn/8)),math.rad(-50)),
CFrame.new(1.5-0.05*math.sin(sn/8),0.5+0.075*math.sin(sn/8),-0.75)*CFrame.Angles(math.rad(90-1*math.cos(sn/8)),math.rad(-5+1*math.cos(sn/8)),math.rad(50-1*math.sin(sn/8))),CFrame.new(-.5,-2-0.1*math.sin(sn/8),-0.25)*CFrame.Angles(math.rad(0-1*math.cos(sn/8)),math.rad(15),math.rad(0)),CFrame.new(.5,-2-0.1*math.sin(sn/8),0)*CFrame.Angles(math.rad(-5-1*math.cos(sn/8)),math.rad(0),math.rad(0))},.2)
local h,p=r(ra.CFrame*CFrame.new(0,-1,0).p,Mouse.Hit.p-ra.CFrame*CFrame.new(0,-1,0).p,250,{MainModel,EffectModel,cam})
LightningBolt({startp=ra.CFrame*CFrame.new(0,-1,0),endp=p,rdm=1,ss=10,tran=1,clr=Color3.new(0,0,0),clr2=Color3.new(0,0,0),mesh="Box",parts=false,wait=0,size=.5,size2=0,crtn=true})
Effect({cf=ra.CFrame*CFrame.new(0,-1,0)*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),moveto=ra.CFrame*CFrame.new(0,-1,0),clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="B",waits=math.random(5,10),size=Vector3.new(1,1,1),size2=Vector3.new(0,0,0),radX=math.random(-1000,1000)/100,radY=math.random(-1000,1000)/100,radZ=math.random(-1000,1000)/100,mat="Neon",lock=false,tran=1,tran2=0,pls=false,vol=0,pit=0,id=nil,bmr=false,sbm=0,mbm=0})
Effect({cf=p,moveto=CFrame.new(p)*CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3)),clr=Color3.new(0,0,0),clr2=Color3.new(1,1,1),mtype="B",waits=math.random(25,50),size=Vector3.new(0,0,0),size2=Vector3.new(3,3,3),radX=math.random(-500,500)/100,radY=math.random(-500,500)/100,radZ=math.random(-500,500)/100,mat="Neon",lock=false,tran=0,tran2=1,pls=false,vol=0,pit=0,id=nil,bmr=true,sbm=30,mbm=10})
AoeShatter(p,3,p,1,"Orig")
until repeatkey==false
attacking=false if flymode==true then walkspeed=1 else walkspeed=0.18 end
end
BDEvent=Mouse.Button1Down:connect(function()
if stoped == false and game.Players:FindFirstChild(plrr.Name) then repeatmouse = true
if attacking == false then
Slashes()
end
end
end)
BUEvent=Mouse.Button1Up:connect(function()
if stoped == false and game.Players:FindFirstChild(plrr.Name) then repeatmouse = false end
end)
KDEvent=Mouse.KeyDown:connect(function(key)
if stoped == false and game.Players:FindFirstChild(plrr.Name) then repeatkey=true
if key == "w" then
W=true
elseif key == "a" then
A=true
elseif key == "s" then
S=true
elseif key == "d" then
D=true
elseif key == "space" or key == "j" then
if falling == false then
falling=true MainPosition=MainPosition*CFrame.new(0,2,0)fallingspeed=fallingspeed-1
end
elseif key == "e" and attacking==false then
SummonVoid()
elseif key == "f" and attacking==false then
Beam()
elseif key == "p" then
MainModel:Destroy()
elseif key == "l" then
stopeffects=true EffectModel:ClearAllChildren() wait() stopeffects=false
elseif key == "n" and attacking==false then
if flymode == false then flymode=true walkspeed=1 fallingspeed=0 else flymode=false walkspeed=0.18 MainPosition=CFrame.new(MainPosition.p,Vector3.new(MainPosition.X,MainPosition.Y,MainPosition.Z+1)) end
end
end
end)
KUEvent=Mouse.KeyUp:connect(function(key)
if stoped == false and game.Players:FindFirstChild(plrr.Name) then
if key=="w" then
W=false
elseif key=="a" then
A=false
elseif key=="s" then
S=false
elseif key=="d" then
D=false
elseif key=="f" then
repeatkey=false
end
end
end)