My Gui is invisible for some reason

I have a script that creates a image button with every players name in the server. It makes the gui and I can see it ingame with players in the server in startergui but its not visible in game.

Here’s the script:

The playerlist gui is where the sample button and script it kept. (Its a local script)

Could you link the rbxl file with the post.

TestingNameGui.rbxl (34.2 KB)

The transparency of the frame is 1, that is, invisible.
Should that happen?

Thats just a white square it shouldn’t be hiding the items inside

The issue is that your adding it into the startergui instead of the playergui you have to loop through each players ui and edit them because the startergui is only used when players are connecting.

This should work:


function clearList(plr)
	for _, item in pairs(plr.PlayerGui.FashionVote:GetChildren()) do
		if item:IsA("ImageButton") then
			item:Destroy()
		end
	end
end

function fillList(plr)
	clearList(plr)
	for _, player in pairs(game.Players:GetChildren()) do
		if not plr.PlayerGui.FashionVote:FindFirstChild(player.Name) then
			print(plr)
			local new = sample:Clone()
			new.Name = player.Name
			new.NameText.Text = player.Character.Name
			new.Votes.Text = player.leaderstats.Votes.Value
			new.Parent = plr.PlayerGui.FashionVote
		end
	end
end

function fillListStartSequence()
	for _, player in pairs(game.Players:GetChildren()) do
		fillList(player)
	end
end

game.Players.PlayerAdded:Connect(fillListStartSequence)
game.Players.PlayerRemoving:Connect(fillListStartSequence)

wait(3)

fillListStartSequence()

The ui you see is at game.Players.PLAYER.PlayerGui

1 Like

Thank you! I think it works, Has an error on local player but its not game breaking (Just that cant access other players playergui)

Would you mind marking my post as the solution if it works for you. Thanks :slight_smile: