Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how would I make this repeat until all players values are true?

Asked by 2 years ago
Edited 2 years ago
repeat 
nomoreplayers = true                          
if j[f].Character.Inmap.Value == false then                    j[f].Character.HumanoidRootPart.CFrame = CFrame.new(d[i].TeleportPart.Position + Vector3.new(0, 10, 0)                            
j[f].Character.Inmap.Value = true                        
nomoreplayers = false                                
end
until nomoreplayers                                
d[i].Round.OGHealth.Value = 130                            
j[f].Character.Ingame.Value = true                        
j[f].PlayerGui.Cash.Value = 600
d[i].Round.Health.Value = 130
wait(10)                                    
d[i].Game.Value = true                                
d[i].Round.Main.Disabled = false

so i want the repeat to keep repeating until all players have inmap to true (j is players and j[f] is specific player) but for some reason it wont keep repeating until all players inmap is true, i wouldnt need this repeat if there wasnt a wait 10, but since there is one a player would only teleport to the spot every 10 seconds, but i want them to all teleport to the spot at the same time, so is there a way i could make the repeat keep repeating until all players have inmap as true?

0
Not sure if it even repeats when you got the 2nd line AProgrammR 398 — 2y

Answer this question