In PBST (Pinewood Builders Security Team) trainings i saw that when people were standing at the end of an obby, and after the countdown ended they were grouped to the Winners team and the trainer gave them points. How do i achieve something like this?
create a bool value in each player thats named “finished” or something, and do a for loop for the countdown. when a player touches a certain part that acts like the finish line, edit the finished value. then, at the end of the countdown, add the points and teleport all the players with the “finished” value to true
(i dont know if a for loop is the best for the situation, but i guess it’s worth a try.)
local WinPart = game.Workspace.Part
local Winners = {}
WinPart.Touched:Connect(function(Player)
if not table.find(Winners, Player.Parent) then
table.insert(Winners, Player.Parent)
print(Winners)
end
end)