I'm trying to make a capture point ( Sorry for copying you JFeather ) for a Team Fortress 2 style capture point place, and the capture point script doesn't seem to work.
- Code:
if script.Parent.BrickColor = 21 then
mode == red else
if script.Parent.BrickColor = 45 then
mode == blue
end
end
mode = blue
bin = script.Parent
function onTouched
if mode = blue then
bin.Parent.Humanoid.Health = bin.Parent.Humanoid.Health + 1
end
script.Parent.connect:onTouched