In two areas of code I am fetching all players guis and making putting them into a frame, then putting the frames in a folder to be moved to another frame for everyone to see. But everytime it loads the gui its taking from the players are not what the player has. Its just loading the original gui and I dont know how to work around this.
Code to fetch gui:
for _, del in pairs(game.ReplicatedStorage.PlayerDesigns:GetChildren()) do
del:Destroy()
endwait()
for _, plr in pairs(game.Players:GetChildren()) do
local tag = script:FindFirstChild(“Template”)
local clone = tag:Clone()local top = plr.PlayerGui.Designing.Frame.Top local base = top.Base:Clone() base.Parent = clone.Design clone.Design.Image = top.Image clone.Parent = game.ReplicatedStorage.PlayerDesigns
Code To Fetch The Gui With The Players Gui Inside:
for _, players in pairs(game.Players:GetChildren()) do
for _, del in pairs(players.PlayerGui.Voting.Frame.Frame:GetChildren()) do if del:IsA("ImageLabel") then del:Destroy() end end for _, plr in pairs(game.ReplicatedStorage.PlayerDesigns:GetChildren()) do local clone = plr:Clone() clone.Parent = players.PlayerGui.Voting.Frame.Frame
Heres It In practice:
The Gui Before Editing, when players join the game
An Edited Gui Example:
The Gui The Script Makes That Dosen’t Seem To Update The Edited Look (the username part works but not the gui clone)