Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------------------------------------------------------------------
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local char = Character
- local plr = Player
- repeat wait() until plr and char
- char.Archivable = true
- local BaseClone = char:Clone()
- 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 Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local Pause = false
- local attack = false
- local LOL = false
- local Anim = 'Idle'
- local attacktype = 1
- local delays = false
- local play = true
- local targetted = nil
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local doe = 0
- local Create = LoadLibrary("RbxUtility").Create
- Humanoid.WalkSpeed = 30
- -- IDK VARIABLES
- local mr = math.rad
- local mra = math.random
- ---------------------
- local CS = function(id, name, parent, volume, md)
- local s = Instance.new("Sound", parent)
- s.Name = name
- s.Volume = 10
- s.MaxDistance = md
- s.SoundId = "rbxassetid://1265445941"
- return s
- end
- local Theme = CS(0, "NightOfFire", plr.PlayerGui, 1, 90);Theme.Looped = true;Theme:Play()
- local Pulse = CS(779130169, "Pulse", RightArm, 2, 90)
- local FSnap = CS(670796769, "FingerSnap", RightArm, 2, 90)
- local Explosion1 = CS(843182803, "SFX1", RootPart, 1, 90)
- local Mouse = plr:GetMouse()
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- local attackDB = false
- local RS = game:GetService("RunService").RenderStepped
- function Damage(dmg, human)
- local ik = Instance.new("Part", char)
- ik.Anchored = true
- ik.CanCollide = false
- ik.Transparency = 1
- local x = mra(-2, 2)
- local y = mra(-2, 2)
- local z = mra(-2, 2)
- ik.Position = human.Parent.Head.Position + Vector3.new(x, y, z)
- human:TakeDamage(dmg)
- local txt2 = Instance.new("BillboardGui", ik)
- txt2.Adornee = ik
- txt2.Name = "Damage"
- txt2.AlwaysOnTop = true
- txt2.Size = UDim2.new(2, 0, 1.2, 0)
- txt2.StudsOffset = Vector3.new(-14, 3, 0)
- local text2 = Instance.new("TextLabel", txt2)
- text2.Size = UDim2.new(15, 0,2, 0)
- text2.FontSize = "Size24"
- text2.TextScaled = true
- text2.TextTransparency = 0
- text2.BackgroundTransparency = 1
- text2.TextTransparency = 0
- text2.TextStrokeTransparency = 0
- text2.Font = Enum.Font.Fantasy
- text2.TextStrokeColor3 = Color3.new(0,0,0)
- text2.TextColor3 = Color3.new(26, 234, 33)
- text2.Text = dmg
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- ik.Position = ik.Position + Vector3.new(0,0.1,0)
- text2.TextTransparency = text2.TextTransparency + 0.01
- text2.TextStrokeTransparency = text2.TextStrokeTransparency + 0.01
- end
- end)
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part70 = Instance.new("Part")
- Part187 = Instance.new("Part")
- Model144 = Instance.new("Model")
- Model144.Name = "ARightArm"
- Model144.Parent = mas
- Part170.Parent = Model144
- Part170.Material = Enum.Material.Metal
- Part170.BrickColor = BrickColor.new("Fossil")
- Part170.Rotation = Vector3.new(0, 0, 25)
- Part170.CanCollide = false
- Part170.Shape = Enum.PartType.Cylinder
- Part170.Size = Vector3.new(0.337522894, 0.65495497, 1.02462256)
- Part170.CFrame = CFrame.new(-35.8893852, 4.04790592, -69.3819656, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876, 0, 0, 0, 1)
- Part170.BottomSurface = Enum.SurfaceType.Smooth
- Part170.TopSurface = Enum.SurfaceType.Smooth
- Part170.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part170.Position = Vector3.new(-35.8893852, 4.04790592, -69.3819656)
- Part170.Orientation = Vector3.new(0, 0, 25)
- Part170.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part187.Name = "Base"
- Part187.Parent = Model144
- Part187.Material = Enum.Material.Metal
- Part187.BrickColor = BrickColor.new("Ghost grey")
- Part187.CanCollide = false
- Part187.Size = Vector3.new(1.02462339, 1.3802278, 1.02462256)
- Part187.CFrame = CFrame.new(-35.6459656, 3.3423183, -69.3819656, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part187.BottomSurface = Enum.SurfaceType.Smooth
- Part187.TopSurface = Enum.SurfaceType.Smooth
- Part187.Color = Color3.new(0.792157, 0.796079, 0.819608)
- Part187.Position = Vector3.new(-35.6459656, 3.3423183, -69.3819656)
- Part187.Color = Color3.new(0.792157, 0.796079, 0.819608)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local RAArmWeld = Instance.new("Weld", Part187)
- RAArmWeld.Part0 = Part187
- RAArmWeld.Part1 = RightArm
- RAArmWeld.C0 = CFrame.new(0,-0.32,0)
- local LAArmWeld = Instance.new("Weld", Part70)
- LAArmWeld.Part0 = Part70
- LAArmWeld.Part1 = LeftArm
- LAArmWeld.C0 = CFrame.new(0,-0.32,0)
- function ThrowBomb()
- if attackDB == false then
- attackDB = true
- Pause = true
- -- Lean Back Anim.
- for i = 1, 50 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, -0.3, 0.5) * CFrame.Angles(mr(25), mr(-15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-25), mr(15), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 1, 0) * CFrame.Angles(mr(-200), mr(-15), mr(15)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(-15)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(-35), 0, mr(5)), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(5)), --LeftLeg
- }, .3, false)
- end
- -- Bomb Spawns And Grows.
- local Bomb = Instance.new("Part")
- Bomb.Parent = char
- Bomb.Anchored = true
- Bomb.Locked = true
- Bomb.Material = "Neon"
- Bomb.Color = Color3.fromRGB(255, 145, 67)
- Bomb.Shape = "Ball"
- Bomb.Size = Vector3.new(0.1,0.1,0.1)
- Bomb.CanCollide = false
- Bomb.CFrame = RightArm.CFrame * CFrame.new(0,-2,0)
- local grow = 1
- for i = 1, 5 do
- wait(1)
- grow = grow + 5
- Pulse:Play()
- spawn(function()
- for i = 1, 50 do
- RS:wait()
- Bomb.CFrame = Bomb.CFrame:lerp(Bomb.CFrame * CFrame.new(0,-0.07,0), 0.9)
- Bomb.Size = Bomb.Size:lerp(Vector3.new(grow,grow,grow), 0.5)
- end
- end)
- end
- -- Throw Anim.
- wait(1)
- spawn(function()
- for i = 1, 30 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, -0.3, -0.6) * CFrame.Angles(mr(-25), mr(15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(25), mr(-15), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(mr(80), mr(15), mr(15)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(15)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(-35), 0, mr(5)), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, -0.5) * CFrame.Angles(mr(20), 0, mr(5)), --LeftLeg
- }, .3, false)
- end
- end)
- Bomb.Anchored = false
- local Fly = Instance.new("BodyVelocity", Bomb)
- Fly.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Fly.Velocity = RootPart.CFrame.lookVector * 190
- -- Bomb Explosion.
- Bomb.Touched:Connect(function(h)
- if not h:IsDescendantOf(char) then
- local Spawn = Bomb.CFrame
- Bomb:Destroy()
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Color = Color3.fromRGB(255, 145, 67)
- Eff.Shape = "Ball"
- Eff.Size = Vector3.new(0.1,0.1,0.1)
- Eff.CanCollide = false
- Eff.CFrame = Spawn
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff.Size = Eff.Size + Vector3.new(1,1,1)
- Eff.Transparency = Eff.Transparency + 0.003
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- end
- end)
- spawn(function()
- for i = 1, 10 do
- wait()
- local ring = Instance.new("Part", char)
- ring.CanCollide = false
- ring.Anchored = true
- ring.Locked = true
- ring.Material = "Neon"
- ring.Size = Vector3.new(0, 0, 0)
- ring.Shape = "Block"
- ring.Color = Color3.fromRGB(163, 162, 165)
- ring.CFrame = Spawn * CFrame.Angles(mr(math.random(-360, 360)), mr(math.random(-360, 360)), mr(math.random(-360, 360)))
- local m = Instance.new("SpecialMesh", ring)
- m.Scale = Vector3.new(0,0,0)
- m.MeshId = "rbxassetid://471124075"
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- m.Scale = m.Scale + Vector3.new(0.1,0,0.1)
- ring.Transparency = ring.Transparency + 0.005
- if ring.Transparency >= 1 then
- ring:Destroy()
- end
- end
- end)
- end
- end)
- Eff.Touched:Connect(function(hit)
- if hit.Name ~= "Base" and not hit:IsDescendantOf(char) then
- local clo = hit:Clone()
- clo.CFrame = hit.CFrame
- clo.Name = "BUURRRN"
- hit:Destroy()
- clo.Parent = char
- clo.Anchored = true
- clo.BrickColor = BrickColor.Black()
- spawn(function()
- wait(2)
- for i = 1, 500 do
- RS:wait()
- clo.Transparency = clo.Transparency + 0.01
- end
- clo:Destroy()
- end)
- end
- end)
- end
- end)
- spawn(function()
- wait(1)
- Pause = false
- end)
- wait(1)
- attackDB = false
- end
- end
- local PlantedHuman = nil
- function PlantBomb()
- if attackDB == false then
- attackDB = true
- Pause = true
- -- Lean Back Anim.
- for i = 1, 30 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, -0.3, 0.5) * CFrame.Angles(mr(25), mr(-15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-25), mr(15), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 1, 0) * CFrame.Angles(mr(-200), mr(-15), mr(15)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(-15)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(-35), 0, mr(5)), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(5)), --LeftLeg
- }, .3, false)
- end
- -- Bomb Spawns And Grows.
- local Bomb = Instance.new("Part")
- Bomb.Parent = char
- Bomb.Anchored = false
- Bomb.Locked = true
- Bomb.Material = "Neon"
- Bomb.Color = Color3.fromRGB(255, 52, 52)
- Bomb.Shape = "Ball"
- Bomb.Size = Vector3.new(0.4,0.4,0.4)
- Bomb.CanCollide = false
- Bomb.CFrame = RightArm.CFrame * CFrame.new(0,-2,0)
- local BW = Instance.new("Weld", Bomb)
- BW.Part0 = RightArm
- BW.Part1 = Bomb
- BW.C0 = CFrame.new(0,-1,0)
- Pulse:Play()
- -- Throw Anim.
- wait(0.3)
- spawn(function()
- for i = 1, 30 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, -0.3, -0.6) * CFrame.Angles(mr(-25), mr(15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(25), mr(-15), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(mr(80), mr(15), mr(15)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(15)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(-35), 0, mr(5)), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, -0.5) * CFrame.Angles(mr(20), 0, mr(5)), --LeftLeg
- }, .6, false)
- end
- end)
- -- Bomb Explosion.
- Bomb.Touched:Connect(function(h)
- if not h:IsDescendantOf(char) and h.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- local Spawn = Bomb.CFrame
- Bomb:Destroy()
- PlantedHuman = h.Parent
- end
- end)
- spawn(function()
- wait(1)
- Pause = false
- Bomb:Destroy()
- end)
- wait(1)
- attackDB = false
- end
- end
- function ExplodePlantedBomb()
- if PlantedHuman ~= nil and workspace:FindFirstChild(PlantedHuman.Name) ~= nil then
- Pause = true
- local hu = PlantedHuman
- for i = 1, 50 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(-1, 0.7, -0.3) * CFrame.Angles(mr(90),0,mr(-70)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .3, false)
- end
- FSnap:Play()
- for i = 1, 20 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.7, -0.3) * CFrame.Angles(mr(90),0,mr(70)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .7, false)
- end
- wait(0.5)
- Pause = false
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "SmoothPlastic"
- Eff.Shape = "Ball"
- Eff.Size = Vector3.new(0.4,0.4,0.4)
- Eff.CanCollide = false
- Eff.CFrame = hu.HumanoidRootPart.CFrame
- local Sound = Instance.new("Part")
- Sound.Parent = char
- Sound.Transparency = 1
- Sound.Anchored = true
- Sound.Locked = true
- Sound.CanCollide = false
- Sound.CFrame = hu.HumanoidRootPart.CFrame
- CS(249329549, "Explode", Sound, 2, 130):Play()
- Damage("inf", hu:FindFirstChildOfClass("Humanoid"))
- if hu:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
- Eff.Color = hu.Torso.Color
- hu.Torso:Destroy()
- elseif hu:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 then
- Eff.Color = hu.UpperTorso.Color
- hu.UpperTorso:Destroy()
- end
- hu:BreakJoints()
- for _, o in pairs(hu:children()) do
- if o:IsA("Part") or o:IsA("MeshPart") or o:IsA("UnionOperation") then
- o.Anchored = false
- local Blood = Instance.new("ParticleEmitter")
- Blood.Parent = o
- Blood.Rotation = NumberRange.new(-500, 500)
- Blood.Size = NumberSequence.new(2,2)
- Blood.Texture = "http://www.roblox.com/asset/?id=176677966"
- Blood.Acceleration = Vector3.new(0, -10, 0)
- Blood.Lifetime = NumberRange.new(1, 2)
- Blood.Rate = 500
- Blood.RotSpeed = NumberRange.new(260, 260)
- Blood.Speed = NumberRange.new(10, 10)
- Blood.VelocitySpread = 360
- local Fly = Instance.new("BodyVelocity", o)
- Fly.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Fly.Velocity = Vector3.new(mra(-100, 100), mra(-100, 100), mra(-100, 100))
- spawn(function()
- wait()
- Fly:Destroy()
- wait(7)
- Blood.Enabled = false
- wait(2)
- for i = 1, 50 do
- RS:wait()
- o.Transparency = o.Transparency + 0.05
- end
- o:Destroy()
- end)
- end
- end
- for i = 1, 10 do
- RS:wait()
- Eff.Size = Eff.Size + Vector3.new(2,2,2)
- end
- Eff:Destroy()
- PlantedHuman = nil
- spawn(function()
- wait(5)
- Sound:Destroy()
- end)
- else
- PlantedHuman = nil
- end
- end
- local XPlanted = false
- function PlantUltraXBomb()
- if attackDB == false then
- attackDB = true
- Pause = true
- -- Lean Back Anim.
- for i = 1, 50 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, -0.3, 0.5) * CFrame.Angles(mr(25), mr(-15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-25), mr(15), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 1, 0) * CFrame.Angles(mr(-200), mr(-15), mr(15)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(-15)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(-35), 0, mr(5)), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), 0, mr(5)), --LeftLeg
- }, .3, false)
- end
- -- Bomb Spawns And Grows.
- local Bomb = Instance.new("Part")
- Bomb.Parent = char
- Bomb.Anchored = true
- Bomb.Name = "UltraXBomb"
- Bomb.Locked = true
- Bomb.Material = "Neon"
- Bomb.Color = Color3.fromRGB(120, 253, 255)
- Bomb.Shape = "Ball"
- Bomb.Size = Vector3.new(0.1,0.1,0.1)
- Bomb.CanCollide = false
- Bomb.CFrame = RightArm.CFrame * CFrame.new(0,-2,0)
- local grow = 20
- Pulse:Play()
- spawn(function()
- for i = 1, 150 do
- RS:wait()
- Bomb.Size = Bomb.Size + Vector3.new(0.3,0.3,0.3)
- Bomb.CFrame = Bomb.CFrame * CFrame.new(0,-0.15,0)
- end
- end)
- spawn(function()
- wait(3)
- XPlanted = true
- Pause = false
- end)
- wait(1)
- attackDB = false
- end
- end
- function ExplodeUltraX()
- if XPlanted == true and char:FindFirstChild("UltraXBomb") then
- Pause = true
- for i = 1, 50 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(-1, 0.7, -0.3) * CFrame.Angles(mr(90),0,mr(-70)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .3, false)
- end
- FSnap:Play()
- for i = 1, 20 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.7, -0.3) * CFrame.Angles(mr(90),0,mr(70)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .7, false)
- end
- wait(0.5)
- Pause = false
- for _, o in pairs(char:children()) do
- if o:IsA("Part") and o.Name == "UltraXBomb" then
- o.Anchored = true
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Shape = "Ball"
- Eff.Size = Vector3.new(0.4,0.4,0.4)
- Eff.CanCollide = false
- Eff.CFrame = o.CFrame
- Eff.Color = o.Color
- local Eff2 = Instance.new("Part")
- Eff2.Parent = char
- Eff2.Anchored = true
- Eff2.Locked = true
- Eff2.Material = "Neon"
- Eff2.Shape = "Cylinder"
- Eff2.Size = Vector3.new(0.4,0.4,0.4)
- Eff2.CanCollide = false
- Eff2.Position = o.Position
- Eff2.CFrame = Eff2.CFrame * CFrame.Angles(mr(0),mr(0),mr(90))
- Eff2.Color = o.Color
- spawn(function()
- for i = 1, 10 do
- local Eff3 = Instance.new("Part")
- Eff3.Parent = char
- Eff3.Anchored = true
- Eff3.Locked = true
- Eff3.Material = "Neon"
- Eff3.Shape = "Cylinder"
- Eff3.Size = Vector3.new(0.4,0.4,0.4)
- Eff3.CanCollide = false
- Eff3.CFrame = o.CFrame * CFrame.Angles(mra(-360, 360), mra(-360, 360), mra(-360, 360))
- Eff3.Color = o.Color
- local tx = mra(-5, 5)
- local ty = mra(-5, 5)
- local tz = mra(-5, 5)
- spawn(function()
- for i = 1, 50 do
- RS:wait()
- Eff3.Size = Eff3.Size + Vector3.new(9, 0.1, 0.1)
- end
- end)
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff3.Transparency = Eff3.Transparency + 0.005
- Eff3.CFrame = Eff3.CFrame * CFrame.Angles(mr(tx), mr(ty), mr(tz))
- if Eff3.Transparency >= 1 then
- Eff3:Destroy()
- end
- end
- end)
- end
- end)
- spawn(function()
- for i = 1, 150 do
- RS:wait()
- Eff.Size = Eff.Size + Vector3.new(1.8,1.8,1.8)
- Eff2.Size = Eff2.Size + Vector3.new(10,0.5,0.5)
- end
- end)
- local Sound = Instance.new("Part")
- Sound.Parent = char
- Sound.Transparency = 1
- Sound.Anchored = true
- Sound.Locked = true
- Sound.CanCollide = false
- Sound.CFrame = o.CFrame
- CS(249329549, "Explode", Sound, 1, 400):Play()
- o:Destroy()
- spawn(function()
- wait(5)
- for i = 1, 500 do
- RS:wait()
- Eff.Size = Eff.Size - Vector3.new(1,1,1)
- Eff.Transparency = Eff.Transparency + 0.01
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- Eff2.Size = Eff2.Size - Vector3.new(1,1,1)
- Eff2.Transparency = Eff2.Transparency + 0.01
- if Eff2.Transparency >= 1 then
- Eff2:Destroy()
- end
- end
- end)
- Eff.Touched:Connect(function(h)
- if h.Parent ~= nil and not h:IsDescendantOf(char) and h.Parent:FindFirstChild("Humanoid") and h.Parent:FindFirstChild("Hitto1") == nil then
- local val = Instance.new("IntValue", h.Parent)
- val.Name = "Hitto1"
- Damage("inf", h.Parent:FindFirstChildOfClass("Humanoid"))
- h.Parent:BreakJoints()
- for _, i in pairs(h.Parent:children()) do
- if i:IsA("Part") then
- i.Anchored = false
- local Blood = Instance.new("ParticleEmitter")
- Blood.Parent = i
- Blood.Rotation = NumberRange.new(-500, 500)
- Blood.Size = NumberSequence.new(2,2)
- Blood.Texture = "http://www.roblox.com/asset/?id=176677966"
- Blood.Acceleration = Vector3.new(0, -10, 0)
- Blood.Lifetime = NumberRange.new(1, 2)
- Blood.Rate = 500
- Blood.RotSpeed = NumberRange.new(260, 260)
- Blood.Speed = NumberRange.new(10, 10)
- Blood.VelocitySpread = 360
- local Fly = Instance.new("BodyVelocity", i)
- Fly.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Fly.Velocity = Vector3.new(mra(-100, 100), mra(-100, 100), mra(-100, 100))
- spawn(function()
- wait()
- Fly:Destroy()
- wait(7)
- Blood.Enabled = false
- wait(2)
- for p = 1, 50 do
- RS:wait()
- i.Transparency = i.Transparency + 0.05
- end
- i:Destroy()
- end)
- end
- end
- end
- end)
- end
- end
- XPlanted = false
- else
- XPlanted = false
- end
- end
- function findNearestTorso(pos, oof)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 50
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= char) then
- if temp2.Name ~= plr.Name.."'s Clone" then
- temp = temp2:FindFirstChild("Head")
- h = temp2:FindFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (h ~= nil) and (h.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- end
- return torso
- end
- function findNearestTorso2(pos, oof)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 10
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= char) then
- if temp2.Name ~= plr.Name.."'s Clone" then
- temp = temp2:FindFirstChild("Head")
- h = temp2:FindFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (h ~= nil) and (h.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- end
- return torso
- end
- function Clone()
- local Clone = BaseClone:Clone()
- Clone.Name = plr.Name.."'s Clone"
- Clone.Humanoid.MaxHealth = 999999
- Clone.Humanoid.Health = 999999
- Clone.HumanoidRootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-2)
- spawn(function()
- for i = 1, 10 do
- wait()
- local Eff = Instance.new("Part")
- Eff.Parent = Clone
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Color = Color3.fromRGB(255, 52, 52)
- Eff.Shape = "Block"
- Eff.Size = Vector3.new(5,5,5)
- Eff.CanCollide = false
- Eff.CFrame = Clone.HumanoidRootPart.CFrame * CFrame.Angles(mr(math.random(-360, 360)), mr(math.random(-360, 360)), mr(math.random(-360, 360)))
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff.CFrame = Eff.CFrame * CFrame.Angles(mr(math.random(-5, 5)), mr(math.random(-5, 5)), mr(math.random(-5, 5)))
- Eff.Transparency = Eff.Transparency + 0.05
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- end
- end)
- end
- end)
- local Bomb = Instance.new("Part")
- Bomb.Parent = Clone
- Bomb.Anchored = false
- Bomb.Locked = true
- Bomb.Material = "Neon"
- Bomb.Color = Color3.fromRGB(255, 52, 52)
- Bomb.Shape = "Ball"
- Bomb.Size = Vector3.new(1,1,1)
- Bomb.CanCollide = false
- local BWeld = Instance.new("Weld", Bomb)
- BWeld.Part0 = Bomb
- BWeld.Part1 = Clone.HumanoidRootPart
- BWeld.C0 = CFrame.new(0,0,0.3)
- local Bomb = Instance.new("Part")
- Bomb.Parent = Clone
- Bomb.Anchored = false
- Bomb.Locked = true
- Bomb.Material = "Neon"
- Bomb.Color = Color3.fromRGB(255, 52, 52)
- Bomb.Shape = "Ball"
- Bomb.Size = Vector3.new(1,1,1)
- Bomb.CanCollide = false
- local BWeld = Instance.new("Weld", Bomb)
- BWeld.Part0 = Bomb
- BWeld.Part1 = Clone.HumanoidRootPart
- BWeld.C0 = CFrame.new(0,0,0.3)
- Clone.Parent = workspace
- local CHum = Clone.Humanoid
- -- NPC Handler
- -------------------------------
- spawn(function()
- -- Clone's Lifetime Before They Explode.
- wait(5)
- local Eff = Instance.new("Part")
- Eff.Parent = Clone
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "SmoothPlastic"
- Eff.Shape = "Ball"
- Eff.Size = Vector3.new(0.4,0.4,0.4)
- Eff.CanCollide = false
- Eff.CFrame = Clone.HumanoidRootPart.CFrame
- local Sound = Instance.new("Part")
- Sound.Parent = Clone
- Sound.Transparency = 1
- Sound.Anchored = true
- Sound.Locked = true
- Sound.CanCollide = false
- Sound.CFrame = Clone.HumanoidRootPart.CFrame
- CS(249329549, "Explode", Sound, 0.5, 130):Play()
- if findNearestTorso2(Clone.Torso.Position, Clone) ~= nil then
- Damage(50, findNearestTorso2(Clone.Torso.Position, Clone).Parent:FindFirstChildOfClass("Humanoid"))
- end
- Eff.Color = Clone.Torso.Color
- Clone.Torso:Destroy()
- Clone:BreakJoints()
- for _, o in pairs(Clone:children()) do
- if o:IsA("Part") or o:IsA("MeshPart") or o:IsA("UnionOperation") then
- o.Anchored = false
- local Blood = Instance.new("ParticleEmitter")
- Blood.Parent = o
- Blood.Rotation = NumberRange.new(-500, 500)
- Blood.Size = NumberSequence.new(2,2)
- Blood.Texture = "rbxassetid://304113188"
- Blood.Acceleration = Vector3.new(0, -10, 0)
- Blood.Lifetime = NumberRange.new(1, 2)
- Blood.Rate = 500
- Blood.RotSpeed = NumberRange.new(260, 260)
- Blood.Speed = NumberRange.new(10, 10)
- Blood.Color = ColorSequence.new(Color3.fromRGB(255, 79, 247))
- Blood.VelocitySpread = 360
- local Fly = Instance.new("BodyVelocity", o)
- Fly.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Fly.Velocity = Vector3.new(mra(-100, 100), mra(-100, 100), mra(-100, 100))
- spawn(function()
- wait()
- Fly:Destroy()
- wait(7)
- Blood.Enabled = false
- wait(2)
- for i = 1, 50 do
- RS:wait()
- o.Transparency = o.Transparency + 0.05
- end
- o:Destroy()
- end)
- end
- end
- for i = 1, 10 do
- RS:wait()
- Eff.Size = Eff.Size + Vector3.new(2,2,2)
- end
- Eff:Destroy()
- spawn(function()
- wait(5)
- Sound:Destroy()
- end)
- end)
- spawn(function()
- while wait() do
- if findNearestTorso(Clone.Torso.Position, Clone) ~= nil then
- local target = findNearestTorso(Clone.Torso.Position, Clone).Parent
- CHum.WalkToPoint = findNearestTorso(Clone.Torso.Position, Clone).Position
- end
- end
- end)
- end
- local Combo = 1
- function Combo1()
- Pause = true
- local Punched = false
- spawn(function()
- for i = 1, 10 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(10), mr(-60), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), mr(60), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.4, 0) * CFrame.Angles(mr(90),mr(40),mr(0)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), mr(60), 0), --LeftLeg
- }, .6, false)
- end
- end)
- spawn(function()
- for i = 1, 20 do
- wait()
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Color = Color3.fromRGB(248, 255, 96)
- Eff.Shape = "Block"
- Eff.Size = Vector3.new(1,1,1)
- Eff.CanCollide = false
- Eff.CFrame = RightArm.CFrame * CFrame.Angles(mr(math.random(-360, 360)), mr(math.random(-360, 360)), mr(math.random(-360, 360)))
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff.CFrame = Eff.CFrame * CFrame.Angles(mr(math.random(-5, 5)), mr(math.random(-5, 5)), mr(math.random(-5, 5)))
- Eff.Transparency = Eff.Transparency + 0.05
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- end
- end)
- end
- end)
- wait(0.3)
- Punched = true
- spawn(function()
- for i = 1, 10 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), mr(60), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(20), mr(-60), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.4, -1) * CFrame.Angles(mr(130), mr(90),mr(-60)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), mr(60), 0), --LeftLeg
- }, .6, false)
- end
- end)
- RightArm.Touched:Connect(function(h)
- if Punched == true and not h:IsDescendantOf(char) and h.Parent ~= nil and h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent.Name ~= plr.Name.."'s Clone" and h.Parent:FindFirstChild("Hitto4") == nil then
- local val = Instance.new("IntValue", h.Parent)
- val.Name = "Hitto4"
- spawn(function()
- wait(0.3)
- val:Destroy()
- end)
- Damage(10, h.Parent:FindFirstChildOfClass("Humanoid"))
- end
- end)
- wait(0.2)
- Punched = false
- Pause = false
- end
- function Combo2()
- Pause = true
- local Punched = false
- spawn(function()
- for i = 1, 10 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(10), mr(60), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), mr(-60), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0),mr(0),mr(0)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0.4, 0) * CFrame.Angles(mr(90), mr(-40), 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), mr(60), 0), --LeftLeg
- }, .6, false)
- end
- end)
- spawn(function()
- for i = 1, 20 do
- wait()
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Color = Color3.fromRGB(248, 255, 96)
- Eff.Shape = "Block"
- Eff.Size = Vector3.new(1,1,1)
- Eff.CanCollide = false
- Eff.CFrame = LeftArm.CFrame * CFrame.Angles(mr(math.random(-360, 360)), mr(math.random(-360, 360)), mr(math.random(-360, 360)))
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff.CFrame = Eff.CFrame * CFrame.Angles(mr(math.random(-5, 5)), mr(math.random(-5, 5)), mr(math.random(-5, 5)))
- Eff.Transparency = Eff.Transparency + 0.05
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- end
- end)
- end
- end)
- wait(0.3)
- Punched = true
- spawn(function()
- for i = 1, 10 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), mr(-60), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(20), mr(60), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0),mr(0)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0.4, -1) * CFrame.Angles(mr(130), mr(-90), mr(60)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), mr(60), 0), --LeftLeg
- }, .6, false)
- end
- end)
- LeftArm.Touched:Connect(function(h)
- if Punched == true and not h:IsDescendantOf(char) and h.Parent ~= nil and h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent.Name ~= plr.Name.."'s Clone" and h.Parent:FindFirstChild("Hitto4") == nil then
- local val = Instance.new("IntValue", h.Parent)
- val.Name = "Hitto4"
- spawn(function()
- wait(0.3)
- val:Destroy()
- end)
- Damage(10, h.Parent:FindFirstChildOfClass("Humanoid"))
- end
- end)
- wait(0.2)
- Punched = false
- Pause = false
- end
- function Combo3()
- Pause = true
- spawn(function()
- for i = 1, 20 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(mr(90),mr(90),0), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(mr(90), mr(-90), 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .5, false)
- end
- end)
- wait(0.1)
- Explosion1:Play()
- spawn(function()
- for i = 1, 20 do
- wait()
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Color = Color3.fromRGB(248, 255, 96)
- Eff.Shape = "Block"
- Eff.Size = Vector3.new(math.random(5, 20),math.random(5, 20),math.random(5, 20))
- Eff.CanCollide = false
- Eff.CFrame = RootPart.CFrame * CFrame.new(0,0,-i*3) * CFrame.Angles(mr(math.random(-360, 360)), mr(math.random(-360, 360)), mr(math.random(-360, 360)))
- Eff.Touched:Connect(function(h)
- if not h:IsDescendantOf(char) and h.Parent ~= nil and h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent.Name ~= plr.Name.."'s Clone" and h.Parent:FindFirstChild("Hitto3") == nil then
- local val = Instance.new("IntValue", h.Parent)
- val.Name = "Hitto3"
- spawn(function()
- wait(0.1)
- val:Destroy()
- end)
- Damage(15, h.Parent:FindFirstChildOfClass("Humanoid"))
- end
- end)
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff.CFrame = Eff.CFrame * CFrame.Angles(mr(math.random(-5, 5)), mr(math.random(-5, 5)), mr(math.random(-5, 5)))
- Eff.Transparency = Eff.Transparency + 0.05
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- end
- end)
- end
- end)
- wait(0.2)
- Pause = false
- end
- function Combo4()
- Pause = true
- local Jum = Instance.new("BodyPosition", RootPart)
- Jum.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Jum.D = 600
- Jum.P = 10000
- Jum.Position = RootPart.CFrame.p + Vector3.new(0,50,0)
- spawn(function()
- for i = 1, 20 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(10), 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(10), 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(mr(90),mr(0),mr(-20)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0.5, -0.5) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-30), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-30), 0, 0), --LeftLeg
- }, .5, false)
- end
- end)
- wait(0.2)
- Jum:Destroy()
- local Jum2 = Instance.new("BodyPosition", RootPart)
- Jum2.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Jum2.D = 600
- Jum2.P = 10000
- Jum2.Position = RootPart.CFrame.p + Vector3.new(0,-50,0)
- wait(0.1)
- Jum2:Destroy()
- Explosion1:Play()
- spawn(function()
- for i = 1, 20 do
- RS:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, -1, 0) * CFrame.Angles(mr(-10), 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(-0.4, -0.2, -0.5) * CFrame.Angles(mr(30),mr(0),mr(-20)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0.4, -0.2, -0.5) * CFrame.Angles(mr(30), mr(0), mr(20)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0.4, 0) * CFrame.Angles(mr(-80), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0.4, 0) * CFrame.Angles(mr(-80), 0, 0), --LeftLeg
- }, .5, false)
- end
- end)
- spawn(function()
- for i = 1, 3 do
- wait()
- local Eff = Instance.new("Part")
- Eff.Parent = char
- Eff.Anchored = true
- Eff.Locked = true
- Eff.Material = "Neon"
- Eff.Color = Color3.fromRGB(248, 255, 96)
- Eff.Shape = "Block"
- Eff.Size = Vector3.new(math.random(5, 20),math.random(5, 20),math.random(5, 20))
- Eff.CanCollide = false
- Eff.CFrame = RootPart.CFrame * CFrame.Angles(mr(math.random(-360, 360)), mr(math.random(-360, 360)), mr(math.random(-360, 360)))
- Eff.Touched:Connect(function(h)
- if not h:IsDescendantOf(char) and h.Parent ~= nil and h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent.Name ~= plr.Name.."'s Clone" and h.Parent:FindFirstChild("Hitto3") == nil then
- local val = Instance.new("IntValue", h.Parent)
- val.Name = "Hitto3"
- spawn(function()
- wait(0.1)
- val:Destroy()
- end)
- Damage(50, h.Parent:FindFirstChildOfClass("Humanoid"))
- end
- end)
- spawn(function()
- for i = 1, 500 do
- RS:wait()
- Eff.CFrame = Eff.CFrame * CFrame.Angles(mr(math.random(-5, 5)), mr(math.random(-5, 5)), mr(math.random(-5, 5)))
- Eff.Transparency = Eff.Transparency + 0.07
- Eff.Size = Eff.Size + Vector3.new(4,4,4)
- if Eff.Transparency >= 1 then
- Eff:Destroy()
- end
- end
- end)
- end
- end)
- wait(1)
- Pause = false
- end
- local ComDb = false
- Mouse.Button1Down:Connect(function()
- if Combo == 1 and ComDb == false then
- ComDb = true
- Combo = 2
- Combo1()
- wait(0.3)
- ComDb = false
- elseif Combo == 2 and ComDb == false then
- ComDb = true
- Combo = 3
- Combo2()
- wait(0.3)
- ComDb = false
- elseif Combo == 3 and ComDb == false then
- ComDb = true
- Combo = 4
- Combo3()
- wait(0.3)
- ComDb = false
- elseif Combo == 4 and ComDb == false then
- ComDb = true
- Combo = 1
- Combo4()
- wait(0.3)
- ComDb = false
- end
- end)
- Mouse.KeyDown:Connect(function(k)
- if k == "e" then
- ThrowBomb()
- end
- if k == "r" then
- PlantBomb()
- end
- if k == "q" then
- ExplodePlantedBomb()
- end
- if k == "f" then
- PlantUltraXBomb()
- end
- if k == "t" then
- ExplodeUltraX()
- end
- if k == "x" then
- Clone()
- end
- end)
- --for i = 1, 50 do
- -- RS:wait()
- --
- -- PlayAnimationFromTable({
- -- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- -- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- -- CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,0), --- RightArm
- -- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- -- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- -- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- -- }, .3, false)
- --end
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- coroutine.wrap(function()
- while 1 do
- swait()
- if doe <= 360 then
- doe = doe + 2
- else
- doe = 0
- end
- end
- end)()
- while true do
- swait()
- 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 RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if Pause == false then
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(15), 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(20), 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0.8, -0.5) * CFrame.Angles(mr(120),0,mr(10)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0.8, -0.5) * CFrame.Angles(mr(120), 0, mr(-10)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .3, false)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if Pause == false then
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,0), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .3, false)
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if Pause == false then
- change = 1
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0-.1*math.sin(tick()*20), 0) * CFrame.Angles(0-.05*math.sin(tick()*20), mr(-15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0-.5*math.sin(tick()*20), mr(15), 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(-0.4, 1, -1) * CFrame.Angles(mr(110), 0, mr(-25)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0.2, 1, 0) * CFrame.Angles(mr(170), mr(0), mr(15)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --LeftLeg
- }, .3, false)
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if Pause == false then
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0-.1*math.sin(tick()*20), 0) * CFrame.Angles(0-.1*math.sin(tick()*20), mr(-15), 0), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0-.2*math.sin(tick()*20), 0, 0), ----- Head
- CFrame.new(1.5,0,0) * CFrame.new(-0.4, 1, -1) * CFrame.Angles(mr(110), 0, mr(-25)), --- RightArm
- CFrame.new(-1.5,0,0) * CFrame.new(0.4, 1, -1) * CFrame.Angles(mr(115), mr(15), mr(25)),--LeftArm
- CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0- 0.6 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 + 50 * math.cos((sine) / 3)), 0, 0), --RightLeg
- CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0+ 0.6 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 - 50 * math.cos((sine) / 3)), 0, 0), --LeftLeg
- }, .3, false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement