I am a VERY new scripter, started relatively yesterday/today, i'm trying to make a humanoid block(wall barrier) for a zombie survival game. When the humanoid dies, I want the block to un-anchor and fall
Here's my script so far, and I can't seem to figure out why it won't work. Any help would be appreciated.
Model name Test
local h = game.workspace.Test.Head
local b = game.workspace.Test.Humanoid
if b.Health == 0
then h.Anchored = false
h.CanCollide = true
end

3 comments
Error in output, Workspace.Test.Script:5: 'then' expected near '='
make line five debounce=false into debounce==false
I changed that & added a line "h.Anchored = true" above local debounce = false and now it works great! thanks