Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- local Player = game.Players.carcine12
- local char = Player.Character
- local Character = Player.Character
- local Head = Character.Head
- local done = false
- local canheal = false
- local deathchat1 = false
- local once = true
- local dead = false
- local candie = true
- local deathchat = false
- local idleon = true
- local idle1 = true
- local idle = true
- for i, v in pairs(game:GetService("Players").LocalPlayer.Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
- if v:IsA("Shirt") then
- v:Remove()
- end
- end
- for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
- if v:IsA("Pants") then
- v:Remove()
- end
- end
- wait()
- shirt = Instance.new("Shirt", game:GetService("Players").LocalPlayer.Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", game:GetService("Players").LocalPlayer.Character)
- pants.Name = "Pants"
- local v3 = Vector3.new
- local num = 0
- local bc = BrickColor.new
- local new = Instance.new
- Instance.new("ForceField",char).Visible = false
- local poo = Instance.new("IntValue",Character)
- poo.Name = "haha nope"
- char.Humanoid.MaxHealth = math.huge
- wait()
- char.Humanoid.Health = math.huge
- Instance.new("ForceField",char).Visible = false
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=984827870"
- char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=819422015"
- char.Head.face.Texture = "rbxassetid://1108342609"
- Hair7 = Instance.new("Part")
- Hair7.Parent = char
- Hair7.Name = "Hair"
- Hair7.CanCollide = false
- Hair7.Locked = true
- Hair7.TopSurface = "Smooth"
- Hair7.BottomSurface = "Smooth"
- Hair7.formFactor = "Symmetric"
- Hair7.Material = "Neon"
- Hair7.BrickColor = BrickColor.new("Really black")
- Hair7.CFrame = char.Torso.CFrame
- Hair7.Size = Vector3.new(1, 1, 1)
- Hair7.Transparency = 0
- Weld1 = Instance.new("Weld")
- Weld1.Parent = char.Head
- Weld1.Part0 = char.Head
- Weld1.Part1 = Hair7
- Weld1.C0 = CFrame.new(0, 1.2, 0.64)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Offset = Vector3.new(0,-0.4,0)
- Mesh.Parent = Hair7
- Mesh.Scale = Vector3.new(6.7, 6.7, 6.7)
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = "http://www.roblox.com/asset/?id=560180459"
- Mesh.TextureId = ""
- local ice = Instance.new("Part", Head)
- ice.Size = Vector3.new(0.5, 0.5, 0.5)
- ice.BrickColor = BrickColor.new("White")
- ice.CanCollide = false
- ice.TopSurface = 0
- ice.BottomSurface = 0
- ice.Transparency = 1
- local ice2 = Instance.new("SpecialMesh", ice)
- ice2.MeshType = "Brick"
- ice2.Scale = Vector3.new(1, 1, 1)
- local ice3 = Instance.new("Weld", ice)
- ice3.Part0 = Head
- ice3.Part1 = ice
- ice3.C0 = CFrame.new(0, 0, -0.8) * CFrame.Angles(0, 0, 0)
- local icesmoke = Instance.new("ParticleEmitter", ice)
- icesmoke.VelocitySpread = 5
- icesmoke.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.01),
- NumberSequenceKeypoint.new(1, 1)
- })
- icesmoke.Rate = math.huge
- icesmoke.Speed = NumberRange.new(1, 1)
- icesmoke.Lifetime = NumberRange.new(0.5, 0.8)
- icesmoke.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.9),
- NumberSequenceKeypoint.new(1, 1)
- })
- icesmoke.Rotation = NumberRange.new(0, 360)
- icesmoke.Name = "Smoke"
- icesmoke.LightEmission = 0
- icesmoke.Acceleration = Vector3.new(0,0,0)
- icesmoke.Texture = "http://www.roblox.com/asset/?id="
- icesmoke.Color = ColorSequence.new(Color3.new(0.5, 0.5, 0.5), Color3.new(0.5, 0.5, 0.5))
- icesmoke.LockedToPart = true
- 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
- }
- firemode = true
- 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
- 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 = 1
- sou2.Pitch = 1
- sou2.SoundId = id
- wait()
- sou2:play()
- sou2.Looped = true
- end))
- end
- CreateSong("http://www.roblox.com/asset/?id=", Character, 2)
- 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", "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
- 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, "", 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, "SmoothPlastic", 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 Torsovelocity.Y > 1 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 Torsovelocity.Y < 1 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(1, 0, 1).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- if equipped == true or equipped == false then
- if 1 < RootPart.Velocity.y and hit == nil then
- Anim = "Jump"
- if attack == false and ice_mode == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil and ice_mode == false then
- Anim = "Fall"
- if attack == false then
- 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 * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- end
- elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 and hit ~= nil and ice_mode == false then
- Anim = "Idle"
- if attack == false then
- change = 1
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(6 - 2 * math.cos(sine / 25)), math.rad(4), math.rad(-1)), .1)
- RW.C0 = clerp(RW.C0, CFrame.new(0.9, 0.5, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-60 + 3 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-0.9, 0.4, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60 - 3 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-8 + 0 * math.cos(sine / 25)), math.rad(-1), math.rad(0 + 2 * math.cos(sine / 25))), .1)
- LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-8 + 0 * math.cos(sine / 25)), math.rad(-1), math.rad(0 + 2 * math.cos(sine / 25))), .1)
- end
- elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 and hit ~= nil and ice_mode == false then
- Anim = "Walk"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0 + 0.1 * math.cos(sine / 3.5)) * angles(math.rad(8), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), 0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-65 * math.cos(sine / 4)), math.rad(0), math.rad(0 * math.cos(sine / 10))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(65 * math.cos(sine / 4)), math.rad(0), math.rad(0 * math.cos(sine / 10))), 0.2)
- RH.C0 = clerp(RH.C0, cn(1, -1 + 0.2 * math.cos(sine / 4), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.3)
- LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 4), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.3)
- end
- end
- end
- if equipped == true or equipped == false then
- if 1 < RootPart.Velocity.Y and hit == nil then
- Anim = "Jump"
- if attack == false and ice_mode == true then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
- end
- elseif RootPart.Velocity.Y < -1 and hit == nil and ice_mode == true then
- Anim = "Fall"
- if attack == false then
- 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 * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
- end
- elseif(Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 and hit ~= nil and ice_mode == true then
- Anim = "Idle"
- if attack == false then
- change = 0.8
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(9), math.rad(1), math.rad(15)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-9 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-15)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.2) * angles(math.rad(110 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-26 + 4 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4, -0.15) * angles(math.rad(60 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(30 - 4 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(-15), math.rad(19 + 2 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 25), -0.1) * LHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(-15), math.rad(9 + 2 * math.cos(sine / 25))), 0.1)
- end
- elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 and hit ~= nil and ice_mode == true then
- Anim = "Walk"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.5 + 0.1 * math.cos(sine / 25)) * angles(math.rad(9), math.rad(1), math.rad(-70)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-9 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(70)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.2) * angles(math.rad(110 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-26 + 4 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4, -0.15) * angles(math.rad(60 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(30 - 4 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(0.6, -0.8 - 0.1 * math.cos(sine / 25), -0.5) * RHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(70), math.rad(4 + 2 * math.cos(sine / 25))), 0.1)
- LH.C0 = clerp(LH.C0, cn(-0.9, -0.8 - 0.1 * math.cos(sine / 25), 0.4) * LHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(70), math.rad(-19 + 2 * math.cos(sine / 25))), 0.1)
- 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 * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, -0.3, 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.2, 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)
- 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 blue"
- }
- 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
- 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 Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("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 Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = hit.Position - Property.Position + Vector3.new(0, 0, 0).unit
- local bodvol = Create("BodyVelocity")({
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- local rl = Create("BodyAngularVelocity")({
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodvol, 0.5)
- game:GetService("Debris"):AddItem(rl, 0.5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity")({
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
- })
- 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", "Pastel light blue", Vector3.new(1, 1, 1), "Neon", 0.7, Vector3.new(1, 25, 1))
- Spike.Anchored = true
- Spike.Rotation = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10))
- Spike.Position = hit.Parent.Torso.Position
- for i = 1, 5 do
- IcePartFunk(hit.Parent.Torso, 0.55, 0.1, 1)
- end
- 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.5)
- 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, 1)
- 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(60, 150) do
- 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)
- MagniDamage(hit.Parent.Torso, 12304, 1, 8, 0, "Normal")
- 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=1050733875", 1)
- 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"
- 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, "SmoothPlastic", 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, "SmoothPlastic", 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, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- 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, "SmoothPlastic", 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 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 shoottraildd(mouse, partt, SpreadAmount, dmg) ---effects
- 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("Lapis"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -2.175, 0, -2.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("Cyan"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
- BlockEffect(BrickColor.new("Cyan"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- BlockEffect(BrickColor.new("Cyan"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- MagniDamage(refpart, 40, dmg, dmg, 0, "FireDmg")
- 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 = 3000
- 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("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -17.175, 0, -17.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("New Yeller"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
- BlockEffect(BrickColor.new("New Yeller"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
- BlockEffect(BrickColor.new("New Yeller"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
- MagniKILL(refpart, 80, 0, "Normal")
- end
- game:GetService("Debris"):AddItem(refpart, 0)
- end
- until num <= 0
- end))
- end
- function shoottraildd22(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 = 900
- 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("Magenta"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -6.175, 0, -6.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("Magenta"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
- BlockEffect(BrickColor.new("Magenta"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
- BlockEffect(BrickColor.new("Magenta"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
- 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("Cyan"), 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 blue"), 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 blue"), 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 = 500
- 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("Cyan"), 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("Cyan"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
- BlockEffect(BrickColor.new("Cyan"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- BlockEffect(BrickColor.new("Cyan"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
- MagniDamage(refpart, 4, dmg, 40, 0, "Normal")
- end
- game:GetService("Debris"):AddItem(refpart, 0)
- end
- until num <= 0
- end))
- end
- ---
- attackdebounce = false
- deb=false
- ugothit=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChildOfClass("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- Humanoid=hit.Parent.Humanoid
- Humanoid.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),Humanoid)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- bp=Instance.new("BodyVelocity")
- bp.P=100000
- bp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- bp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- bp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- bp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(bp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,60,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- swait(1)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=true
- RocketTarget=true
- targetgui.Parent=true
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=true
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Transparency = 1
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- local txt = Instance.new("BillboardGui", c)
- txt.Adornee = c
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size12"
- text.TextScaled = true
- text.TextTransparency = 0.5
- text.BackgroundTransparency = 1
- text.TextTransparency = 0.5
- text.TextStrokeTransparency = 0.5
- text.Font = "SciFi"
- text.TextStrokeColor3 = Color3.new(0,0,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=c
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=c.CFrame
- v.BrickColor=BrickColor.random()
- v.Transparency=1
- text.TextColor3 = t.BrickColor.Color
- v.Shape="Block"
- text.Text = tostring(Dealt)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
- local rndm=math.random(1,#hitsounds)
- local r=rndm
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=200000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- ------
- hito = function(dm, X, c, dn, dp, dq)
- for I,dr in pairs(workspace:GetChildren()) do
- if dr:FindFirstChild("Humanoid") and dr:FindFirstChild("HumanoidRootPart") and dr ~= chr and (dr:FindFirstChild("HumanoidRootPart").Position - dm.Position).magnitude < X and dr:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
- local ds = dr:FindFirstChild("Humanoid")
- local dt = dr:FindFirstChild("HumanoidRootPart")
- TakeDamage(ds, c)
- if InForm == true then
- ds.Parent:BreakJoints()
- wait(1.2)
- ds.Parent:Destroy()
- end
- ds:SetStateEnabled(16, true)
- delay(dn, function()
- ds:SetStateEnabled(16, true)
- end)
- local du = Instance.new("StringValue")
- du.Name = "alabo"
- du.Parent = dt
- game.Debris:AddItem(du, dn)
- local dv = Instance.new("Part")
- dv.Size = Vector3.new(0.2, 0.2, 0.2)
- dv.Transparency = 0.25
- dv.Anchored = true
- dv.CanCollide = false
- dv.BrickColor = BrickColor.new("White")
- dv.Material = "Neon"
- dv.Locked = true
- dv.CFrame = dt.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1))
- dv.Parent = modz
- local dw = Instance.new("SpecialMesh")
- dw.MeshType = "Sphere"
- dw.Scale = Vector3.new(0.5, 0.5, 0.5)
- dw.Parent = dv
- game.Debris:AddItem(dv, 1)
- local dx = Instance.new("Model")
- dx.Name = c
- dx.Parent = workspace
- game.Debris:AddItem(dx, 0.5 + c / 75)
- local dy = Instance.new("Humanoid")
- dy.MaxHealth = 0
- dy.Parent = dx
- local dz = Instance.new("Part")
- dz.Name = "Head"
- dz.Locked = true
- dz.Size = Vector3.new(0.2, 0.2, 0.2)
- dz.Position = dt.Position
- dz.BrickColor = BrickColor.new("New Yeller")
- dz.Material = "Neon"
- dz.Transparency = 1
- dz.CanCollide = false
- dz.Parent = dx
- local dA = Instance.new("BodyPosition")
- dA.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- dA.P = 20000
- dA.D = 300
- dA.Position = dz.Position + Vector3.new(0, 5, 0)
- dA.Parent = dz
- local dB = Instance.new("CylinderMesh")
- dB.Parent = dz
- coroutine.resume(coroutine.create(function()
- while dB do
- swait()
- dB.Scale = dB.Scale:lerp(Vector3.new(2.5 + c / 10, 1.25 + c / 35, 2.5 + c / 10), 0.4)
- end
- end))
- if dp then
- local dC = Instance.new("BodyVelocity")
- dC.MaxForce = Vector3.new(999999999999, 9999999999999, 9999999999999)
- dC.P = 9999999999
- dC.Velocity = dp
- dC.Parent = dt
- game.Debris:AddItem(dC, dn)
- end
- if dq then
- local dD = Instance.new("BodyAngularVelocity")
- dD.MaxTorque = Vector3.new(99999, 999999, 999999)
- dD.P = math.huge
- dD.AngularVelocity = dq
- dD.Parent = dt
- game.Debris:AddItem(dD, dn)
- end
- local dE = Instance.new("Sound")
- dE.Pitch = rd2(10, 11) / 10
- dE.Volume = rd2(10, 13) / 10
- dE.EmitterSize = 10
- dE.SoundId = "rbxassetid://"
- dE.Parent = dv
- dE:Play()
- coroutine.resume(coroutine.create(function()
- for I = 1, 5 do
- swait()
- dv.Transparency = dv.Transparency + 0.175
- dw.Scale = dw.Scale + Vector3.new(0.8 * c, 0.8 * c, 0.8 * c)
- end
- end))
- end
- end
- end
- ------
- vt = Vector3.new
- local new = Instance.new
- local cf = CFrame.new
- local cfa = CFrame.Angles
- local bc = BrickColor.new
- function bigbangattack()
- attack = true
- Humanoid.WalkSpeed = 0
- for i = 0, 8, 0.1 do
- swait()
- Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0, math.rad(0), 0) * CFrame.new(dir.d - dir.a, 0, dir.s - dir.w)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(-5), math.rad(-90)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(0 * math.cos(sine / 25)), math.rad(0 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, -0.2) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(0), math.rad(-90 + 1 * math.cos(sine / 25))), 0.3)
- RH.C0 = clerp(RH.C0, cn(0.9, -1 - 0.1 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), 0.2)
- LH.C0 = clerp(LH.C0, cn(-0.9, -1 - 0.1 * math.cos(sine / 25), 0.4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), 0.2)
- end
- local rng = Instance.new("Part", mouse)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Cyan")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(0.4,0.4,0.4)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = RootPart.CFrame
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- local rng3 = rng:Clone()
- rng3.Parent = char
- local rng3m = rng3.Mesh
- local rng5 = rng:Clone()
- rng5.Parent = char
- rng5.BrickColor = BrickColor.new("Cyan")
- local rng5m = rng5.Mesh
- local rng6 = rng:Clone()
- rng6.Material = "Plastic"
- rng6.BrickColor = BrickColor.new("Cyan")
- rng6.Parent = char
- local rng6m = rng6.Mesh
- rng6m.Scale = vt(7.5,7.5,7.5)
- rng6m.MeshType = "FileMesh"
- rng6m.MeshId = "rbxassetid://430736398"
- local Must2 = Instance.new("Sound",rng6)
- Must2.SoundId = "rbxassetid://135581154"
- Must2.Pitch = 0.99
- Must2.Volume = 3
- Must2.Looped = false
- wait(0)
- Must2:Play()
- local hita = rng6.Touched:connect(function(hit)
- ugothit(hit,40,50,math.random(49,56),"Normal",RootJoint,.2,1)
- end)
- rng3.CFrame = RootPart.CFrame
- rng5.CFrame = RootPart.CFrame
- rng6.CFrame = RootPart.CFrame
- local pie222 = Instance.new("ParticleEmitter")
- pie222.Parent = rng6
- pie222.Color = ColorSequence.new(BrickColor.new("Cyan").Color)
- pie222.LightEmission = 1
- pie222.Size = NumberSequence.new(6,1)
- pie222.Texture = "http://www.roblox.com/asset/?id=224413104"
- pie222.Transparency = NumberSequence.new(0.6,1)
- pie222.EmissionDirection = "Top"
- pie222.Enabled = true
- pie222.Lifetime = NumberRange.new(1)
- pie222.Rotation = NumberRange.new(-320, 320)
- pie222.Rate = 404
- pie222.Speed = NumberRange.new(0)
- pie222.LockedToPart = false
- pie222.VelocitySpread = 2
- wait()
- local scaler = 10/5
- local scaler2 = 10/5
- for i = 0,10,0.1 do
- swait()
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
- rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/0.5
- rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/10
- rng6.Size = rng6.Size + Vector3.new(scaler2/3.8, scaler2/3.8, scaler2/3.8)
- rng6.CFrame = rng3.CFrame
- rng.Transparency = rng.Transparency + 1
- rng3.Transparency = rng3.Transparency + 0.01
- rng5.Transparency = rng5.Transparency + 0.01
- rng6.Transparency = rng6.Transparency + 0.021
- scaler = scaler - 0.125/5
- scaler2 = scaler2 - 0.1/5
- rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
- rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0.3)
- rngm.Scale = rngm.Scale + Vector3.new(scaler2/1, scaler2/1, 1)
- end
- hita:disconnect()
- game:GetService("Debris"):AddItem(rng, 1)
- game:GetService("Debris"):AddItem(rng3, 1)
- game:GetService("Debris"):AddItem(rng5, 1)
- attack = false
- pie222:Destroy()
- Humanoid.WalkSpeed = 16
- end
- function bigbangattack2()
- attack = true
- Humanoid.WalkSpeed = 0
- for i = 0, 8, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(-5), math.rad(-90)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(0 * math.cos(sine / 25)), math.rad(0 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, -0.2) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(0), math.rad(-90 + 1 * math.cos(sine / 25))), 0.3)
- RH.C0 = clerp(RH.C0, cn(0.9, -1 - 0.1 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), 0.2)
- LH.C0 = clerp(LH.C0, cn(-0.9, -1 - 0.1 * math.cos(sine / 25), 0.4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), 0.2)
- end
- local rng = Instance.new("Part", RightArm)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Cyan")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(0.4,0.4,0.4)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = RootPart.CFrame
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- local rng3 = rng:Clone()
- rng3.Parent = char
- local rng3m = rng3.Mesh
- local rng5 = rng:Clone()
- rng5.Parent = char
- rng5.BrickColor = BrickColor.new("Cyan")
- local rng5m = rng5.Mesh
- local rng6 = rng:Clone()
- rng6.Material = "Plastic"
- rng6.BrickColor = BrickColor.new("Cyan")
- rng6.Parent = char
- local rng6m = rng6.Mesh
- rng6m.Scale = vt(7.5,7.5,30.5)
- rng6m.MeshType = "FileMesh"
- rng6m.MeshId = "rbxassetid://430736398"
- local Must2 = Instance.new("Sound",Torso)
- Must2.SoundId = "rbxassetid://719747626"
- Must2.Pitch = 0.99
- Must2.Volume = 3
- Must2.Looped = false
- wait(0)
- Must2:Play()
- local hita = rng6.Touched:connect(function(hit)
- ugothit(hit,40,50,math.random(49,56),"Normal",RootJoint,.2,1)
- end)
- rng3.CFrame = Head.CFrame
- rng5.CFrame = Head.CFrame
- rng6.CFrame = rng5.CFrame
- local pie222 = Instance.new("ParticleEmitter")
- pie222.Parent = rng6
- pie222.Color = ColorSequence.new(BrickColor.new("Cyan").Color)
- pie222.LightEmission = 1
- pie222.Size = NumberSequence.new(15,1)
- pie222.Texture = "http://www.roblox.com/asset/?id=224413104"
- pie222.Transparency = NumberSequence.new(0.6,1)
- pie222.EmissionDirection = "Top"
- pie222.Enabled = true
- pie222.Lifetime = NumberRange.new(1)
- pie222.Rotation = NumberRange.new(-320, 320)
- pie222.Rate = 404
- pie222.Speed = NumberRange.new(0)
- pie222.LockedToPart = false
- pie222.VelocitySpread = 2
- wait()
- local scaler = 10/5
- local scaler2 = 10/5
- for i = 0,10,0.1 do
- swait()
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
- rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/0.5
- rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/10
- rng6.Size = rng6.Size + Vector3.new(scaler2/3.8, scaler2/3.8, scaler2/0.8)
- rng6.CFrame = rng3.CFrame
- rng.Transparency = rng.Transparency + 1
- rng3.Transparency = rng3.Transparency + 0.01
- rng5.Transparency = rng5.Transparency + 0.01
- rng6.Transparency = rng6.Transparency + 0.021
- scaler = scaler - 0.125/5
- scaler2 = scaler2 - 0.1/5
- rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
- rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0.3)
- rngm.Scale = rngm.Scale + Vector3.new(scaler2/1, scaler2/1, 1)
- end
- hita:disconnect()
- game:GetService("Debris"):AddItem(rng, 1)
- game:GetService("Debris"):AddItem(rng3, 1)
- game:GetService("Debris"):AddItem(rng5, 1)
- attack = false
- pie222:Destroy()
- Humanoid.WalkSpeed = 16
- end
- mouse.KeyDown:connect(function(key)
- if key == "k" then
- bigbangattack()
- end
- end)
- mouse.KeyDown:connect(function(k) ---galickgun
- if attack == false and k == "n" and MV4 > 80 and firemode == true then
- MV4 = 0
- local Must = Instance.new("Sound",Torso)
- Must.SoundId = "rbxassetid://719748223"
- Must.Pitch = 0.99
- Must.Volume = 3.4
- Must.Looped = false
- wait(0)
- Must:Play()
- Humanoid.WalkSpeed = 13
- local Aura = Instance.new('ParticleEmitter')
- Aura.Name = "Aura"
- Aura.Texture = "rbxassetid://347730682"
- Aura.Parent = Torso
- Aura.LightEmission = 1
- Aura.Transparency = NumberSequence.new(0.4,1)
- Aura.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
- Aura.Size = NumberSequence.new(1,9)
- Aura.Rotation = NumberRange.new(-360,360)
- Aura.LockedToPart = true
- Aura.Lifetime = NumberRange.new(1)
- Aura.Rate = 100
- Aura.Speed = NumberRange.new(0)
- Aura.EmissionDirection = "Top"
- local Aura2 = Instance.new('ParticleEmitter')
- Aura2.Name = "Aura"
- Aura2.Texture = "rbxassetid://1046299182"
- Aura2.Parent = Torso
- Aura2.LightEmission = 1
- Aura2.Transparency = NumberSequence.new(0,1)
- Aura2.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
- Aura2.Size = NumberSequence.new(14)
- Aura2.Rotation = NumberRange.new(-360,360)
- Aura2.LockedToPart = true
- Aura2.Lifetime = NumberRange.new(0.2)
- Aura2.Rate = 20
- Aura2.Speed = NumberRange.new(0)
- Aura2.EmissionDirection = "Top"
- attack = true
- Firepart1 = Instance.new("Part", RightArm)
- Firepart1.Size = Vector3.new(1, 1, 1)
- GuW1 = Instance.new("Weld")
- GuW1.Name = "GuW"
- GuW1.Part0 = RightArm
- GuW1.C0 = cn(0, -1, 0)
- GuW1.C1 = cn(0, 0, 0)
- GuW1.Part1 = Firepart1
- GuW1.Parent = RightArm
- Firepart1.Transparency = 1
- Firepart2 = Instance.new("Part", LeftArm)
- Firepart2.Size = Vector3.new(1, 1, 1)
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = LeftArm
- GuW2.C0 = cn(0, -1, 0)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = LeftArm
- Firepart2.Transparency = 1
- GuW1:Destroy()
- GuW1 = Instance.new("Weld")
- GuW1.Name = "GuW"
- GuW1.Part0 = Torso
- GuW1.C0 = cn(0, 0, -6)
- GuW1.C1 = cn(0, 0, 0)
- GuW1.Part1 = Firepart1
- GuW1.Parent = Torso
- GuW2:Destroy()
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = Torso
- GuW2.C0 = cn(0, 0, -6)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = Torso
- GuW2:Destroy()
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = Torso
- GuW2.C0 = cn(0, 0, -4)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = Torso
- for i = 0, 18, 0.1 do
- swait()
- if Torsovelocity.Y > 2 then
- 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(0), math.rad(0), math.rad(-59)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- elseif Torsovelocity.Y < 1 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-59)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-120), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- end
- end
- GuW1:Destroy()
- GuW1 = Instance.new("Weld")
- GuW1.Name = "GuW"
- GuW1.Part0 = Torso
- GuW1.C0 = cn(0, 0, -15)
- GuW1.C1 = cn(0, 0, 0)
- GuW1.Part1 = Firepart1
- GuW1.Parent = Torso
- GuW2:Destroy()
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = Torso
- GuW2.C0 = cn(0, 0, -17.5)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = Torso
- local Must = Instance.new("Sound",Torso)
- Must.SoundId = "rbxassetid://719747626"
- Must.Pitch = 0.99
- Must.Volume = 3.9
- Must.Looped = false
- wait(0)
- Must:Play()
- for i = 0, 1.25, 0.01 do
- swait()
- Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0, math.rad(0), 0) * CFrame.new(dir.d - dir.a, 0, dir.s - dir.w)
- shoottraildd22(mouse.Hit.p, Torso, 0)
- BlockEffect(BrickColor.new("Magenta"), Torso.CFrame, 1, 1, 1, 30, 30, 30, 0.06)
- BlockEffect(BrickColor.new("Magenta"), Torso.CFrame, 1, 1, 1, 29.5, 29.5, 29.5, 0.06)
- if Torsovelocity.Y > 2 then
- 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(0), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-75)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(75)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- end
- end
- Must:Stop()
- Aura:Destroy()
- Aura2:Destroy()
- wait(0.5)
- Humanoid.WalkSpeed = 16
- attack = false
- MV4 = 300
- Firepart1:Destroy()
- Firepart2:Destroy()
- end
- end)
- d = {}
- function iteffect()
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- effect = Instance.new("Part", workspace)
- effect.Anchored = true
- effect.CanCollide = false
- effect.Size = Vector3.new(0.2, 3, 0.2)
- effect.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- effect.Transparency = 0
- effect.Material = "Plastic"
- effect.BrickColor = BrickColor.new("Really black")
- table.insert(d, effect)
- game:GetService("Debris"):AddItem(effect, 0.3)
- end
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- for i,e in pairs(d) do
- e.CFrame = e.CFrame * CFrame.new(0, math.random(0, 10)/10, 0)
- e.Transparency = e.Transparency + 0.030
- end
- wait(0.01)
- end
- end))
- end))
- end
- tp = true
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- if tp == true then
- tp = false
- local Must = Instance.new("Sound",Torso)
- Must.SoundId = "rbxassetid://1055279036"
- Must.Pitch = 0.99
- Must.Volume = 1.2
- Must.Looped = false
- wait(0)
- Must:Play()
- Zanzoken = Instance.new("Part",char)
- Zanzoken.Anchored = true
- Zanzoken.CanCollide = false
- Zanzoken.Position = v3(999,999,999)
- Zanzoken.CFrame = Torso.CFrame
- game.Debris:AddItem(Zanzoken,0.5)
- Zanzoken.Transparency = 1
- wait()
- idk = Instance.new("BillboardGui",Zanzoken)
- idk.Size = UDim2.new(10,0,15,0)
- idk.AlwaysOnTop = false
- idk1 = Instance.new("ImageLabel",idk)
- idk1.BackgroundTransparency = 1
- idk.ExtentsOffset = v3(0,0,0)
- idk1.ImageTransparency = 0
- idk1.ImageColor3 = Color3.fromRGB(0,0,0)
- idk1.Size = UDim2.new(2,0,1,0)
- idk1.Position = UDim2.new(-0.5,0,-0.2,0)
- idk1.Image = "rbxassetid://319554883"
- char.Head.face.Parent = game.Lighting
- wait(0)
- char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
- game.Lighting.face.Parent = char.Head
- wait(0)
- Zanzoken = Instance.new("Part",char)
- Zanzoken.Anchored = true
- Zanzoken.CanCollide = false
- Zanzoken.Position = v3(999,999,999)
- Zanzoken.CFrame = Torso.CFrame
- game.Debris:AddItem(Zanzoken,0.5)
- Zanzoken.Transparency = 1
- wait()
- idk = Instance.new("BillboardGui",Zanzoken)
- idk.Size = UDim2.new(10,0,15,0)
- idk.AlwaysOnTop = false
- idk1 = Instance.new("ImageLabel",idk)
- idk1.BackgroundTransparency = 1
- idk.ExtentsOffset = v3(0,0,0)
- idk1.ImageTransparency = 0
- idk1.ImageColor3 = Color3.fromRGB(0,0,0)
- idk1.Size = UDim2.new(2,0,1,0)
- idk1.Position = UDim2.new(-0.5,0,-0.2,0)
- idk1.Image = "rbxassetid://319554883"
- wait(0.4)
- tp = true
- end
- end
- end)
- MV4 = 300
- mouse.KeyDown:connect(function(k)
- if attack == false and k == "v" and MV4 > 80 and firemode == true then
- MV4 = 0
- local Must = Instance.new("Sound",workspace)
- Must.SoundId = "rbxassetid://194135434"
- Must.Pitch = 0.99
- Must.Volume = 1.7
- Must.Looped = true
- wait(0)
- Must:Play()
- local lb = Instance.new("Part")
- lb.Parent = char
- lb.Material = "Neon"
- lb.Color = BrickColor.new("Gold").Color
- lb.CanCollide = false
- lb.Material = "Neon"
- lb.Size = vt(1,1,1)
- lb.CFrame = Torso.CFrame
- lb.Rotation = vt(0,0,0)
- lb.Anchored = true
- lb.Transparency = 0
- local thing = Instance.new("SpecialMesh",lb)
- thing.MeshType = "FileMesh"
- thing.MeshId = "http://www.roblox.com/asset/?id=20329976"
- thing.Scale = vt(0,15,0)
- local chancerot = math.random(1,2)
- for z = 0, 4 do
- if chancerot == 1 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,0.1,0)
- elseif chancerot == 2 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.1,0)
- end
- lb.Transparency = lb.Transparency + 0.1
- thing.Scale = thing.Scale + vt(15,0,15)
- wait()
- end
- for z = 0, 4 do
- if chancerot == 1 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,0.1,0)
- elseif chancerot == 2 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.1,0)
- end
- lb.Transparency = lb.Transparency + 0.1
- thing.Scale = thing.Scale + vt(15,0,15)
- wait()
- end
- local Aura = Instance.new('ParticleEmitter')
- Aura.Name = "Aura"
- Aura.Texture = "rbxassetid://347730682"
- Aura.Parent = Torso
- Aura.LightEmission = 1
- Aura.Transparency = NumberSequence.new(0.5,1)
- Aura.Color = ColorSequence.new(BrickColor.new("Gold").Color)
- Aura.Size = NumberSequence.new(1,25)
- Aura.Rotation = NumberRange.new(-360,360)
- Aura.LockedToPart = true
- Aura.Lifetime = NumberRange.new(1)
- Aura.Rate = 100
- Aura.Speed = NumberRange.new(0)
- Aura.EmissionDirection = "Top"
- local Aura2 = Instance.new('ParticleEmitter')
- Aura2.Name = "Aura"
- Aura2.Texture = "rbxassetid://1046299182"
- Aura2.Parent = Torso
- Aura2.LightEmission = 1
- Aura2.Transparency = NumberSequence.new(0,1)
- Aura2.Color = ColorSequence.new(BrickColor.new("Gold").Color)
- Aura2.Size = NumberSequence.new(55)
- Aura2.Rotation = NumberRange.new(-360,360)
- Aura2.LockedToPart = true
- Aura2.Lifetime = NumberRange.new(0.2)
- Aura2.Rate = 20
- Aura2.Speed = NumberRange.new(0)
- Aura2.EmissionDirection = "Top"
- lig = Instance.new("PointLight",Player.Character.Torso)
- lig.Color=Color3.new(255,255,0)
- lig.Range = 12
- Humanoid.WalkSpeed = 0.01
- attack = true
- Firepart1 = Instance.new("Part", RightArm)
- Firepart1.Size = Vector3.new(1, 1, 1)
- GuW1 = Instance.new("Weld")
- GuW1.Name = "GuW"
- GuW1.Part0 = RightArm
- GuW1.C0 = cn(0, -1, 0)
- GuW1.C1 = cn(0, 0, 0)
- GuW1.Part1 = Firepart1
- GuW1.Parent = RightArm
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=257001355", Torso, 2, 0.7)
- Firepart1.Transparency = 1
- Firepart2 = Instance.new("Part", LeftArm)
- Firepart2.Size = Vector3.new(1, 1, 1)
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = LeftArm
- GuW2.C0 = cn(0, -1, 0)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = LeftArm
- Firepart2.Transparency = 1
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=743499393", Firepart2, 2, 0.8)
- GuW1:Destroy()
- GuW1 = Instance.new("Weld")
- GuW1.Name = "GuW"
- GuW1.Part0 = Torso
- GuW1.C0 = cn(0, 0, -6)
- GuW1.C1 = cn(0, 0, 0)
- GuW1.Part1 = Firepart1
- GuW1.Parent = Torso
- GuW2:Destroy()
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = Torso
- GuW2.C0 = cn(0, 0, -6)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = Torso
- GuW2:Destroy()
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = Torso
- GuW2.C0 = cn(0, 0, -4)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = Torso
- for i = 0, 15, 0.1 do
- swait()
- if Torsovelocity.Y > 2 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 40) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.2)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- elseif Torsovelocity.Y < 1 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 40) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.2)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- end
- end
- wait(16)
- local Aura3 = Instance.new('ParticleEmitter')
- Aura3.Name = "Aura"
- Aura3.Texture = "rbxassetid://1046299182"
- Aura3.Parent = Torso
- Aura3.LightEmission = 1
- Aura3.Transparency = NumberSequence.new(0.4,1)
- Aura3.Color = ColorSequence.new(BrickColor.new("Gold").Color)
- Aura3.Size = NumberSequence.new(140)
- Aura3.Rotation = NumberRange.new(-360,360)
- Aura3.LockedToPart = true
- Aura3.Lifetime = NumberRange.new(0.2)
- Aura3.Rate = 70
- Aura3.Speed = NumberRange.new(0)
- Aura3.EmissionDirection = "Top"
- local Aura4 = Instance.new('ParticleEmitter')
- Aura4.Name = "Aura"
- Aura4.Texture = "rbxassetid://1046299182"
- Aura4.Parent = Torso
- Aura4.LightEmission = 1
- Aura4.Transparency = NumberSequence.new(0.7,1)
- Aura4.Color = ColorSequence.new(BrickColor.new("New Yeller").Color)
- Aura4.Size = NumberSequence.new(190)
- Aura4.Rotation = NumberRange.new(-360,360)
- Aura4.LockedToPart = true
- Aura4.Lifetime = NumberRange.new(0.2)
- Aura4.Rate = 120
- Aura4.Speed = NumberRange.new(0)
- Aura4.EmissionDirection = "Top"
- local Aura5 = Instance.new('ParticleEmitter')
- Aura5.Name = "Aura"
- Aura5.Texture = "rbxassetid://347730682"
- Aura5.Parent = Torso
- Aura5.LightEmission = 1
- Aura5.Transparency = NumberSequence.new(0.2,1)
- Aura5.Color = ColorSequence.new(BrickColor.new("Gold").Color)
- Aura5.Size = NumberSequence.new(1,65)
- Aura5.Rotation = NumberRange.new(-360,360)
- Aura5.LockedToPart = true
- Aura5.Lifetime = NumberRange.new(1)
- Aura5.Rate = 200
- Aura5.Speed = NumberRange.new(0)
- Aura5.EmissionDirection = "Top"
- local quake = Instance.new("Sound",workspace)
- quake.SoundId = "rbxassetid://1048411878"
- quake.Pitch = 0.99
- quake.Volume = 1.3
- quake.Looped = true
- wait(0)
- quake:Play()
- local scrr = Instance.new("Sound",Torso)
- scrr.SoundId = "rbxassetid://908472235"
- scrr.Pitch = 0.99
- scrr.Volume = 0.5
- scrr.Looped = true
- wait(0)
- scrr:Play()
- for i = 0, 2, 0.1 do
- swait()
- local lb = Instance.new("Part")
- lb.Parent = char
- lb.Material = "Neon"
- lb.Color = BrickColor.new("Gold").Color
- lb.CanCollide = false
- lb.Material = "Neon"
- lb.Size = vt(0.5,0,0.5)
- lb.CFrame = Torso.CFrame
- lb.Rotation = vt(0,0,0)
- lb.Anchored = true
- lb.Transparency = 0
- local thing = Instance.new("SpecialMesh",lb)
- thing.MeshType = "FileMesh"
- thing.MeshId = "http://www.roblox.com/asset/?id=471124075"
- thing.Scale = vt(0,15,0)
- local chancerot = math.random(1,2)
- for z = 0, 4 do
- if chancerot == 1 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,0.1,0)
- elseif chancerot == 2 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.1,0)
- end
- lb.Transparency = lb.Transparency + 0.1
- thing.Scale = thing.Scale + vt(0.5,0,0.5)
- wait()
- end
- for z = 0, 4 do
- if chancerot == 1 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,0.1,0)
- elseif chancerot == 2 then
- lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.1,0)
- end
- lb.Transparency = lb.Transparency + 0.1
- thing.Scale = thing.Scale + vt(0.5,0,0.5)
- wait()
- end
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=244578827", Firepart2, 2, 1)
- for i = 0, 24, 0.1 do
- swait()
- if Torsovelocity.Y > 2 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 40) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- elseif Torsovelocity.Y < 1 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 40) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- end
- end
- wait(5)
- GuW1:Destroy()
- GuW1 = Instance.new("Weld")
- GuW1.Name = "GuW"
- GuW1.Part0 = Torso
- GuW1.C0 = cn(0, 0, -15)
- GuW1.C1 = cn(0, 0, 0)
- GuW1.Part1 = Firepart1
- GuW1.Parent = Torso
- GuW2:Destroy()
- GuW2 = Instance.new("Weld")
- GuW2.Name = "GuW"
- GuW2.Part0 = Torso
- GuW2.C0 = cn(0, 0, -17.5)
- GuW2.C1 = cn(0, 0, 0)
- GuW2.Part1 = Firepart2
- GuW2.Parent = Torso
- local Must2 = Instance.new("Sound",Torso) --1048411878
- Must2.SoundId = "rbxassetid://950551676"
- Must2.Pitch = 0.99
- Must2.Volume = math.huge
- Must2.Looped = false
- wait(0)
- Must2:Play()
- quake:Stop()
- scrr:Stop()
- local Gone = Instance.new('ParticleEmitter')
- Gone.Name = "Aura"
- Gone.Texture = "rbxassetid://1046299182"
- Gone.Parent = Torso
- Gone.LightEmission = 1
- Gone.Transparency = NumberSequence.new(0.7,1)
- Gone.Color = ColorSequence.new(BrickColor.new("Gold").Color)
- Gone.Size = NumberSequence.new(340)
- Gone.Rotation = NumberRange.new(-360,360)
- Gone.LockedToPart = true
- Gone.Lifetime = NumberRange.new(0.2)
- Gone.Rate = 70
- Gone.Speed = NumberRange.new(0)
- Gone.EmissionDirection = "Top"
- wait(2)
- Aura:Destroy()
- Aura2:Destroy()
- Aura3:Destroy()
- Aura4:Destroy()
- Aura5:Destroy()
- lig:Destroy()
- Gone:Destroy()
- for i = 0, 3, 0.01 do
- swait()
- shoottraildd2(mouse.Hit.p, Torso, 0)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=463177334", Firepart2, 5, 2)
- BlockEffect(BrickColor.new("New Yeller"), Torso.CFrame, 1, 1, 1, 70, 70, 70, 0.06)
- BlockEffect(BrickColor.new("New Yeller"), Torso.CFrame, 1, 1, 1, 69.5, 69.5, 69.5, 0.06)
- if Torsovelocity.Y > 2 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 40) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- elseif Torsovelocity.Y < 1 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 40) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.05)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.1)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- end
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=170278900", Torso, 8, 1)
- BlockEffect(BrickColor.new("New Yeller"), Firepart1.CFrame, 1, 1, 1, 50, 50, 50, 0.02)
- BlockEffect(BrickColor.new("Gold"), Firepart1.CFrame, 1, 1, 1, 20, 20, 20, 0.04)
- BlockEffect(BrickColor.new("New Yeller"), Firepart1.CFrame, 1, 1, 1, 19.5, 19.5, 19.5, 0.04)
- for i = 0, 3, 0.1 do
- swait()
- if Torsovelocity.Y > 2 then
- 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(20), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.2)
- RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- LH.C0 = clerp(LH.C0, cn(-1, -1, 0) …
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement