Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ThePlayer = script.Parent.Name
- YaName = "Gystac"
- function find(tab, arg, pos)
- for i, v in pairs(tab) do
- if v == arg and i == pos then
- return true
- end
- end
- return false
- end
- function makeGiant(Character, S)
- local HR = Character:findFirstChild("HumanoidRootPart")
- local welds, hats = {}, {}
- local torso = Character:findFirstChild("Torso")
- local pos = torso.Position
- local ssss = torso.Size.Y
- for _, v in pairs(HR:children()) do
- if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then
- table.insert(welds, {
- v,
- v.Part0,
- v.Part1
- })
- end
- end
- for _, v in pairs(torso:children()) do
- if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then
- table.insert(welds, {
- v,
- v.Part0,
- v.Part1
- })
- end
- end
- for _, v in pairs(Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- elseif v:IsA("BasePart") then
- v.formFactor = "Custom"
- v.Size = v.Size * S
- v.Transparency = 1
- end
- end
- local anim = Character.Animate
- local animc = anim:clone()
- anim:remove()
- for _, v in pairs(welds) do
- local c1 = v[1].C1
- local c0 = v[1].C0
- local a1, a2, a3 = c1:toEulerAnglesXYZ()
- local b1, b2, b3 = c0:toEulerAnglesXYZ()
- c1 = CFrame.new(c1.p * S) * CFrame.Angles(a1, a2, a3)
- c0 = CFrame.new(c0.p * S) * CFrame.Angles(b1, b2, b3)
- local clon = v[1]:clone()
- v[1]:remove()
- clon.C1 = c1
- clon.C0 = c0
- clon.Part1 = v[3]
- clon.Part0 = v[2]
- clon.Parent = Character.Torso
- if clon.Name == "RootJoint" then
- clon.Parent = Character.HumanoidRootPart
- end
- end
- animc.Parent = Character
- Character:MoveTo(pos + Vector3.new(0, S * (ssss / 2), 0))
- wait(0.1)
- end
- makeGiant(workspace[YaName], 2)
- maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
- secondcolor = "Really black"
- wait(0.016666666666666666)
- Effects = {}
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local mouse = Player:GetMouse()
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local cam = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local equipped = true
- local attack = false
- local Anim = "Idle"
- local idle = 0
- local attacktype = 1
- local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local grabbed = false
- local cn = CFrame.new
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local dir = {
- w = 0,
- s = 0,
- a = 0,
- d = 0
- }
- Climbanim = false
- Runkey = false
- firemode = false
- inair = false
- blocking = false
- humHsave = 0
- humDsave = 0
- extralock = true
- lasthit = nil
- Humanoid.MaxHealth = 99000000
- for i, clothes in pairs(Character:GetChildren()) do
- if clothes.ClassName == "Shirt" or clothes.ClassName == "Pants" or clothes.ClassName == "Accessory" or clothes.ClassName == "Hat" then
- clothes:Destroy()
- end
- end
- local BC = Character["Body Colors"]
- BC.HeadColor = BrickColor.new("Really black")
- BC.LeftArmColor = BrickColor.new("Really black")
- BC.LeftLegColor = BrickColor.new("Really black")
- BC.RightArmColor = BrickColor.new("Really black")
- BC.RightLegColor = BrickColor.new("Really black")
- BC.TorsoColor = BrickColor.new("Really black")
- shirt = Instance.new("Shirt", Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", Character)
- pants.Name = "Pants"
- Character.Shirt.ShirtTemplate = "rbxassetid://116857373"
- Character.Pants.PantsTemplate = "rbxassetid://116857696"
- Character.Head.face.Texture = "rbxassetid://257916126"
- Character.Head.face.Transparency = 1
- local Hood = Instance.new("Part", Character)
- Hood.Name = "Hood"
- Hood.CanCollide = false
- Hood.BrickColor = BrickColor.new("Really black")
- Hood.Transparency = 1
- Hood.Material = "Granite"
- Hood.Size = Vector3.new(0.1, 0.1, 0.1)
- Hood.TopSurface = Enum.SurfaceType.Smooth
- Hood.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Hood)
- Weld.Part0 = Character.Head
- Weld.Part1 = Hood
- Weld.C1 = CFrame.new(0, -1.1, 0.2)
- local M2 = Instance.new("SpecialMesh")
- M2.Parent = Hood
- M2.MeshId = "http://www.roblox.com/asset/?id=116524777"
- M2.TextureId = "http://www.roblox.com/asset/?id=116524836"
- M2.Scale = Vector3.new(2.2, 2.2, 2.2)
- local Wing1 = Instance.new("Part", Character)
- Wing1.Name = "Wing"
- Wing1.CanCollide = false
- Wing1.BrickColor = BrickColor.new("Really black")
- Wing1.Transparency = 1
- Wing1.Material = "Neon"
- Wing1.Size = Vector3.new(0.1, 0.1, 0.1)
- Wing1.TopSurface = Enum.SurfaceType.Smooth
- Wing1.BottomSurface = Enum.SurfaceType.Smooth
- local Wing1Weld = Instance.new("Weld", Wing1)
- Wing1Weld.Part0 = Torso
- Wing1Weld.Part1 = Wing1
- Wing1Weld.C1 = CFrame.new(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
- local Wing2 = Instance.new("Part", Character)
- Wing2.Name = "Wing"
- Wing2.CanCollide = false
- Wing2.BrickColor = BrickColor.new("Really black")
- Wing2.Transparency = 1
- Wing2.Material = "Neon"
- Wing2.Size = Vector3.new(0.1, 0.1, 0.1)
- Wing2.TopSurface = Enum.SurfaceType.Smooth
- Wing2.BottomSurface = Enum.SurfaceType.Smooth
- local Wing2Weld = Instance.new("Weld", Wing2)
- Wing2Weld.Part0 = Torso
- Wing2Weld.Part1 = Wing2
- Wing2Weld.C1 = CFrame.new(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
- function New(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local all, last = {}, nil
- function scan(p)
- for _, v in pairs(p:GetChildren()) do
- if v:IsA("BasePart") then
- if last then
- local w = Instance.new("Weld")
- w.Part0, w.Part1 = last, v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all, v)
- last = v
- end
- scan(v)
- end
- end
- for _, v in pairs(all) do
- v.Anchored = false
- v.CanCollide = false
- end
- local Services = {
- SoundService = game:GetService("SoundService"),
- Players = game:GetService("Players"),
- Debris = game:GetService("Debris"),
- Workspace = game:GetService("Workspace"),
- Lighting = game:GetService("Lighting"),
- HttpService = game:GetService("HttpService"),
- InsertService = game:GetService("InsertService")
- }
- local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- Humanoid.Animator:Destroy()
- Character.Animate:Destroy()
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- RSH, LSH = nil, nil
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- RH = Torso["Right Hip"]
- LH = Torso["Left Hip"]
- RSH = Torso["Right Shoulder"]
- LSH = Torso["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "RW"
- RW.Part0 = Torso
- RW.C0 = cn(1.5, 0.5, 0)
- RW.C1 = cn(0, 0.5, 0)
- RW.Part1 = RightArm
- RW.Parent = Torso
- LW.Name = "LW"
- LW.Part0 = Torso
- LW.C0 = cn(-1.5, 0.5, 0)
- LW.C1 = cn(0, 0.5, 0)
- LW.Part1 = LeftArm
- LW.Parent = Torso
- function clerp(a, b, t)
- local qa = {
- QuaternionFromCFrame(a)
- }
- local qb = {
- QuaternionFromCFrame(b)
- }
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- if Player.UserId ~= 101414021 and Player.UserId ~= 232340650 and Player.UserId ~= 393157490 and Player.UserId ~= 26300265 and Player.UserId ~= 101188314 and Player.UserId ~= 101188314 and Player.UserId ~= 101414021 then
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m00 < m11 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s
- return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp
- if cosTheta >= 1.0E-4 then
- if 1 - cosTheta > 1.0E-4 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((1 - t) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- elseif 1 + cosTheta > 1.0E-4 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((t - 1) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").RenderStepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").RenderStepped:wait(0)
- end
- end
- end
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- formFactor = FormFactor,
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material
- })
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function CreateSound(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = id
- wait()
- sou:play()
- game:GetService("Debris"):AddItem(sou, 6)
- end))
- end
- function CreateSong(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- sou2 = Instance.new("Sound", par or workspace)
- sou2.Volume = vol
- sou2.Pitch = 1
- sou2.SoundId = id
- wait()
- sou2:play()
- sou2.Looped = true
- end))
- end
- local function getclosest(obj, distance)
- local last, lastx = distance + 1, nil
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
- local t = v.Torso
- local dist = (t.Position - obj.Position).magnitude
- if distance >= dist and last > dist then
- last = dist
- lastx = v
- end
- end
- end
- return lastx
- end
- function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 3 then
- table.insert(Effects, {
- prt,
- "Block3",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.new(x1, y1, z1)
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function BreakEffect(brickcolor, cframe, x1, y1, z1)
- local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- for i = 0, 1, 0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
- if (Torso.Velocity).magnitude < 2 and hit ~= nil then
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2)
- RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
- LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
- elseif (Torso.Velocity).magnitude < 1 and hit ~= nil then
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
- end
- end
- attack = false
- game:GetService("RunService").Stepped:connect(function()
- Torsovelocity = RootPart.Velocity * Vector3.new(2, 0, 2).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 2, 0)).lookVector, 8, Character)
- if (equipped == true or equipped == false) and Player.UserId ~= 101414021 and Player.UserId ~= 232340650 and Player.UserId ~= 393157490 and Player.UserId ~= 26300265 and Player.UserId ~= 62609130 and Player.UserId ~= 101188314 and Player.UserId ~= 101188314 then
- end
- if equipped == true or equipped == false then
- if RootPart.Velocity.y > -1 and hit == nil then
- Anim = "Jump"
- inair = true
- if attack == false then
- Humanoid.WalkSpeed = 23
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-9), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.8, -0.2) * angles(math.rad(45), math.rad(0), math.rad(40)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.8, -0.2) * angles(math.rad(45), math.rad(0), math.rad(-40)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -1.6, -0.5) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, cn(-2, -2, -0.1) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.3)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- inair = true
- if attack == false then
- Humanoid.WalkSpeed = 13
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.05)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.05)
- RH.C0 = clerp(RH.C0, cn(2, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- end
- elseif (Torso.Velocity).magnitude < 1 and hit ~= nil then
- Anim = "Idle"
- inair = false
- if attack == false then
- change = 0.8
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(9 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- elseif (Torso.Velocity).magnitude < 200 and hit ~= nil then
- Anim = "Walk"
- inair = false
- if attack == false then
- change = 0.65
- Humanoid.WalkSpeed = 13
- Humanoid.JumpPower = 85
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.35 + 0.3 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.new(0, 0, 1 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 + 1.5 * math.cos(sine / 3.5)), math.rad(0 - 0 * math.cos(sine / 3.5)), math.rad(-10 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 12), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(25 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(-25 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.2)
- RH.C0 = clerp(RH.C0, CFrame.new(2, -1.85 - 1 * math.cos(sine / 7) / 4, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-10 - 45 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.2)
- LH.C0 = clerp(LH.C0, CFrame.new(-2, -1.85 + 1 * math.cos(sine / 7) / 4, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-10 + 45 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.2)
- end
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if 1 >= Thing[1].Transparency then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block3" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- local Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Elec" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end)
- Effects = {
- Block = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- else
- table.insert(Effects, {
- prt,
- "Block3",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- },
- Sphere = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Cylinder = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Wave = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3 / 60,
- y3 / 60,
- z3 / 60,
- msh
- })
- end
- },
- Ring = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Break = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- }
- }
- function RemoveOutlines(part)
- part.TopSurface = 10
- end
- function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material
- })
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- WSHM = {
- "White",
- "Pastel light red"
- }
- WSH = WSHM[math.random(1, #WSHM)]
- function IcePartFunk(HPart, aria, Min, Max)
- IcePart = Instance.new("Part", HPart)
- IcePart.Size = Vector3.new(math.random(Min, Max), math.random(Min, Max), math.random(Min, Max))
- IcePart.CanCollide = false
- IuW = Instance.new("Weld")
- IuW.Name = "GuW"
- IuW.Part0 = HPart
- IuW.C0 = cn(math.random(-aria, aria), math.random(-aria, aria), math.random(-aria, aria)) * angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
- IuW.C1 = cn(0, math.random(-aria / 2, aria / 2), 0)
- IuW.Part1 = IcePart
- IuW.Parent = HPart
- IcePart.Transparency = 0.85
- IcePart.Material = "Neon"
- WSH = WSHM[math.random(1, #WSHM)]
- IcePart.BrickColor = BrickColor.new("" .. WSH)
- RemoveOutlines(IcePart)
- game:GetService("Debris"):AddItem(IuW, 4)
- game:GetService("Debris"):AddItem(IcePart, 6)
- end
- function GroundPartFunk2(Hit, HPart, color, aria, Min, Max, num)
- IcePart2 = Instance.new("Part", HPart)
- IcePart2.Size = Vector3.new(math.random(Min, Max), math.random(Min, Max), math.random(Min, Max))
- IcePart2.CanCollide = false
- RemoveOutlines(IcePart2)
- IcePart2.Anchored = true
- game:GetService("Debris"):AddItem(IcePart2, 0.4)
- IcePart2.Transparency = 0.3
- IcePart2.Material = "Neon"
- IcePart2.BrickColor = BrickColor.new("" .. color)
- IcePart2.CFrame = CFrame.new(Hit.Position + Vector3.new(math.random(-aria, aria), math.random(-aria, 0), math.random(-aria, aria))) * angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)))
- for i = 0, num do
- if num > 1 then
- GroundPartFunk2(Hit, HPart, color, aria, Min, Max, 0)
- end
- end
- end
- SpikeMeshId = 1033714
- local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
- local Part = Instance.new("Part", Parent)
- Part.Name = Name
- Part.BrickColor = BrickColor.new(Color)
- Part.Size = Size
- Part.Material = Material
- Part.Transparency = Transparency
- Part.CanCollide = false
- RemoveOutlines(Part)
- local Mesh = Instance.new("SpecialMesh", Part)
- Mesh.MeshType = "Sphere"
- Mesh.Scale = Scale
- return Mesh and Part
- end
- CFuncs = {
- Part = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material
- })
- RemoveOutlines(Part)
- return Part
- end
- },
- Mesh = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- },
- Mesh = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- },
- Weld = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- },
- Sound = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound")({
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace
- })
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end
- },
- ParticleEmitter = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter")({
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread
- })
- return fp
- end
- }
- }
- function AirEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, AirFollowPart, speed, AirEffectMode)
- local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- prt.Material = "Neon"
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- coroutine.resume(coroutine.create(function(Part, Mesh)
- local SnowTiltX = math.random(-1, 1)
- local SnowTiltY = math.random(-1, 1)
- local SnowTiltZ = math.random(-1, 1)
- local EGoto = AirFollowPart.CFrame.lookVector * speed
- for i = 0, 6, delay do
- swait()
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
- if AirEffectMode == "1" then
- Part.CFrame = Part.CFrame * angles(math.rad(SnowTiltX), math.rad(SnowTiltY), math.rad(SnowTiltZ)) + EGoto
- elseif AirEffectMode == "2" then
- Part.CFrame = Part.CFrame + EGoto
- end
- end
- Part.Parent = nil
- end), prt, msh)
- end
- function BlockLaser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- prt.Material = "Neon"
- local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- coroutine.resume(coroutine.create(function(Part, Mesh)
- for i = 0, 6, delay do
- swait()
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
- end
- Part.Parent = nil
- end), prt, msh)
- end
- function Lightning(Part0, Part1, Times, Offset, Color, Thickness, Trans, SizeAdd, ltime)
- local magz = (Part0 - Part1).magnitude
- local curpos = Part0
- local trz = {
- -Offset,
- Offset
- }
- for i = 1, Times do
- local li = Instance.new("Part", Torso)
- li.Name = "Lightning"
- li.TopSurface = 0
- li.Material = "Neon"
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- li.Transparency = 0
- li.BrickColor = Color
- li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(Thickness, Thickness, magz / Times)
- local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
- local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet
- if Times == i then
- local magz2 = (curpos - Part1).magnitude
- li.Size = Vector3.new(Thickness, Thickness, magz2)
- li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2)
- else
- li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2)
- end
- curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p
- game.Debris:AddItem(li, 0.01)
- BlockEffect(Color, li.CFrame, li.Size.X * 20, li.Size.Y * 20, li.Size.Z * 20, SizeAdd, SizeAdd, 0, ltime, 2)
- end
- end
- function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
- return
- end
- local c = Create("ObjectValue")({
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h
- })
- game:GetService("Debris"):AddItem(c, 0.5)
- if HitSound ~= nil and HitPitch ~= nil then
- CreateSound(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil and block.className == "IntValue" and block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- else
- h.Health = h.Health - Damage / 2
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- end
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- lasthit = hit.Parent.Torso
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(0.2)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = hit.Position - Property.Position + Vector3.new(0, 0, 0).unit
- local bodvol = Create("BodyVelocity")({
- velocity = angle * knockback,
- P = 50,
- maxForce = Vector3.new(80000, 80000, 80000),
- Parent = hit
- })
- local rl = Create("BodyAngularVelocity")({
- P = 3000,
- maxTorque = Vector3.new(5000, 5000, 5000) * 50,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodvol, 0.2)
- game:GetService("Debris"):AddItem(rl, 0.2)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity")({
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback
- })
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- elseif Type == "Impale" then
- local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1, 2, 1), "Neon", 0.2, Vector3.new(0.5, 25, 0.5))
- Spike.Anchored = true
- Spike.Rotation = Vector3.new(math.random(-45, 45), 0, math.random(-45, 45))
- Spike.Position = hit.Parent.Torso.Position
- Services.Debris:AddItem(Spike, 4)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, 0.8, 2)
- hit.Parent.Humanoid.PlatformStand = true
- swait(1)
- hit.Parent.Humanoid.PlatformStand = false
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
- elseif Type == "UltSlice" then
- BlockEffect(BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, 0.5, 0, 0, 0, 0.01, 2)
- BlockEffect(BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0, 0, 0, 0.01, 2)
- BlockEffect(BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0, 0, 0, 0.01, 2)
- BlockEffect(BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2)
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2)
- BlockEffect(BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2)
- BlockEffect(BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2)
- elseif Type == "Slice" then
- local bp2 = Create("BodyPosition")({
- P = 900,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Head.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp2, 1)
- if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
- for i = 1, 10 do
- Effects.Break.Create(BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, 0.5, 0.5)
- end
- end
- elseif Type == "Snare" then
- local bp = Create("BodyPosition")({
- P = 900,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Slowness" then
- local SpeedSave = hit.Parent.Humanoid.WalkSpeed
- for i = 1, 25 do
- hit.Parent.Humanoid.WalkSpeed = 4
- IcePartFunk(hit.Parent.Torso, 0.55, 0.1, 1)
- end
- wait(4)
- hit.Parent.Humanoid.WalkSpeed = SpeedSave
- elseif Type == "Firedmg" then
- for i = 1, math.random(1, 6) do
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- BlockEffect(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05, 3)
- BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05, 3)
- BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035, 3)
- wait(0.1)
- end
- end
- elseif Type == "Freeze" then
- local bp = Create("BodyPosition")({
- P = 900,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 4)
- for i = 1, 25 do
- IcePartFunk(hit.Parent.Torso, 1, 1.5, 2)
- end
- elseif Type == "Freeze2" then
- local BodPos = Create("BodyPosition")({
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- local BodGy = Create("BodyGyro")({
- maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
- P = 20000,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame
- })
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue")({
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true
- })
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, 0.5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = 0.033333333333333
- if not Pos then
- local Pos = Vector3.new(0, 0, 0)
- end
- local Text = Text or ""
- local Time = Time or 2
- if not Color then
- local Color = Color3.new(1, 0, 1)
- end
- local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui")({
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart
- })
- local TextLabel = Create("TextLabel")({
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- TextColor3 = Color,
- TextScaled = true,
- Font = Enum.Font.ArialBold,
- Parent = BillboardGui
- })
- game.Debris:AddItem(EffectPart, Time + 0.1)
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = Time / Rate
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = Frame / Frames
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
- end
- end
- end
- end
- end
- function MagniKILL(Part, magni, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- hum.Health = 0
- end
- end
- end
- end
- end
- EffectModel = Instance.new("Model", Character)
- EffectModel.Name = "Effects"
- function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 3 then
- table.insert(Effects, {
- prt,
- "Block3",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- function CreateSound(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou, 6)
- end))
- end
- function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- prt.Material = "Neon"
- local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- coroutine.resume(coroutine.create(function(Part, Mesh)
- for i = 0, 6, delay do
- swait()
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
- end
- Part.Parent = nil
- end), prt, msh)
- end
- function LigLaser(mouse, partt, SpreadAmount)
- local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
- local MainPos = partt.Position
- local MainPos2 = mouse + SpreadVectors
- local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
- local speed = 10
- local num = 10
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
- local mag = (MainPos - pos).magnitude
- Lightning(MainPos, pos, 3, 1, BrickColor.new("Really red"), 0.1, 0.1, -0.3, 0.7)
- MainPos = MainPos + MouseLook.lookVector * speed
- num = num - 1
- MouseLook = MouseLook * angles(math.rad(0), 0, 0)
- if hit ~= nil then
- num = 0
- local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- game:GetService("Debris"):AddItem(refpart, 2)
- end
- if num <= 0 then
- local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- if hit ~= nil then
- CreateSound("http://www.roblox.com/asset/?id=2101148", refpart, 1, 1)
- for i = 0, 5 do
- BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 20, 20, 20, 0.2)
- BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
- MagniDamage(refpart, 6, 5, 10, 0, "Knockdown")
- swait()
- end
- end
- game:GetService("Debris"):AddItem(refpart, 1)
- end
- until num <= 0
- end))
- end
- function shoottraildd(mouse, partt, SpreadAmount)
- local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount / 10, SpreadAmount / 10), math.random(-SpreadAmount, SpreadAmount))
- local MainPos = mouse + Vector3.new(0, 6, 0) + RootPart.CFrame.lookVector * -2
- local MainPos2 = mouse + SpreadVectors
- local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
- local speed = 100
- local num = 1
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
- local mag = (MainPos - pos).magnitude
- Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, 0, 0, 0, 10)
- MainPos = MainPos + MouseLook.lookVector * speed
- num = num - 1
- MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
- if hit ~= nil then
- num = 0
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- game:GetService("Debris"):AddItem(refpart, 2)
- end
- if num <= 0 then
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- if hit ~= nil then
- GroundPartFunk2(refpart, EffectModel, "Really red", 1, 0.1, 2, 2)
- BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -0.5, -0.5, -0.5, 0.05)
- MagniDamage(refpart, 6, 10, 25, 0, "Slice")
- end
- game:GetService("Debris"):AddItem(refpart, 0)
- end
- until num <= 0
- end))
- end
- function shoottraildd2(mouse, partt, SpreadAmount)
- local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
- local MainPos = partt.Position
- local MainPos2 = mouse + SpreadVectors
- local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
- local speed = 1000
- local num = 1
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
- local mag = (MainPos - pos).magnitude
- Laser(BrickColor.new("Crimson"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0.1, mag * (speed / (speed / 2)), 0.1, 0, 0, 0, 0.5)
- MainPos = MainPos + MouseLook.lookVector * speed
- num = num - 1
- MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
- if hit ~= nil then
- num = 0
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- game:GetService("Debris"):AddItem(refpart, 2)
- end
- if num <= 0 then
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- if hit ~= nil then
- CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
- BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 2.5, 2.5, 2.5, 0.1)
- MagniKILL(refpart, 80, 0, "Normal")
- end
- game:GetService("Debris"):AddItem(refpart, 0)
- end
- until num <= 0
- end))
- end
- function shoottraildd3(mouse, partt, SpreadAmount, dmg)
- local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
- local MainPos = partt.Position
- local MainPos2 = mouse + SpreadVectors
- local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
- local speed = 200
- local num = 0
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
- local mag = (MainPos - pos).magnitude
- Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
- MainPos = MainPos + MouseLook.lookVector * speed
- num = num - 1
- MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
- if hit ~= nil then
- num = 0
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- game:GetService("Debris"):AddItem(refpart, 2)
- end
- if num <= 0 then
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- if hit ~= nil then
- CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
- BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
- BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
- end
- game:GetService("Debris"):AddItem(refpart, 0)
- end
- until num <= 0
- end))
- end
- function shoottraildd4(mouse, partt, SpreadAmount, dmg)
- local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
- local MainPos = partt.Position
- local MainPos2 = mouse + SpreadVectors
- local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
- local speed = 150
- local num = 1
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
- local mag = (MainPos - pos).magnitude
- Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
- MainPos = MainPos + MouseLook.lookVector * speed
- num = num - 1
- MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
- if hit ~= nil then
- num = 0
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- game:GetService("Debris"):AddItem(refpart, 2)
- end
- if num <= 0 then
- local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
- refpart.Anchored = true
- refpart.CFrame = CFrame.new(pos)
- if hit ~= nil then
- CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
- BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
- end
- game:GetService("Debris"):AddItem(refpart, 0)
- end
- until num <= 0
- end))
- end
- local Blood1 = Create("ParticleEmitter")({
- Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0.5, 0, 0)),
- Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5),
- NumberSequenceKeypoint.new(0.5, 0),
- NumberSequenceKeypoint.new(1, 1)
- }),
- Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(0.5, 1),
- NumberSequenceKeypoint.new(1, 0)
- }),
- Texture = "rbxassetid://596872069",
- Lifetime = NumberRange.new(0.8),
- Rate = 100,
- VelocitySpread = 13,
- RotSpeed = NumberRange.new(-100, 100),
- Speed = NumberRange.new(15),
- LightEmission = 0.5,
- LockedToPart = true,
- Acceleration = Vector3.new(0, 0, 0),
- EmissionDirection = "Back",
- Parent = Wing1
- })
- local Blood2 = Create("ParticleEmitter")({
- Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0.5, 0, 0)),
- Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5),
- NumberSequenceKeypoint.new(0.5, 0),
- NumberSequenceKeypoint.new(1, 1)
- }),
- Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(0.5, 1),
- NumberSequenceKeypoint.new(1, 0)
- }),
- Texture = "rbxassetid://596872069",
- Lifetime = NumberRange.new(0.8),
- Rate = 100,
- VelocitySpread = 13,
- RotSpeed = NumberRange.new(-100, 100),
- Speed = NumberRange.new(15),
- LightEmission = 0.5,
- LockedToPart = true,
- Acceleration = Vector3.new(0, 0, 0),
- EmissionDirection = "Back",
- Parent = Wing2
- })
- coroutine.resume(coroutine.create(function()
- while true do
- for i = 0, 4, 0.1 do
- swait()
- Blood1.Acceleration = Vector3.new(40 + 5 * math.cos(sine / 16), 10 + 20 * math.cos(sine / 16), -40 + 5 * math.cos(sine / 16))
- Blood2.Acceleration = Vector3.new(-40 - 5 * math.cos(sine / 16), 10 + 20 * math.cos(sine / 16), -40 + 5 * math.cos(sine / 16))
- end
- end
- end))
- Humanoid:SetStateEnabled("Dead", false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- function Intro()
- attack = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209744571", Character, 2, 1)
- for i = 0, 28.1, 0.1 do
- swait()
- Humanoid.Health = Humanoid.MaxHealth
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1000.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(9 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- LeftArm.Transparency = 0
- RightArm.Transparency = 0
- LeftLeg.Transparency = 0
- RightLeg.Transparency = 0
- Torso.Transparency = 0
- Hood.Transparency = 0
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=168513088", Torso, 2, 1)
- Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
- Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
- Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
- Humanoid.WalkSpeed = 0
- for i = 0, 5, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 6.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(50)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-50)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, 0.8 - 0.1 * math.cos(sine / 12), -1) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- for i = 0, 0.5, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -3.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(100), math.rad(1), math.rad(5)), 0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(20 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2)
- RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(90)), 0.2)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-40 + 0.05 * math.cos(sine / 25))), 0.2)
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=174580476", Torso, 5, 1)
- Effects.Ring.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04)
- Effects.Sphere.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
- Effects.Sphere.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
- Effects.Sphere.Create(BrickColor.new("Really black"), RootPart.CFrame * cn(0, -6, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
- for i = 0, 4, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -3.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(100), math.rad(1), math.rad(5)), 0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(20 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2)
- RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(90)), 0.2)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-40 + 0.05 * math.cos(sine / 25))), 0.2)
- end
- for i = 0, 2, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(50), math.rad(1), math.rad(5)), 0.05)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.05)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(20 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(90)), 0.05)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-40 + 0.05 * math.cos(sine / 25))), 0.05)
- end
- for i = 0, 2, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(25), math.rad(1), math.rad(5)), 0.05)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(0 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.05)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(45)), 0.05)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05)
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=137473066", Torso, 6, 0.8)
- attack = false
- wait(3)
- s = Create("Sound")({
- Name = "BossMusic",
- SoundId = "http://www.roblox.com/asset/?id=547289295",
- Pitch = 1,
- Volume = 2,
- Looped = true,
- archivable = false,
- Parent = Character
- })
- s:play()
- Humanoid.WalkSpeed = 13
- end
- Intro()
- function Deathpose()
- Humanoid.WalkSpeed = 0
- print("ded")
- s:stop()
- attack = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433239", Torso, 4, 1.1)
- Humanoid:SetStateEnabled("Dead", false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- for i = 0, 7.4, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -2.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(59 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(2, 0.6, 0) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(-40)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2)
- RH.C0 = clerp(RH.C0, cn(2, 0 - 0.1 * math.cos(sine / 12), -1) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.2)
- LH.C0 = clerp(LH.C0, cn(-2, -2.8 - 0.1 * math.cos(sine / 12), -1) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(90 + 0.05 * math.cos(sine / 25))), 0.2)
- end
- Humanoid:SetStateEnabled("Dead", false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=137473066", Torso, 4, 0.8)
- for i = 0, 15.5, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -2.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-5 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(2, 0.6, 0) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(-40)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2)
- RH.C0 = clerp(RH.C0, cn(2, 0 - 0.1 * math.cos(sine / 12), -1) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.2)
- LH.C0 = clerp(LH.C0, cn(-2, -2.8 - 0.1 * math.cos(sine / 12), -1) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(90 + 0.05 * math.cos(sine / 25))), 0.2)
- end
- Humanoid:SetStateEnabled("Dead", false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- Effects.Ring.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 1, 1, 0.1, 1, 1, 0, 0.04)
- for i = 0, 5, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.05)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-5 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.05)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05)
- RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.05)
- end
- Humanoid.WalkSpeed = 13
- attack = false
- s:play()
- end
- function HitpartFunk3(HPart3, Xv, Yv, Zv)
- Hitpart3 = Instance.new("Part", HPart3)
- RemoveOutlines(Hitpart3)
- Hitpart3.Size = Vector3.new(1, 1, 1)
- Hitpart3.CanCollide = false
- HuW3 = Instance.new("Weld")
- HuW3.Name = "GuW"
- HuW3.Part0 = HPart3
- HuW3.C0 = cn(Xv, Yv, Zv)
- HuW3.C1 = cn(0, 0, 0)
- HuW3.Part1 = Hitpart3
- HuW3.Parent = HPart3
- Hitpart3.Transparency = 1
- game:GetService("Debris"):AddItem(Hitpart3, 20)
- end
- function HitpartFunk2(HPart2, Xv, Yv, Zv)
- Hitpart2 = Instance.new("Part", HPart2)
- RemoveOutlines(Hitpart2)
- Hitpart2.Size = Vector3.new(1, 1, 1)
- Hitpart2.CanCollide = false
- HuW2 = Instance.new("Weld")
- HuW2.Name = "GuW"
- HuW2.Part0 = HPart2
- HuW2.C0 = cn(Xv, Yv, Zv)
- HuW2.C1 = cn(0, 0, 0)
- HuW2.Part1 = Hitpart2
- HuW2.Parent = HPart2
- Hitpart2.Transparency = 1
- game:GetService("Debris"):AddItem(Hitpart2, 20)
- end
- function HitpartFunk(HPart, Min, Max, Xv, Yv, Zv, atype, kb)
- Hitpart = Instance.new("Part", HPart)
- RemoveOutlines(Hitpart)
- Hitpart.Size = Vector3.new(1, 1, 1)
- Hitpart.CanCollide = false
- HuW = Instance.new("Weld")
- HuW.Name = "GuW"
- HuW.Part0 = HPart
- HuW.C0 = cn(Xv, Yv, Zv)
- HuW.C1 = cn(0, 0, 0)
- HuW.Part1 = Hitpart
- HuW.Parent = HPart
- Hitpart.Transparency = 1
- game:GetService("Debris"):AddItem(Hitpart2, 20)
- MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
- end
- function HitpartFunk4(HPart, Min, Max, Xv, Yv, Zv, atype, kb)
- Hitpart4 = Instance.new("Part", HPart)
- RemoveOutlines(Hitpart4)
- Hitpart4.Size = Vector3.new(1, 1, 1)
- Hitpart4.CanCollide = false
- HuW4 = Instance.new("Weld")
- HuW4.Name = "HuW4"
- HuW4.Part0 = HPart
- HuW4.C0 = cn(Xv, Yv, Zv)
- HuW4.C1 = cn(0, 0, 0)
- HuW4.Part1 = Hitpart4
- HuW4.Parent = HPart
- Hitpart4.Transparency = 1
- game:GetService("Debris"):AddItem(Hitpart4, 1.5)
- MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
- end
- function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
- coroutine.resume(coroutine.create(function()
- local Hitboxpart = Instance.new("Part", EffectModel)
- RemoveOutlines(Hitboxpart)
- Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
- Hitboxpart.CanCollide = false
- Hitboxpart.Transparency = 1
- Hitboxpart.Anchored = true
- Hitboxpart.CFrame = Pose
- game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
- MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
- end))
- end
- wait2 = false
- elementwait = false
- mouse.KeyDown:connect(function(key)
- if attack == false then
- if key == "z" then
- attack = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2101137", Torso, 2, 1)
- local bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
- Effects.Ring.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 1, 1, 0.1, 1, 1, 0, 0.04)
- for i = 0, 6, 0.1 do
- swait()
- local bodyVelocityidle = Create("BodyVelocity")({
- velocity = Vector3.new(0, 0, 0) + RootPart.CFrame.lookVector * 0,
- P = 5000,
- maxForce = Vector3.new(80000, 80000, 80000),
- Parent = RootPart
- })
- game:GetService("Debris"):AddItem(bodyVelocityidle, 0.1)
- bg2.D = 300
- bg2.P = 9999
- bg2.maxTorque = Vector3.new(100000, 1, 100000) * math.huge
- bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(game.Players.LocalPlayer:GetMouse().hit.p.x, game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y, game.Players.LocalPlayer:GetMouse().hit.p.z))
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(15 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.05)
- end
- Humanoid.PlatformStand = true
- game:GetService("Debris"):AddItem(bg2, 2.2)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2767090", Torso, 4, 0.8)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=3264923", Torso, 4, 0.7)
- for i = 0, 12, 0.1 do
- swait()
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 0.1, 0) + RootPart.CFrame.lookVector * 200,
- P = 5000,
- maxForce = Vector3.new(80000, 80000, 80000),
- Parent = RootPart
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.2)
- Humanoid.WalkSpeed = 0
- bg2.D = 100
- bg2.P = 9999
- bg2.maxTorque = Vector3.new(100000, 1, 100000) * math.huge
- bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(game.Players.LocalPlayer:GetMouse().hit.p.x, game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y, game.Players.LocalPlayer:GetMouse().hit.p.z))
- Effects.Wave.Create(BrickColor.new("Crimson"), Torso.CFrame * cn(0, -5, 0) * angles(math.rad(155), math.rad(math.random(0, 180)), math.rad(0)), 200, 150.5, 140, 50, 200, 50, 0.3)
- Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -4, 0) * angles(math.rad(155), math.rad(math.random(0, 180)), math.rad(0)), 340, 100.5, 340, 50, 1, 50, 0.5)
- HitboxFunction(Torso.CFrame * cn(0, 0, 0), 0.05, 1, 1, 1, 10, 15, 20, 30, "Normal")
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(65), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-25 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(2, 0.8, -0.7) * angles(math.rad(90 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(-30)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(-35 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05)
- RH.C0 = clerp(RH.C0, cn(2, -0.2 - 0.1 * math.cos(sine / 12), -1.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.08 - 0.1 * math.cos(sine / 12), -0.6) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(20 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- Humanoid.PlatformStand = false
- Humanoid.WalkSpeed = 2
- for i = 0, 2, 0.1 do
- swait()
- local bodyVelocityidle = Create("BodyVelocity")({
- velocity = Vector3.new(0, 0, 0) + RootPart.CFrame.lookVector * 0,
- P = 5000,
- maxForce = Vector3.new(80000, 80000, 80000),
- Parent = RootPart
- })
- game:GetService("Debris"):AddItem(bodyVelocityidle, 0.1)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(15 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.05)
- end
- Humanoid.WalkSpeed = 13
- attack = false
- end
- if key == "x" then
- attack = true
- Humanoid.WalkSpeed = 4
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2101137", Torso, 2, 1.3)
- for i = 0, 3, 0.1 do
- swait()
- BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -3, 0), 1, 1, 1, 4, 4, 4, 0.05, 1)
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame * cn(0, -3, 0), 1, 1, 1, 4, 4, 4, 0.05, 1)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-19 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 1, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- Humanoid.WalkSpeed = 1
- for i = 0, 10 do
- for i = 0, 0.5, 0.1 do
- swait()
- local targeto1 = Head.Position + Vector3.new(0, 0, 0) + Head.CFrame.lookVector * 10
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(-90 - 5 * math.cos(sine / 2)), math.rad(0), math.rad(160)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 1, 0) * angles(math.rad(-90 - 5 * math.cos(sine / 2)), math.rad(-7), math.rad(-160)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- local targeto1 = RootPart.Position + Vector3.new(0, math.random(-5, -4), 0) + RootPart.CFrame.lookVector * 20
- local Laserpart = Instance.new("Part", EffectModel)
- RemoveOutlines(Laserpart)
- Laserpart.Size = Vector3.new(0.1, 0.1, 0.1)
- Laserpart.CanCollide = false
- Laserpart.Transparency = 1
- Laserpart.Anchored = true
- Laserpart.CFrame = RootPart.CFrame * cn(math.random(-5, 5), math.random(-1, 1), math.random(-4, -3)) + Head.CFrame.lookVector * 0
- game:GetService("Debris"):AddItem(Laserpart, 0.05)
- BlockEffect(BrickColor.new("Really red"), Laserpart.CFrame, 50, 50, 50, 0, 0, 0, 0.1, 1)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2974249", Torso, 2, 1)
- LigLaser(targeto1, Laserpart, 0)
- end
- Humanoid.WalkSpeed = 13
- attack = false
- end
- if key == "c" then
- attack = true
- Humanoid.WalkSpeed = 1
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2101137", Torso, 2, 0.5)
- for i = 0, 15, 0.1 do
- swait()
- BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -1.25, 0), 35, 35, 35, 4, 1, 4, 0.4, 2)
- AirEffect(BrickColor.new("Crimson"), RightArm.CFrame * cn(math.random(-1, 1), math.random(-2, 2), math.random(-1, 1)), 0.1, 0, 0.1, 0, 0.1, 0, 0.1, RootPart, 0.2, "2")
- AirEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(math.random(-1, 1), math.random(-2, 2), math.random(-1, 1)), 0.1, 0, 0.1, 0, 0.1, 0, 0.1, RootPart, 0.2, "2")
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(-1, 1, -0.6 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(-50)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(50)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(2, 0.9, -0.5) * angles(math.rad(90 - 4 * math.cos(sine / 1)), math.rad(0), math.rad(-50)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-3, 1, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-40)), 0.1)
- RH.C0 = clerp(RH.C0, cn(2, -1.5 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(20), math.rad(15 + 0.05 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-2, -1.3 - 0.1 * math.cos(sine / 12), -0.5) * LHCF * angles(math.rad(-14), math.rad(0), math.rad(15 + 0.05 * math.cos(sine / 25))), 0.1)
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=463177334", Torso, 2, 2)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=331888892", Torso, 5, 0.7)
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- AirEffect(BrickColor.new("Really black"), RightArm.CFrame * cn(0, -2, 0), 10, 5.2, 10, 2, 3, 2, 0.06, RootPart, 1, "2")
- AirEffect(BrickColor.new("Really black"), RightArm.CFrame * cn(0, -2, 0), 10, 2.2, 10, 1, 6, 1, 0.06, RootPart, 2, "2")
- AirEffect(BrickColor.new("Really black"), RightArm.CFrame * cn(0, -2, 0), 10, 0.2, 10, 4, 0, 4, 0.06, RootPart, 0.5, "2")
- AirEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -2, 0), 30, 30, 30, -1, -1, -1, 0.03, RootPart, 4, "2")
- local AGoto = RootPart.CFrame.lookVector * 4
- local AFrame = RightArm.CFrame * cn(0, -2, 0)
- for i = 0, 6, 0.03 do
- AFrame = AFrame + AGoto
- HitboxFunction(AFrame, 0.05, 1, 1, 1, 8, 45, 50, 50, "Normal")
- end
- end))
- Humanoid.WalkSpeed = 0
- for i = 0, 1, 0.1 do
- swait()
- BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -1.25, 0), 35, 35, 35, 4, 1, 4, 0.4, 2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(2, -3, -0.8 + 0.1 * math.cos(sine / 12)) * angles(math.rad(20), math.rad(20), math.rad(45)), 0.5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-45)), 0.5)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(120 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(45)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-2, 0.4, -0.8) * angles(math.rad(25 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(45)), 0.5)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5)
- LH.C0 = clerp(LH.C0, cn(-2, -1 - 0.1 * math.cos(sine / 12), -0.5) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5)
- end
- BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -1.25, 0), 35, 35, 35, 2, 1, 2, 0.1, 2)
- for i = 0, 2, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(2, -3, -0.8 + 0.1 * math.cos(sine / 12)) * angles(math.rad(20), math.rad(20), math.rad(45)), 0.5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-45)), 0.5)
- RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(120 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(45)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-2, 0.4, -0.8) * angles(math.rad(25 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(45)), 0.5)
- RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5)
- LH.C0 = clerp(LH.C0, cn(-2, -1 - 0.1 * math.cos(sine / 12), -0.5) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5)
- end
- Humanoid.WalkSpeed = 13
- attack = false
- end
- end
- end)
- combo = 1
- humHsave = Humanoid.Health
- function GainCharge(Humanoid)
- if Humanoid.Health < 1 and attack == false then
- Deathpose()
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- Humanoid.HealthChanged:connect(function()
- GainCharge(Humanoid)
- end)
- function OnDeath()
- equipped = false
- end
- Humanoid.Died:connect(function()
- OnDeath(Character)
- end)
- print("by 123jl123")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement