How to make a kill system like piggy characters?

How can I make a character that kill other players on touch?
Info: The character that will kill other players will have a “Beast” tag. (Parented to Player not Character)
The character that will be killed will have a “Contestant” tag.

You cant ask for scripts in the devforum, but you can do this using the .Touched function.

1 Like

I’m not really asking for scripts, but I just wanted some ideas, anyways I’ll try using it.

Should I try using HumanoidRootPart.Touched?

It depends on where you want the part to kill other players

If you’d put it in the HumanoidRootPart, then the Killer would basically just be attempting to kill other players with his torso Ew

If the killer had a weapon though, you could use the Tool’s Handle for that instead

1 Like

Make a script like this:

script.Parent.Touched:Connect(function(hit)

    local plr = game.Players:GetPlayerFromCharacter(hit.Parent)

    if plr then
        -- do something with the humanoid
    end
end)

Then you can use a for loop to add the script to the “Beast’s” body parts

local Script = -- define script
for i , v in pairs(character:GetChildren()) do
    if v:IsA("BasePart") then
        Script:Clone().Parent = v
    end
end
1 Like

Hm, might work. Anyways I’ll make some modifications after. Thanks for all the help.

1 Like