PBST Winner points system. How do i achieve this?

Hello everyone! Hope you are having a good day!

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?

3 Likes

Anyone knows how to do this? I have totally no idea how this was done.

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.)

1 Like
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)

output:

{
     [1] = EpicGaming213
     [2] = aaa_21812gaming
}  -  Server - Script:7
1 Like