hi all i can script is doors that change color coz i started 2 days ago and i need help with a lava block script
local Lava = script.Parent
function dieontouch(Brick)
local somerandomperson =
Brick.Parent:findFirstChild("Humanoid")
if (somerandomperson = ~= nil) then
somerandomperson.Health - 100
end
end
Lava.Touched:Connect(dieontouch)

2 comments
The Health property can't be changed by performing subtraction like that. An equal sign is required, just like how you would assign a variable to a value.
for 'somerandomperson = ~= nil' im pretty sure all you need is 'somerandomperson ~= nil' or else you will get an error