Hi, i'm trying to make a screen Gui popup only for new players. I want it to be activated when They click the play button and if they are a new player it will come up.
✓ ANSWER ACCEPTED
Screen Gui pop up for new players ONLY How to??
1 answer
✓ Accepted answer
It would require some sort of a datastore system. Make the default data with a value like JoinedBefore = false.
once they click the button, you could do something like
function clickedbutton()
if RemoteFunction:InvokeServer() == "First_Time" then
frame.visible = true
end
end
from the server it may look like
function RemoteFunction.OnServerInvoke(player)
if data[player].JoinedBefore == false then
data[player].JoinedBefore = true -- change it so it wont run again after this one time
return "First_Time"
else
return "Returning_Player"
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
It didn't work. most of it was underlined in blue
this would be an example of how you could do it, you will have to edit it to fit your datastore system and ui
Alright thanks I will start editing
I change data to my datastore added an end after function on second script. but remotefunction keeps getting underlined
you should read the code, understand it, and completely rewrite it. remote function is referring to an actual remote function which i have never defined. there are also other ways to use onserverinvoke you could search up in case i've made a mistake
i know i said to edit it to fit but its not really made to be edited, but rather a reference for you to understand a possible way to make it
ok