Help with First Time Gui

Hi, I need to EXPLANATE, not write a script on how to create a first time gui based on the tutorial, so it will get visible only if it’s new, I repeat once again (for those who might think I want a script from someone) I need to explain it Please

Thank you

You need to use DataStore to save when player joins for the first time and then u enable the gui if player has no data

3 Likes

While a DataStore would be the more reliable option (as players can delete their badges), an alternate solution would be to award every player that joins a badge, you can then check if the player owns this badge to determine if they have visited the game before.

local badges = game:GetService("BadgeService")
local userHasBadge = badges.UserHasBadgeAsync

local players = game:GetService("Players")
local player = players.LocalPlayer

local badgeId = 0 --Change to ID of badge.

local success, result = pcall(userHasBadge, badges, player.UserId, badgeId)
if success then
	if result then
		print(player.Name.." has played before.")
	else
		print(player.Name.." has not played before.")
	end
end