Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I refresh the whole player and not just the character?

Is there a way of refreshing the entire player so that all of their GUIs are deleted except for the default ones?

2 answers

Maybe this will work

local Players = game:GetService("Players")

for i, gui in pairs(Players:GetDescendants()) do
	if gui:IsA("ScreenGui") and not gui.Name == "Chat" and not gui.Name == "FreeCam" and not gui.Name == "BubbleChat" then
		gui:Destroy()
	end
end

2 comments

0

Nope, doesn't work.

0

: (

This discussion is preserved as it was. New answers, comments, and votes are closed.