I needed help with scripting a flag for CTF. The concept is basically, if the other team conquers the flag // stands on it for about 7 seconds, the flag changes to their team color, but only if all enemy team opponents aren't on the flag, and if the other team holds the flag with none of the other team around, it's theirs, and they gain points from it on the leaderboard for their team. If you know how to do this, it would be great showing me how.
Thank you!
This is rather simple, what you'd do is detect if a player is within a certain radius of the flag pole eg; 6 studs (using magnification) then if a player of a different team colour is detected to be in the same area, then they can't 'capture' it. Then say if the player stays within the area for a certain amount of time (without another team's player in the area) condition a reward/round reset/score awarded?
If you need any links to resources, just let me know and I can't link you to stuff.