script.Parent.Touched:connect(function()
script.Parent:FindFirstChild("Humanoid")
script.Parent.CanCollide = false
if
script.Parent:FindFirstChild("Humanoid") == false then
script.Parent.CanCollide = true
end
end)
Supposed to turn the brick's CanCollide to false if a Humanoid is touching it, and when the player is not on/in the brick, cancollide goes back to true.
All this script does is turn the canCollide to false and it stops there.

6 comments
Pretty sure you don't need not after elseif
Thanks!
it just makes more sense to me, you can use if thing == false but i like if not
Nvm, this doesn't work. It stays cancollided. It doesn't go to false, it stays true.
oooh, hold on
fixed i think