ScreenGui Reset without Character Resetting?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Make a StarterGui ScreenGui reset when I want it to instead of just ResetOnSpawn. Right now I am using game.StarterGui.ScreenGui to deal with Gui work because I want the gui changes to show for new players that join too. Yes I’m aware of remoteevents and such but couldnt figure out how to make them show frames/text before a player joins the server.

How can I make the screengui refresh without having the character reset?

1 Like

Additionally I tried to do a system that refreshes gui here is what I tried (and failed).

Serverscript:
RepStorage.RefreshGuiSystem:FireAllClients()

Local script:

game.ReplicatedStorage.RefreshGuiSystem.OnClientEvent:Connect(function()
local Gui = game:GetService(“StarterGui”).ScreenGui
Gui.Parent = game.ReplicatedStorage
local cl = Gui:Clone()
cl.Parent = game.StarterGui
end)

Update: I got the screengui to move to replicated storage however im not able to get it back to startergui and be visible.

Local Script:

local Gui = game:GetService(“StarterGui”).ScreenGui

game.ReplicatedStorage.RefreshGuiSystem.OnClientEvent:Connect(function(Player)

print(“YES”)

local Gui = Player.PlayerGui.ScreenGui

Gui.Parent = game.ReplicatedStorage

wait(.1)
– NOT WORKING VVV

local Gui2 = game.ReplicatedStorage.ScreenGui

local CloneGui2 = Gui2:Clone()

CloneGui2.Parent = game.StarterGui

end)

Players can’t see it if it’s in StarterGui you need to move it to individual players PlayerGui.
As long as I’m understanding what you want to do correct you need to change

CloneGui2.Parent = game.StarterGui

to

CloneGui2.Parent = Player.PlayerGui

Let me know if I’m understanding you wrong :slight_smile:

Edit: Grammar

2 Likes

Thanks so much! Such a simple fix yet I missed by it.

Appreciate the help :smiley: !

1 Like

You should use Player:WaitForChild(“PlayerGui”) as the client is not always loaded when scripts start.