Loading every players playergui

im trying to create a voting system where players vote for a players design. I need to access every player in the servers playergui locally and I cant seem to find a way to. Anyone know a good work around to this?

This is my current script, it works but dosent update and only makes the gui players spawn with. changing the gui dosent update the tag.

while wait(3) do
	for _, plr in pairs(game.Players:GetChildren()) do
		local tag = script:FindFirstChild("Design")
		local clone = tag:Clone()
		
		local top = plr.PlayerGui.Designing.Frame.Top
		
		local base = top.Base:Clone()
		
		clone.Design.Base:Destroy()
		
		base.Parent = clone.Design
		
		clone.Design.Image = top.Image
		
		
		if plr:FindFirstChild("Design") then
			plr.Design:Destroy()
			
			clone.Parent = plr
		else
			clone.Parent = plr
		end
	end
end
1 Like

This topic belongs to #help-and-feedback:scripting-support

Make a remote event and fire all the clients to show the voting gui.

Thats not what I need. I need to create a imagelabel for each player to show the players design (Which is in a gui)

you can use a remote to FireAllClients() from the server side, and have a local script on the client that does something whenever its fired, such as:

remote.OnClientEvent:Connect(function()

local plr = game.Players.LocalPlayer

plr.PlayerGui.uiYouWantToShow.Visible = true

end)

Again, not trying to do that. I dont need to turn on a gui for all players. I need to make a gui for every player in the server to see there design (its a fashion game) and then players vote there favourite

so you want to let players send whatever they made to all of the players in the server?

1 Like

you should put the for loop above the while true do loop