- local player = game:GetService("Players").LocalPlayer
- function getremote(name)
- return game:GetService("ReplicatedStorage").RemoteTriggers:FindFirstChild(name)
- end
- function damage(humanoid,item)
- getremote("Bolster"):FireServer(humanoid,item)
- end
- function goto(part)
- local rootpart = player.Character.HumanoidRootPart
- local lastcf = rootpart.CFrame
- local cframe = part.CFrame
- local step = 1/((lastcf.p-cframe.p).Magnitude/player.Character.Humanoid.WalkSpeed)
- step /= 36
- local steps = 0
- for i = 0,1,step do
- rootpart.CFrame = lastcf:Lerp(cframe,i)
- player.Character.Humanoid:MoveTo(cframe.p)
- rootpart.Velocity = rootpart.CFrame.lookVector*player.Character.Humanoid.WalkSpeed
- if steps % 10 == 1 then
- player.Character.Humanoid:ChangeState("Jumping")
- end
- game:GetService("RunService").Stepped:Wait()
- steps += 1
- end
- rootpart.CFrame = part.CFrame
- end
- function kill(humanoid)
- local attacktool = player.Backpack:GetChildren()[1] or player.Character:FindFirstChildWhichIsA("Tool")
- repeat damage(humanoid,attacktool) wait(0.25) until humanoid.Health <= 0
- end
- for _,x in pairs(game:GetService("Players"):GetPlayers()) do
- if x ~= player then
- pcall(function()
- goto(x.Character.Head)
- kill(x.Character.Humanoid)
- end)
- wait(1)
- end
- end
TEXT
784
Be A Parkour Ninja Kill All Script Guest on 27th September 2022 04:13:53 AM
Recent Pastes