Sort of embarrassing but I'm lost. I'm trying to figure out how to make a brick hurt whoever touches it but I don't know the word. To access the humanoid health I used:
Health=game.Players.player.Humanoid.Health but it said player is not a child of Players
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then -- if a humanoid exists, then humanoid.Health = 0 -- "0" kills the player, you can change how much the brick damages the player. end end script.Parent.Touched:connect(onTouch)
Hope it helps !