Im trying to make a KOTH game. Ive read a little bit about regions and im not getting much from it. Ive looked at a thread about how I could set this up but im not able to understand it correctly.
local radius = 10
local distanceFromHill = (playerRoot.Position - hill.Position).Magnitude
--check to see if player is within distance
if(distanceFromHill <= radius) then
--enable screen/bilboard Gui
--disable screen/billboard Gui
--stop giving points
Since you want to use Region3, you need to constantly loop through it.You could have a table outside of a loop that gets added onto from the instances in a region3 specified, having that contain the players currently in the region.
Then, you could have a temporary table inside of the loop that gets added to when a player is found. That table will always be reset, allowing you to add the player to the table outside of the loop for all the current players in the region if they aren’t already in the current players table.