I've been looking all over the ROBLOX Scripting Wiki and I've had no luck so far. I've been kind of new at scripting for a bit, and I'm trying my best to learn. I don't know how a flag script would work, and I don't have the slightest idea on how to code it. In my words, I would just like to learn how to be able to script a simple Flag script. A player on a team sits on a brick, message comes up, something like: if (Red is on brick) then print("Red is capturing the flag!") end

But probably that's wrong.

And then a timer would countdown.

And again, I still have no clue on how to do this in one script.

If anyone could just help me learn the basics of making a flag script, that would be much appreciated.