Hello, recently I've been trying to look for a code that can show a GUI to a certain player when they join. Only this player can see the GUI and there is a close button for when they have read the text I have gave them. But, I've tried everything I know and google to try and find a script to do this, yet, I cant find or do anything for this to work.
Can anyone help?
Heres a simple way to do it. Basically you want to store the GUI into the ServerStorage, and then check the player's name that has just joined. If its the name of the player you want, you can clone the ScreenGui into their PlayerGui.
--//Services local serverStorage = game:GetService("ServerStorage") local players = game:GetService("Players") --//Functions local function onPlayerAdded(player) --the player who joined if player.Name == "Psudar" then local welcomeGui = serverStorage:WaitForChild("WelcomeGui"):Clone() welcomeGui.Parent = player.PlayerGui end end --//Connections players.PlayerAdded:Connect(onPlayerAdded)