RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a script that shows a gui to only the new players of the game"
-- server script (ServerScriptService) local Players = game:GetService("Players") local function onPlayerAdded(player) local playerGui = player:WaitForChild("PlayerGui") local newPlayerGui = game.ServerStorage.NewPlayerGui:Clone() if player:GetAttribute("isNewPlayer") == nil then player:SetAttribute("isNewPlayer", true) end if player:GetAttribute("isNewPlayer") then newPlayerGui.Parent = playerGui player:SetAttribute("isNewPlayer", false) end end Players.PlayerAdded:Connect(onPlayerAdded)