-- 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)
