Why won't my "not enough players" GUI stay hidden? [Solved]
This question has been solved by the original poster.
I have a script that teleports players to a location when there enough, everything in the script works except for the gui transparency. I have my textlabel set to transparent and is should only be visible when there aren't enough players to teleport, as you can see I even tried to re-set the gui to transparent but it always shows up, why is this, I am getting no errors either.
01 | local Game = game.workspace.Game |
02 | local text = game.StarterGui.playersNeeded.TextLabel |
04 | local players = game:GetService( "Players" ) |
08 | local target = CFrame.new(- 16.725 , 6.21 , - 293.735 ) |
09 | for i, player in ipairs (game.Players:GetChildren()) do |
11 | if player.Character and player.Character:FindFirstChild( "HumanoidRootPart" ) then |
13 | player.Character.HumanoidRootPart.CFrame = target + Vector 3. new( 0 , i * 5 , 0 ) |
20 | if #players:GetPlayers() > 4 then |
21 | text.TextTransparency = 1 |
22 | text.TextStrokeTransparency = 1 |
25 | text.TextTransparency = 0 |
26 | text.TextStrokeTransparency = 0.9 |