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