When the player joins the server, the player has a gui in the PlayerGui area.
HOWEVER... when the player resets, that gui is removed. So I want this script to automatically see if the player has that gui in PlayerGui, and add it into PlayerGui if it is not there. But... I can not get it to work.
Coding For The Script That Adds The Gui If It Does Not Find It In PlayerGui:
Please Note: This Is A LocalScript
--//LocalScript
repeat
wait(0.1)
local Player = game.Players.LocalPlayer
if Player.PlayerGui:FindFirstChild("MenuGUI") then
--Do Nothing If MenuGUI Is Already In PlayerGui
else
game.Workspace.MenuGUI:Clone().Parent = Player.PlayerGui --If It Does Not Find A "MenuGUI" In The PlayerGui, It Should Automatically Clone MenuGUI From Workspace And Place The Clone Into PlayerGui
end
until Player == nil

1 comment
Thank You So Much! :D