I am not quite sure on how to do this. I want to make it into an if statement.
you can check that by using this script
local datastore_service = game:GetService("DataStoreService") local firstjoin_store = datastore_service:GetDataStore("FirstJoinDatastore") game:GetService("Players").LocalPlayer.PlayerAdded:connect(function(player) local bool = false bool = firstjoin_store:GetAsync(player.UserId) if bool == false then print("first time player joins") firstjoin_store:SetAsync("true", player.UserId) elseif bool == true then print("player has joined before") end end
hope that script helps you, i know it might be inefficiant but it works,
edit: removed that old stinky instance.new
As Doob_yyus mentioned, I suggest using DataStores, so that whenever a player enters the game, it checks if the player has the BoolValue set to true(or use numbervalues) if false then set to "True"