you'll have to use a DataStore for this, check if the player already has existing data, and if not, the datastore will create new data for the player and you can add the code of cloning the GUI from preferably ServerStorage to the PlayerGui
This is just an example:
local s, e = pcall(function()
DataFromStore = DataStore("DataStore-" .. Player.UserId)
end)
if s then
print("the player have existing data, Getting Data For: " .. Player.Name)
if DataFromStore then
print("Data Loaded For: " .. Player.Name)
else
print("Created New Data For: " .. Player.Name)
end
else
warn("Error Getting Data For: " .. Player.Name)
end
end)
1 comment
Just as far as the GUI showing only once, you could do it several ways but adding a bool or some value would be an easy way of checking if a player completed the tutorial and you could datastore save it as well.