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.
local Game = game.workspace.Game
local text = game.StarterGui.playersNeeded.TextLabel
--Get player service
local players = game:GetService("Players")
function telePlayers()
wait(5)
local target = CFrame.new(-16.725, 6.21, -293.735)
for i, player in ipairs(game.Players:GetChildren()) do
--Make sure the character exists and its HumanoidRootPart exists
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
--add an offset of 5 for each character
player.Character.HumanoidRootPart.CFrame = target + Vector3.new(0, i * 5, 0)
end
end
end
--Check player count, run stuff if it’s high enough
while wait() do
if #players:GetPlayers() > 4 then
text.TextTransparency = 1
text.TextStrokeTransparency = 1
telePlayers()
else
text.TextTransparency = 0
text.TextStrokeTransparency = 0.9
end
end

6 comments
what is this
because that u found is wrong "text.TextTransparency = 1 22 text.TextStrokeTransparency = 1 23 telePlayers() "
could you reword that? im not sure what youre trying to say
The Only thing is Transparency 1
and the commit script
oh I see, thx