local w=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local z=game:GetService("\080\108\097\121\101\114\115")local function y(z)local y=w:FindFirstChild("\071\085\073\070\111\108\100\101\114")if y then for w,y in ipairs(y:GetChildren())do if y:IsA("\083\099\114\101\101\110\071\117\105")then local w=y:Clone()w.Parent=z:WaitForChild("\080\108\097\121\101\114\071\117\105")end end end end z.PlayerAdded:Connect(y)
-- server script (ServerScriptService)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local function loadGuis(player)
	local guisFolder = ReplicatedStorage:FindFirstChild("GUIFolder")
	if guisFolder then
		for _, gui in ipairs(guisFolder:GetChildren()) do
			if gui:IsA("ScreenGui") then
				local clonedGui = gui:Clone()
				clonedGui.Parent = player:WaitForChild("PlayerGui")
			end
		end
	end
end

Players.PlayerAdded:Connect(loadGuis)
