local deb = false script.Parent.Touched:connect(function(h) if h.Parent:FindFirstChild("Humanoid") then if deb == true then return end deb = true script.Parent.Sound4:Play() local player = game.Players:GetPlayerFromCharacter(h.Parent) if player.Character:FindFirstChild("Left Leg") or player.Character:FindFirstChild("Right Leg") then if player.Character:FindFirstChild("Left Leg") then player.Character["Left Leg"]:Destroy() end if player.Character:FindFirstChild("Right Leg") then player.Character["Right Leg"]:Destroy() end elseif player.Character:FindFirstChild("Left Leg") ~= nil and player.Character:FindFirstChild("Right Leg") ~= nil then player.Character.Torso:Destroy() end end deb = false end)
Touching this brick is supposed to destroy your legs, or if you don't have any, destroy your torso. It destroys your legs but the torso thing doesn't seem to work. Can't figure out what it might be.
Dude. Your making it way more complicated than it needs to be. like lol
local deb = false function ontouched(hit) wait(1) if deb == false then deb = true hit:Remove() end deb = false end script.Parent.Touched:connect(ontouched)
Put that in the block u want