Lua keeps saying unexpected error "=" or it not a correct statement "then"," if" This is my script:
function onTouch(part) local human = part.Parent:findFirstChild("Humanoid") if game.teams.Hostile = true then(human == nil) then return end human.Health = 0 end script.Parent.Touched:connect(onTouch)

2 comments
there is issue with line 7 about end <'eof'>
oh yeah add an extra end to for the function onTouch