So I have a brick where you step on it you die but if you consistently jump on the kill break you wont die and you can just pass stages of the obby my just jumping straight thought kill bricks.
Script : script.Parent.Touched:Connect(function(hit)
local h = hit.Parent:FindFirstChild(“Humanoid”)
if h ~= nil then
h.Health = 0 – If you want to change this into speed do WalkSpeed = [number here]
I just have another question is there any way to make the brick work like 4 times for example if I make like 6 bricks overlapping in each other and make it can-colide it work but not with 1 part what is the problem
local damage = 100 -- If you want the player dead, keep at 100.
script.Parent.Touched:Connect(function(char)
if char:FindFirstChildOfClass("Humanoid") then
char.Humanoid:TakeDamage(damage)
end
end)
Try that and let me know if it works. Put this script inside of the part.
You’re using the right method, but not in the correct way.
You want one part which is the brick. Cancollide should be true, and it should not be transparent.
The other part will be the hitbox. It is transparent and cancollide is false. It encompasses whatever area you want the player to die in. That is where the script should go.