Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- NLS([[
- mouse = game:GetService("Players").LocalPlayer:GetMouse()
- for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
- if v.Name == "BatAttack" then
- v:destroy()
- end
- end
- attackname = "Normal"
- local attackevent = game.ReplicatedStorage:WaitForChild("BatAttack")
- local human0id = game:GetService("Players").LocalPlayer.Character:findFirstChildOfClass("Humanoid")
- can = true
- dead = false
- function attack()
- attackevent:FireServer(attackname)
- end
- mouse.Button1Down:connect(attack)
- function keyattack(key)
- key = key:lower()
- if key == "r" and dead then
- dead = false
- attackname = "Respawn"
- attackevent:FireServer(attackname)
- script.Disabled = true
- end
- if key == "q" and can then
- attackname = "Finish"
- attackevent:FireServer(attackname)
- attackname = "Normal"
- end
- end
- mouse.KeyDown:connect(keyattack)
- while game:GetService("Players").LocalPlayer.Character:findFirstChildOfClass("Humanoid") do
- game:GetService("RunService").RenderStepped:wait()
- end
- dead = true
- print("dead")
- workspace.CurrentCamera.FieldOfView = 90
- for i = 1,20 do
- workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 1
- game:GetService("RunService").RenderStepped:wait()
- end]], owner.Character)
- wait(0.6)
- --owner = game.Players[script.Parent.Name]
- script.Name = "Bat"
- local attackevent = Instance.new("RemoteEvent", game.ReplicatedStorage)
- attackevent.Name = "BatAttack"
- ownerhumanoid = owner.Character:findFirstChildOfClass("Humanoid")
- cananimate = true
- canattack = true
- running = false
- jumping = false
- rootpart = owner.Character.HumanoidRootPart
- --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"))
- Part0 = Instance.new("Part")
- SpecialMesh1 = Instance.new("SpecialMesh")
- Part0.Name = "bat"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-21.7585564, 9.37138653, 31.5601826, 0.879920006, 0.321368992, -0.349946141, 0.111618973, 0.576104701, 0.809718668, 0.461824059, -0.751548648, 0.471055239)
- Part0.Orientation = Vector3.new(-54.0699997, -36.6100006, 10.9700003)
- Part0.Position = Vector3.new(-21.7585564, 9.37138653, 31.5601826)
- Part0.Rotation = Vector3.new(-59.8100014, -20.4799995, -20.0599995)
- Part0.Size = Vector3.new(1, 1, 4)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh1.Parent = Part0
- SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=54983181 "
- SpecialMesh1.Scale = Vector3.new(2, 2, 1.5)
- SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=55764440"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Part0.Parent = owner.Character["Right Arm"]
- Part0.CanCollide = false
- Part0:BreakJoints()
- Part0.Locked = true
- local batweld = Instance.new("Weld", owner.Character.Torso)
- batweld.Part0 = owner.Character["Right Arm"]
- batweld.Part1 = Part0
- batweld.C0 = CFrame.new(-5.7220459e-06, 0.786361694, -0.703529358, 0.999999881, 5.96046448e-08, -7.4505806e-08, 1.1920929e-07, -0.258817732, 0.965926111, 2.98023224e-08, -0.96592617, -0.258817703)
- local rightarm = Instance.new("Weld", owner.Character.Torso)
- rightarm.Part0 = owner.Character.Torso
- rightarm.Part1 = owner.Character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0,0)
- rightarm.Name = "RightArmWeld"
- local rightleg = Instance.new("Weld", owner.Character.Torso)
- rightleg.Part0 = owner.Character.Torso
- rightleg.Part1 = owner.Character["Right Leg"]
- rightleg.C0 = CFrame.new(0.5,-2,0)
- rightleg.Name = "RightLegWeld"
- local leftarm = Instance.new("Weld", owner.Character.Torso)
- leftarm.Part0 = owner.Character.Torso
- leftarm.Part1 = owner.Character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeld"
- local leftleg = Instance.new("Weld", owner.Character.Torso)
- leftleg.Part0 = owner.Character.Torso
- leftleg.Part1 = owner.Character["Left Leg"]
- leftleg.C0 = CFrame.new(-0.5,-2,0)
- leftleg.Name = "LeftLegWeld"
- local head = Instance.new("Weld", owner.Character.Torso)
- head.Part0 = owner.Character.Torso
- head.Part1 = owner.Character.Head
- head.C0 = CFrame.new(0,1.5,0)
- head.Name = "HeadWeld"
- local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
- humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
- humanoidrootpart.Part1 = owner.Character.Torso
- humanoidrootpart.Name = "HumanoidRootPartWeld"
- ownerhumanoid.WalkSpeed = 22
- local woosh = Instance.new("Sound", Part0)
- woosh.SoundId = "http://www.roblox.com/asset/?id=184474135"
- woosh.Volume = 2
- woosh.PlaybackSpeed = 0.7
- local hitted = Instance.new("Sound", Part0)
- hitted.SoundId = "rbxassetid://220025689"
- hitted.Volume = 2
- local splat = Instance.new("Sound", Part0)
- splat.SoundId = "rbxassetid://150315649"
- splat.Volume = 2
- local musicrandom = math.random(1,7)
- if musicrandom == 1 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://2901128915"
- music:Play()
- music.Volume = 2
- music.Looped = true
- music.Name = "moosic"
- elseif musicrandom == 2 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://1676048932"
- music:Play()
- music.Volume = 1.5
- music.Looped = true
- music.Name = "moosic"
- elseif musicrandom == 3 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://2310301799"
- music:Play()
- music.Volume = 1
- music.Looped = true
- music.Name = "moosic"
- elseif musicrandom == 4 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://2297359893"
- music:Play()
- music.Volume = 1
- music.TimePosition = 143.5
- music.Looped = true
- music.Name = "moosic"
- elseif musicrandom == 5 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://890429322"
- music:Play()
- music.Volume = 1
- music.Looped = true
- music.Name = "moosic"
- elseif musicrandom == 6 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://150744047"
- music:Play()
- music.Volume = 1
- music.Looped = true
- music.Name = "moosic"
- elseif musicrandom == 7 then
- local music = Instance.new("Sound", rootpart)
- music.SoundId = "rbxassetid://2518599835"
- music:Play()
- music.Volume = 1
- music.Looped = true
- music.Name = "moosic"
- end
- punchvalue = 1
- function killem(character)
- character.Archivable = true
- if character:findFirstChild("UpperTorso") then
- if character:findFirstChildOfClass("Humanoid") then
- character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
- character:findFirstChildOfClass("Humanoid").JumpPower = 0
- character:findFirstChildOfClass("Humanoid").Health = 0
- end
- return
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" or w.ClassName == "BodyVelocity" then
- w:destroy()
- end
- end
- end
- if character:findFirstChildOfClass("Humanoid") then
- character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
- character:findFirstChildOfClass("Humanoid").JumpPower = 0
- character:findFirstChildOfClass("Humanoid").Health = 0
- end
- local clone = character:Clone()
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
- v:destroy()
- end
- end
- if not clone:findFirstChild("HumanoidRootPart") then
- local root = Instance.new("Part", clone)
- root.Size = Vector3.new(2,2,1)
- root.CanCollide = false
- root.CFrame = clone.Torso.CFrame
- root.Name = "HumanoidRootPart"
- root.Transparency = 1
- root.CanCollide = false
- end
- if clone:findFirstChild("HumanoidRootPart") then
- clone:findFirstChild("HumanoidRootPart").CanCollide = false
- end
- clone.Parent = workspace
- game.Debris:AddItem(clone, 40)
- clone.HumanoidRootPart.CFrame = CFrame.new(clone.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position)
- if clone:findFirstChild("Health") then
- clone:findFirstChild("Health"):Remove()
- end
- for i,v in pairs(clone:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(clone:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- if clone:findFirstChild("Right Arm") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Right Arm"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Right Arm"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(1.57922745, 0.0944194794, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(1.5, 1, 2.98023224e-08, 0.999999821, 0, 0, 0, -0.999999881, 8.74227695e-08, 0, -8.74227766e-08, -1)
- end
- end
- if clone:findFirstChild("Left Arm") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Left Arm"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Left Arm"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(-1.5, 1, -5.96046448e-08, 0.999999881, 0, 0, 0, -0.99999994, -8.74227695e-08, 0, 8.74227766e-08, -1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(-1.57922745, 0.0944194794, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1)
- end
- end
- if clone:findFirstChild("Left Leg") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Left Leg"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Left Leg"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(-0.681243896, -2.07163239, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(-1.25976563, -2.08743858, 0, 0.766044319, 0.642787457, 0, -0.642787516, 0.766044378, 0, 0, 0, 1)
- end
- end
- if clone:findFirstChild("Right Leg") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Right Leg"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Right Leg"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(0.681243896, -2.07163239, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(0.5, -2, 0, 0.999999881, 0, 0, 0, 0.99999994, 0, 0, 0, 1)
- end
- end
- if clone:findFirstChild("Head") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Head"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Head"]
- welddead.C0 = CFrame.new(0, 1.5, 0, 0.999999881, 0, 0, 0, 1, 0, 0, 0, 1)
- end
- if clone:findFirstChild("HumanoidRootPart") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Torso"])
- welddead.Part0 = clone.HumanoidRootPart
- welddead.Part1 = clone["Torso"]
- welddead.C0 = CFrame.new(0, -2.79999995, 0.399999619, 0.99999994, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
- end
- if clone:findFirstChild("HumanoidRootPart") and clone:findFirstChild("UpperTorso") then
- local welddead = Instance.new("Weld", clone["UpperTorso"])
- welddead.Part0 = clone.HumanoidRootPart
- welddead.Part1 = clone["UpperTorso"]
- welddead.C0 = CFrame.new(0, -2.79999995, 0.399999619, 0.99999994, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
- end
- for i,v in pairs(clone:GetChildren()) do
- if v.ClassName == "Sound" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" or w.ClassName == "BodyVelocity" then
- w:destroy()
- end
- end
- end
- local function keepzeroing()
- while wait() do
- if clone:findFirstChildOfClass("Humanoid") then
- clone:findFirstChildOfClass("Humanoid").WalkSpeed = 0
- clone:findFirstChildOfClass("Humanoid").JumpPower = 0
- end
- end
- end
- spawn(keepzeroing)
- local value = 0.4
- while value > 0 do
- value = value - 0.02
- if clone:findFirstChild("HumanoidRootPart") then
- clone:findFirstChild("HumanoidRootPart").CFrame = clone:findFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,value)
- end
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- function attack(player, attackname)
- if player == owner and canattack then
- canattack = false
- cananimate = false
- if attackname == "Respawn" then
- if owner:findFirstChildOfClass("PlayerGui"):findFirstChild("press_pls") then
- owner:findFirstChildOfClass("PlayerGui"):findFirstChild("press_pls"):destroy()
- end
- owner:LoadCharacter()
- script.Disabled = true
- end
- ownerhumanoid.Name = "Immunity"
- if attackname == "Normal" then
- if punchvalue == 1 then
- punchvalue = 2
- for i = 0,1 , 0.11 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(0.895418167, 0.216991425, -0.362640381, 0.7065292, -0.408184737, 0.578101695, -0.67302078, -0.135030389, 0.727193058, -0.218767852, -0.902857542, -0.37011984),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.50000191, 0.5, -0.5, 0.99999994, 2.98023224e-08, -1.07047995e-07, 1.1920929e-07, 5.96046448e-08, -0.999999881, 0, 0.99999994, -7.93995838e-08),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.682813644, 0.5, -0.931747437, 0.342020094, -0.939692497, 2.22044605e-16, 1.12057217e-08, 4.07854905e-09, -0.99999994, 0.939692497, 0.342020094, 1.19248789e-08),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.173648149, 0, -0.98480773, 0, 1, 0, 0.98480773, 0, 0.173648149),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648119, 0, 0.984807611, 0, 1, 0, -0.984807611, 0, 0.173648119),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- wait(0.1)
- woosh:Play()
- for i = 0,1 , 0.11 do
- if i == 0.55 then
- local function damageit()
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v ~= owner.Character then
- if v:findFirstChild("Head") then
- if (v.Head.Position - Part0.Position).magnitude < 4.5 then
- local human0id = v:findFirstChildOfClass("Humanoid")
- if human0id then
- hitted:Play()
- local whohit = v
- if human0id.MaxHealth > 300 then
- human0id.MaxHealth = 300
- human0id.Health = 300
- end
- if whohit:findFirstChild("UpperTorso") then
- local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("UpperTorso"))
- velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15
- whohit.UpperTorso.CFrame = CFrame.new(whohit.UpperTorso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0)
- game.Debris:AddItem(velo0, 0.2)
- elseif whohit:findFirstChild("Torso") then
- local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("Torso"))
- velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15
- whohit.Torso.CFrame = CFrame.new(whohit.Torso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0)
- game.Debris:AddItem(velo0, 0.2)
- end
- local dmg = math.random(50,140)
- if human0id.Health <= dmg and not human0id.PlatformStand then
- killem(whohit)
- else
- human0id.PlatformStand = true
- human0id.Health = human0id.Health - dmg
- local function stoplaying()
- wait(2)
- human0id.PlatformStand = false
- end
- spawn(stoplaying)
- end
- end
- end
- end
- end
- end
- end
- spawn(damageit)
- end
- rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,-0.3)
- batweld.C0 = batweld.C0:lerp(CFrame.new(1.36004066, -1.74136543, 0.362408638, 0.529688239, -0.0257967729, 0.847799838, 0.731815279, 0.519221127, -0.441424638, -0.428808272, 0.85425061, 0.293903798),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.40557861, 0.5, -0.579227448, 0.984807551, 0.173648104, 0, 7.59040031e-09, -4.30473115e-08, -0.99999994, -0.173648134, 0.98480767, -4.37113847e-08),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.238529205, 0.5, -0.982877731, 0.342020094, -0.939692497, 0, -4.10752641e-08, -1.49501744e-08, -0.99999994, 0.939692557, 0.342020154, -4.37113847e-08),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.173648223, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, 0.173648223),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648134, 0, -0.98480767, 0, 1, 0, 0.98480767, 0, 0.173648134),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- elseif punchvalue == 2 then
- punchvalue = 1
- for i = 0,1 , 0.11 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(-1.60438728, -1.27208328, -0.492827177, 0.0523819327, -0.365687072, -0.92926234, -0.852657855, 0.468016267, -0.232239366, 0.519837022, 0.804508269, -0.287290454),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.40557861, 0.5, -0.579227448, 0.984807551, 0.173648104, 0, 7.59040031e-09, -4.30473115e-08, -0.99999994, -0.173648134, 0.98480767, -4.37113847e-08),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.238529205, 0.5, -0.982877731, 0.342020094, -0.939692497, 0, -4.10752641e-08, -1.49501744e-08, -0.99999994, 0.939692557, 0.342020154, -4.37113847e-08),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.173648223, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, 0.173648223),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648134, 0, -0.98480767, 0, 1, 0, 0.98480767, 0, 0.173648134),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- wait(0.1)
- woosh:Play()
- for i = 0,1 , 0.11 do
- if i == 0.55 then
- local function damageit()
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v ~= owner.Character then
- if v:findFirstChild("Head") then
- if (v.Head.Position - Part0.Position).magnitude < 4.5 then
- local human0id = v:findFirstChildOfClass("Humanoid")
- if human0id then
- hitted:Play()
- local whohit = v
- if human0id.MaxHealth > 300 then
- human0id.MaxHealth = 300
- human0id.Health = 300
- end
- if whohit:findFirstChild("UpperTorso") then
- local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("UpperTorso"))
- velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15
- whohit.UpperTorso.CFrame = CFrame.new(whohit.UpperTorso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0)
- game.Debris:AddItem(velo0, 0.2)
- elseif whohit:findFirstChild("Torso") then
- local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("Torso"))
- velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15
- whohit.Torso.CFrame = CFrame.new(whohit.Torso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0)
- game.Debris:AddItem(velo0, 0.2)
- end
- local dmg = math.random(50,140)
- if human0id.Health <= dmg and not human0id.PlatformStand then
- killem(whohit)
- else
- human0id.PlatformStand = true
- human0id.Health = human0id.Health - dmg
- local function stoplaying()
- wait(2)
- human0id.PlatformStand = false
- end
- spawn(stoplaying)
- end
- end
- end
- end
- end
- end
- end
- spawn(damageit)
- end
- rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,-0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.69889665, 0.394170761, 0.0185413361, 0.690658808, -0.707134247, -0.1514979, -0.0369449481, 0.174714148, -0.98392576, 0.722236574, 0.6851542, 0.0945428461),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57185173, 0.459482908, -0.413936973, 0.987541318, 0.156162173, 0.0193825662, 0.00802944601, 0.0730058104, -0.997299075, -0.157155514, 0.985029876, 0.070842348),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.0178173669, 0.0954422951, -0.0489528179, 0.33682394, -0.0593913794, -0.939692736, 0.173648328, 0.98480773, -1.82639241e-07, 0.925416648, -0.163176015, 0.342020035),i)
- head.C0 = head.C0:lerp(CFrame.new(2.38418579e-07, 1.5, 0, 0.342020154, -1.49011612e-08, 0.939692795, -1.14669092e-08, 0.99999994, -4.47034836e-08, -0.939692795, 3.7252903e-09, 0.342020184),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- wait(0.1)
- elseif attackname == "Finish" then
- ownerhumanoid.WalkSpeed = 0
- ownerhumanoid.JumpPower = 0
- for i = 0,1 , 0.08 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(0.637763023, -1.80996704, -1.21629524, 0.0523821563, -0.893855155, 0.445285141, -0.852660179, -0.272144109, -0.445991099, 0.519833207, -0.356314987, -0.776410401),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 1.03961468, 0.452787399, 0.642787576, 0.766044319, 0, 0.58682394, -0.492403865, 0.642787576, 0.492403805, -0.413175881, -0.766044438),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 1.03961468, 0.452787399, 0.642787635, -0.766044378, 0, -0.586823821, -0.492403775, 0.642787635, -0.492403835, -0.413175941, -0.766044319),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604366, 0.642786026, 1, 0, 0, 0, 0.766044199, 0.642787695, 0, -0.642787695, 0.766044319),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.919614792, -1.30000114, 1, 0, 0, 0, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025329),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 1.12020089e-07, 4.0771976e-08, -1.1920929e-07, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868244171, 1, 0, 0, 0, 0.984807611, 0.173648179, 0, -0.173648179, 0.984807611),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- wait(0.3)
- local sizevalue = 4
- torsopos = owner.Character.HumanoidRootPart.CFrame
- for i = 1,3 do
- woosh:Play()
- for i = 0,1 , 0.3 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(0.77614975, -1.95986652, -0.740211487, 0.0141179711, -0.773501039, 0.633637846, -0.58085382, -0.522155762, -0.624469519, 0.813885331, -0.359234661, -0.456662863),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 0.377679825, -0.693714142, 0.642787635, 0.766044438, 0, -0.133022219, 0.111618921, -0.984807611, -0.754406512, 0.633022249, 0.173648208),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 0.377679825, -0.693714142, 0.642787635, -0.766044378, 0, 0.133022308, 0.111618996, -0.984807551, 0.754406393, 0.633022189, 0.173648387),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.86602497, 0.5, 1, 0, 0, 0, 0.866025329, 0.49999994, 0, -0.49999997, 0.866025329),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.602511406, -1.69209099, 1, 0, 0, 0, 0.766044378, -0.642787516, 0, 0.642787576, 0.766044438) * CFrame.new(0,0,0.2),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 0, 0, 0, 0.866025388, 0.5, 0, -0.5, 0.866025388) * CFrame.new(0,0,-0.2),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868263245, 1, 0, 0, 0, 0.984807789, 0.17364797, 0, -0.17364797, 0.984807789),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- wait(0.1)
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v ~= owner.Character then
- if v:findFirstChild("Head") then
- if (v.Head.Position - Part0.Position).magnitude < 4.5 then
- local human0id = v:findFirstChildOfClass("Humanoid")
- if human0id then
- hitted:Play()
- local whohit = v
- if human0id.MaxHealth > 300 then
- human0id.MaxHealth = 300
- human0id.Health = 300
- end
- if whohit:findFirstChild("UpperTorso") then
- whohit.UpperTorso.Anchored = true
- elseif whohit:findFirstChild("Torso") then
- whohit.Torso.Anchored = true
- end
- human0id.Health = human0id.Health - math.random(5,15)
- human0id.JumpPower = 0
- human0id.PlatformStand = true
- local blood = Instance.new("Part", workspace)
- blood.Shape = "Cylinder"
- blood.BrickColor = BrickColor.new("Maroon")
- blood.Anchored = true
- blood.Size = Vector3.new(0.1,sizevalue,sizevalue)
- blood.CFrame = torsopos * CFrame.new(0,-3,-3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2)
- blood.CanCollide = false
- game.Debris:AddItem(blood, 8)
- sizevalue = sizevalue + 1
- end
- end
- end
- end
- end
- for i = 0,1 , 0.12 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(0.637763023, -1.80996704, -1.21629524, 0.0523821563, -0.893855155, 0.445285141, -0.852660179, -0.272144109, -0.445991099, 0.519833207, -0.356314987, -0.776410401),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 1.03961468, 0.452787399, 0.642787576, 0.766044319, 0, 0.58682394, -0.492403865, 0.642787576, 0.492403805, -0.413175881, -0.766044438),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 1.03961468, 0.452787399, 0.642787635, -0.766044378, 0, -0.586823821, -0.492403775, 0.642787635, -0.492403835, -0.413175941, -0.766044319),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604366, 0.642786026, 1, 0, 0, 0, 0.766044199, 0.642787695, 0, -0.642787695, 0.766044319),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.919614792, -1.30000114, 1, 0, 0, 0, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025329),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 1.12020089e-07, 4.0771976e-08, -1.1920929e-07, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868244171, 1, 0, 0, 0, 0.984807611, 0.173648179, 0, -0.173648179, 0.984807611),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- wait(0.1)
- end
- wait(0.25)
- woosh:Play()
- for i = 0,1 , 0.3 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(0.77614975, -1.95986652, -0.740211487, 0.0141179711, -0.773501039, 0.633637846, -0.58085382, -0.522155762, -0.624469519, 0.813885331, -0.359234661, -0.456662863),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 0.377679825, -0.693714142, 0.642787635, 0.766044438, 0, -0.133022219, 0.111618921, -0.984807611, -0.754406512, 0.633022249, 0.173648208),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 0.377679825, -0.693714142, 0.642787635, -0.766044378, 0, 0.133022308, 0.111618996, -0.984807551, 0.754406393, 0.633022189, 0.173648387),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.86602497, 0.5, 1, 0, 0, 0, 0.866025329, 0.49999994, 0, -0.49999997, 0.866025329),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.602511406, -1.69209099, 1, 0, 0, 0, 0.766044378, -0.642787516, 0, 0.642787576, 0.766044438) * CFrame.new(0,0,0.2),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 0, 0, 0, 0.866025388, 0.5, 0, -0.5, 0.866025388) * CFrame.new(0,0,-0.2),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868263245, 1, 0, 0, 0, 0.984807789, 0.17364797, 0, -0.17364797, 0.984807789),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v ~= owner.Character then
- if v:findFirstChild("Head") then
- if (v.Head.Position - Part0.Position).magnitude < 4.5 then
- local human0id = v:findFirstChildOfClass("Humanoid")
- if human0id then
- hitted:Play()
- local whohit = v
- if human0id.MaxHealth > 300 then
- human0id.MaxHealth = 300
- human0id.Health = 300
- end
- if whohit:findFirstChild("UpperTorso") then
- whohit.UpperTorso.Anchored = false
- elseif whohit:findFirstChild("Torso") then
- whohit.Torso.Anchored = false
- end
- human0id.Health = human0id.Health - 300
- human0id.JumpPower = 0
- human0id.PlatformStand = false
- local blood = Instance.new("Part", workspace)
- blood.Shape = "Cylinder"
- blood.BrickColor = BrickColor.new("Maroon")
- blood.Anchored = true
- blood.Size = Vector3.new(0.1,sizevalue,sizevalue)
- blood.CFrame = torsopos * CFrame.new(0,-3,-3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2)
- blood.CanCollide = false
- game.Debris:AddItem(blood, 8)
- splat:Play()
- end
- end
- end
- end
- end
- wait(0.2)
- for i = 0,1 , 0.08 do
- batweld.C0 = batweld.C0:lerp(CFrame.new(0.637763023, -1.80996704, -1.21629524, 0.0523821563, -0.893855155, 0.445285141, -0.852660179, -0.272144109, -0.445991099, 0.519833207, -0.356314987, -0.776410401),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 1.03961468, 0.452787399, 0.642787576, 0.766044319, 0, 0.58682394, -0.492403865, 0.642787576, 0.492403805, -0.413175881, -0.766044438),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 1.03961468, 0.452787399, 0.642787635, -0.766044378, 0, -0.586823821, -0.492403775, 0.642787635, -0.492403835, -0.413175941, -0.766044319),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604366, 0.642786026, 1, 0, 0, 0, 0.766044199, 0.642787695, 0, -0.642787695, 0.766044319),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.919614792, -1.30000114, 1, 0, 0, 0, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025329),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 1.12020089e-07, 4.0771976e-08, -1.1920929e-07, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868244171, 1, 0, 0, 0, 0.984807611, 0.173648179, 0, -0.173648179, 0.984807611),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- ownerhumanoid.WalkSpeed = 22
- ownerhumanoid.JumpPower = 50
- wait(0.4)
- end
- ownerhumanoid.Name = "Humanoid"
- cananimate = true
- canattack = true
- end
- end
- attackevent.OnServerEvent:connect(attack)
- function run(speed)
- if speed > 5 and not jumping and cananimate then
- running = true
- else
- running = false
- end
- end
- ownerhumanoid.Running:connect(run)
- function checkjump()
- while wait() do
- if rootpart.Velocity.y > 1 or rootpart.Velocity.y < - 1 and cananimate then
- jumping = true
- else
- jumping = false
- end
- end
- end
- spawn(run)
- spawn(checkjump)
- ownerhumanoid.WalkSpeed = 22
- function dead()
- canattack = true
- owner.Character.Archivable = true
- ownerhumanoid.WalkSpeed = 0
- ownerhumanoid.JumpPower = 0
- if Part0.Parent ~= nil then
- Part0.CanCollide = true
- Part0:BreakJoints()
- end
- if rootpart:findFirstChild("moosic") then
- rootpart.moosic:destroy()
- end
- hitted:Play()
- local clone = owner.Character:Clone()
- if owner.Character:findFirstChildOfClass("Humanoid") then
- owner.Character:findFirstChildOfClass("Humanoid"):destroy()
- end
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:destroy()
- end
- end
- clone.Parent = workspace
- if clone:findFirstChild("Health") then
- clone:findFirstChild("Health"):Remove()
- end
- for i,v in pairs(clone:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(clone:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- if clone:findFirstChild("Right Arm") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Right Arm"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Right Arm"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(1.57922745, 0.0944194794, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(1.5, 1, 2.98023224e-08, 0.999999821, 0, 0, 0, -0.999999881, 8.74227695e-08, 0, -8.74227766e-08, -1)
- end
- end
- if clone:findFirstChild("Left Arm") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Left Arm"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Left Arm"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(-1.5, 1, -5.96046448e-08, 0.999999881, 0, 0, 0, -0.99999994, -8.74227695e-08, 0, 8.74227766e-08, -1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(-1.57922745, 0.0944194794, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1)
- end
- end
- if clone:findFirstChild("Left Leg") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Left Leg"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Left Leg"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(-0.681243896, -2.07163239, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(-1.25976563, -2.08743858, 0, 0.766044319, 0.642787457, 0, -0.642787516, 0.766044378, 0, 0, 0, 1)
- end
- end
- if clone:findFirstChild("Right Leg") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Right Leg"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Right Leg"]
- local pose = math.random(1,2)
- if pose == 1 then
- welddead.C0 = CFrame.new(0.681243896, -2.07163239, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1)
- elseif pose == 2 then
- welddead.C0 = CFrame.new(0.5, -2, 0, 0.999999881, 0, 0, 0, 0.99999994, 0, 0, 0, 1)
- end
- end
- if clone:findFirstChild("Head") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Head"])
- welddead.Part0 = clone.Torso
- welddead.Part1 = clone["Head"]
- welddead.C0 = CFrame.new(0, 1.5, 0, 0.999999881, 0, 0, 0, 1, 0, 0, 0, 1)
- end
- if clone:findFirstChild("HumanoidRootPart") and clone:findFirstChild("Torso") then
- local welddead = Instance.new("Weld", clone["Torso"])
- welddead.Part0 = clone.HumanoidRootPart
- welddead.Part1 = clone["Torso"]
- welddead.C0 = CFrame.new(0, -2.79999995, 0.399999619, 0.99999994, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
- end
- local value = 0.35
- -- Version: 2.82
- -- Instances:
- local presspls = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- presspls.Name = "press_pls"
- presspls.Parent = owner:findFirstChildOfClass("PlayerGui")
- presspls.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = presspls
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.Position = UDim2.new(0.325911194, 0, 0.864347696, 0)
- Frame.Size = UDim2.new(0, 614, 0, 88)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.0293159597, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 578, 0, 88)
- TextLabel.Font = Enum.Font.Arcade
- TextLabel.Text = "PRESS R TO RESTART"
- TextLabel.TextColor3 = Color3.fromRGB(1,1,1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 25
- TextLabel.TextWrapped = true
- local music = Instance.new("Sound", presspls)
- local randomdedmusic = math.random(1,2)
- if randomdedmusic == 1 then
- music.SoundId = "rbxassetid://542118363"
- music.Volume = 3
- elseif randomdedmusic == 2 then
- music.SoundId = "rbxassetid://226195819"
- music.Volume = 2
- end
- music:Play()
- music.Name = "dead"
- while value > 0 do
- value = value - 0.02
- if clone:findFirstChild("HumanoidRootPart") then
- clone:findFirstChild("HumanoidRootPart").CFrame = clone:findFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,value)
- end
- game:GetService("RunService").Heartbeat:wait()
- end
- if clone:findFirstChild("HumanoidRootPart") then
- local blood = Instance.new("Part", workspace)
- blood.Shape = "Cylinder"
- blood.BrickColor = BrickColor.new("Maroon")
- blood.Anchored = true
- blood.Size = Vector3.new(0.1,1,1)
- blood.CFrame = clone:findFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,-3.25,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2)
- blood.CanCollide = false
- local function bleeed()
- while blood.Size.y < 6 and wait() do
- blood.Size = blood.Size + Vector3.new(0,0.007,0.007)
- end
- end
- spawn(bleeed)
- game.Debris:AddItem(blood, 40)
- end
- if clone:findFirstChild("HumanoidRootPart") then
- clone:findFirstChild("HumanoidRootPart").CanCollide = false
- end
- game.Debris:AddItem(clone, 40)
- local function rainbow()
- while wait() do
- TextLabel.TextColor3 = Color3.fromRGB(0,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(30,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(60,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(90,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(120,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(150,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(180,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(210,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(240,255,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
- wait(.1)
- --
- TextLabel.TextColor3 = Color3.fromRGB(255,240,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,210,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,180,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,150,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,120,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,90,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,60,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,30,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,255)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,255)
- wait(.1)
- --E
- TextLabel.TextColor3 = Color3.fromRGB(255,0,230)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,200)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,170)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,140)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,110)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,80)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,50)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,20)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(255,0,0)
- wait(.1)
- --E
- TextLabel.TextColor3 = Color3.fromRGB(230,0,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(200,30,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(170,60,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(140,90,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(110,120,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(80,150,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(50,180,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(20,210,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,240,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,0)
- wait(.1)
- --
- TextLabel.TextColor3 = Color3.fromRGB(0,255,0)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,30)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,60)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,90)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,120)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,160)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,190)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,220)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,240)
- wait(.1)
- TextLabel.TextColor3 = Color3.fromRGB(0,255,255)
- wait(.1)
- end
- end
- local function spin()
- value = 0.1
- while true do
- canattack = true
- TextLabel.Rotation = 0
- while value > -0.11 do
- TextLabel.Rotation = TextLabel.Rotation + value
- value = value - 0.0012
- wait()
- canattack = true
- end
- local interpolation = -0.1088
- for i = 1,160 do
- interpolation = interpolation + 0.0014
- TextLabel.Rotation = TextLabel.Rotation + interpolation
- wait()
- canattack = true
- end
- value = 0.1
- wait()
- end
- end
- spawn(spin)
- spawn(rainbow)
- end
- ownerhumanoid.Died:connect(dead)
- while game:GetService("RunService").Heartbeat:wait() do
- if jumping then
- for i = 0,1 , 0.11 do
- if jumping and cananimate then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.53904724, 0.0755195618, 0.171010971, 0.99619472, -0.0818995908, -0.0298090335, 0.0871557295, 0.936116695, 0.340718776, 4.04947187e-09, -0.342020273, 0.939692557),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.53904724, 0.0755195618, 0.171010971, 0.99619472, 0.081899628, 0.0298090335, -0.0871557519, 0.936116695, 0.340718746, 8.98904418e-09, -0.342020243, 0.939692557),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.586088657, -2.0058279, 0.25881958, 0.99619472, 0.0841859505, 0.0225575529, -0.0871556997, 0.962250173, 0.257834017, -2.40219578e-09, -0.258818954, 0.965925872),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.536765099, -1.44205523, -1, 0.99619472, -0.0871554911, 0, 0.0871554837, 0.996194661, -4.4408921e-16, 0, 4.4408921e-16, 1),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, 0.0868244171, 1, -3.62258703e-08, -2.05447037e-07, -1.24344979e-14, 0.98480773, -0.173648298, 2.08616399e-07, 0.173648298, 0.98480773),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- end --------------------------------------------
- if running and not jumping and cananimate then
- local rarmc0 = rightarm.C0
- local larmc0 = leftarm.C0
- local llegc0 = leftleg.C0
- local rlegc0 = rightleg.C0
- local humrootc0 = humanoidrootpart.C0
- local headc0 = head.C0
- for i = 0,1 , 0.13 do
- if running and not jumping and cananimate then
- batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i)
- rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i)
- leftarm.C0 = larmc0:lerp(CFrame.new(-1.29883623, 0.500000954, -1.24085808, 0.939692557, -0.342020124, -3.6282124e-09, -3.7252903e-08, -8.94069672e-08, -0.99999994, 0.342020124, 0.939692616, -5.96046448e-08),i)
- leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.34202051, 0.939691544, 1, 3.55271368e-15, 0, -7.10542736e-15, 0.342020154, 0.939692616, 1.77635705e-15, -0.939692616, 0.342020154),i)
- rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.04278755, -1.56604576, 1, 0, 0, 0, 0.642787635, -0.766044319, 0, 0.766044378, 0.642787755),i)
- humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0.18793869, -0.068403244, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i)
- head.C0 = headc0:lerp(CFrame.new(0, 1.46984625, 0.171009064, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- local rarmc0 = rightarm.C0
- local larmc0 = leftarm.C0
- local llegc0 = leftleg.C0
- local rlegc0 = rightleg.C0
- local humrootc0 = humanoidrootpart.C0
- local headc0 = head.C0
- for i = 0,1 , 0.13 do
- if running and not jumping and cananimate then
- batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i)
- rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i)
- leftarm.C0 = larmc0:lerp(CFrame.new(-1.51513863, -0.129981518, -0.155303955, 0.998369873, 0.0540187061, 0.0184263606, -0.0462776423, 0.955111921, -0.292607933, -0.0334055424, 0.291278243, 0.956054926),i)
- leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -0.863191605, -0.37587738, 1, 3.55271368e-15, 0, -7.10542736e-15, 0.342020154, 0.939692616, 1.77635705e-15, -0.939692616, 0.342020154),i)
- rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -2.06334591, 0.204090118, 1, 8.8817842e-16, 0, -8.8817842e-16, 0.98480767, 0.173648238, 0, -0.173648268, 0.98480773),i)
- humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i)
- head.C0 = headc0:lerp(CFrame.new(0, 1.46984673, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- local rarmc0 = rightarm.C0
- local larmc0 = leftarm.C0
- local llegc0 = leftleg.C0
- local rlegc0 = rightleg.C0
- local humrootc0 = humanoidrootpart.C0
- local headc0 = head.C0
- for i = 0,1 , 0.13 do
- if running and not jumping and cananimate then
- batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i)
- rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i)
- leftarm.C0 = larmc0:lerp(CFrame.new(-1.48023987, -0.0610394478, 0.792190552, 0.998369932, -0.0087661799, 0.0563976094, -0.0462775454, 0.454015464, 0.889791071, -0.033405453, -0.890950739, 0.452869713),i)
- leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.26786566, -1.64663887, 1, 0, 0, 0, 0.642787933, -0.76604414, 0, 0.76604414, 0.642787993),i)
- rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.42055845, 0.970134735, 1, 0, 0, 3.55271368e-15, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154),i)
- humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0.18793869, -0.068403244, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i)
- head.C0 = headc0:lerp(CFrame.new(0, 1.46984673, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- local rarmc0 = rightarm.C0
- local larmc0 = leftarm.C0
- local llegc0 = leftleg.C0
- local rlegc0 = rightleg.C0
- local humrootc0 = humanoidrootpart.C0
- local headc0 = head.C0
- for i = 0,1 , 0.13 do
- if running and not jumping and cananimate then
- batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i)
- rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i)
- leftarm.C0 = larmc0:lerp(CFrame.new(-1.49622726, 0.0558686256, 0.152441025, 0.998369813, 0.0444596186, 0.03579133, -0.0462785624, 0.99758935, 0.0517075658, -0.0334061533, -0.0532796681, 0.998020709),i)
- leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.93537951, 0.411506653, 1, 0, 0, 0, 0.939692199, 0.342021108, 0, -0.342021137, 0.939692259),i)
- rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -0.941730499, -0.345434189, 1, 0, 0, 3.55271368e-15, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154),i)
- humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i)
- head.C0 = headc0:lerp(CFrame.new(0, 1.46984625, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- else -----------------------------------------------------------------
- for i = 0,1 , 0.03 do
- if not running and not jumping and cananimate then
- batweld.C0 = batweld.C0:lerp(CFrame.new(-5.7220459e-06, 0.786361694, -0.703529358, 0.999999881, 5.96046448e-08, -7.4505806e-08, 1.1920929e-07, -0.258817732, 0.965926111, 2.98023224e-08, -0.96592617, -0.258817703),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.57922745, 0.239297867, -0.310691833, 0.984807611, -0.173648193, 0, 0.111618936, 0.633022428, -0.766044199, 0.133022189, 0.754406273, 0.642787933),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57922745, 0.094420433, 0, 0.98480767, 0.173648164, 0, -0.173648164, 0.98480767, -1.74845539e-07, 0, 1.71363354e-07, 0.99999994),i)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.535205841, -2.01684046, 3.81469727e-06, 0.999390841, 0.0348994955, 0, -0.0348994918, 0.999390781, 0, 2.98023224e-08, 0, 0.99999994),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.535203934, -2.01684046, 0, 0.999390841, -0.0348994955, 0, 0.0348994918, 0.999390781, 0, 2.98023224e-08, 0, 0.99999994),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, 0, -0.342020124, 0, 1, 0, 0.342020124, 0, 0.939692616),i)
- head.C0 = head.C0:lerp(CFrame.new(0.0188541412, 1.49959755, -0.00685882568, 0.938935518, 0.0377115496, 0.342020094, -0.0401317924, 0.999194384, 0, -0.341744572, -0.0137258805, 0.939692557),i)
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment