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
i recommend using ".Visible" instead of "Transparency" when it comes to gui's(just recommend)
Oops, the problem seems to have fixed itself, may have had something to do with roblox's server issues at the current time, but the script now works like it should