Help With Kill On Impact script

Hello, I am trying to make a game where if you touch the baseplate, you die. I know this is a simple script but I don’t know the first thing about scripting. thanks!

This should work for you.

local Debounce = false
workspace.Baseplate.Touched:Connect(function(Hit)
    if Debounce == false then
        Debounce = true
        local Humanoid = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid")
        if Humanoid then
            Humanoid:BreakJoints()
        end
    end
end
1 Like

Thanks! I imputed it and it works! You are so helpful! :slight_smile:

Mark as a solution so that it tells others it has been resolved.

1 Like