kill aura, *** mode OP
Key Required

kill aura, *** mode OP

Ragdoll System Testziropontoziroponto 6.6K views 123 executesUpdated May 18, 2022
0.0/ 5(1 votes)
010% Positive
Lua Script•113 lines (1991 chars)
local autoheal = true -- automatically heal

local antiragdoll = true -- instantly get back up when getting ragdolled, doesnt prevent knockback



local minhealth = 50 -- health at which you will heal back up



local attackrange = 32 -- actual attack range is 30 i think

local toolname = "Kick" -- what tool to use

local p2wonly = true -- set to true to only attack people that bought the baseball bat



local pl = game:GetService("Players")

local lp = pl.LocalPlayer

local char = lp.Character

local hrp = char.HumanoidRootPart

local tool = lp.Backpack:FindFirstChild(toolname) or char:FindFirstChild(toolname)



if tool.Parent ~= char then

    tool.Parent = char

    wait()

end





local function isp2w(plr)

    local bat = plr.StarterGear:FindFirstChild("Baseball Bat")

    local banana = plr.StarterGear:FindFirstChild("Banana Peel")

    if bat and not banana then

        return true

    end

    return false

end



local hasantid = false



local con;con = game:GetService("RunService").Heartbeat:Connect(function()

    for i,v in pairs(pl:GetPlayers()) do

        if v ~= lp and tool.Parent == char and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v then

            if (hrp.Position - v.Character.HumanoidRootPart.Position).magnitude < attackrange then

                if (p2wonly and isp2w(v)) or p2wonly == false then

                    tool.Remote:InvokeServer(v.Character)

                end

            end

        end

    end

    if autoheal and char.Humanoid.Health <= minhealth then

        game:GetService("ReplicatedStorage").FallDamageEvent:FireServer(-math.huge, false)

    end

    if antiragdoll and char:FindFirstChild("CollisionPart") and hasantid == false then

        game:GetService("ReplicatedStorage").FallRagdollerEvent:FireServer(0, false)

        hasantid = true

        wait(.2)

        hasantid = false

    end

    wait()

end)



char.Humanoid.Died:Connect(function()

    con:Disconnect()

end)

Features & Information

hellow
#a#b#c#d#e

Community Comments (0)

No comments yet for this script.

More Scripts for Ragdoll System Test