Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Screen Gui pop up for new players ONLY How to??

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.

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

7 comments

0

It didn't work. most of it was underlined in blue

0

this would be an example of how you could do it, you will have to edit it to fit your datastore system and ui

0

Alright thanks I will start editing

0

I change data to my datastore added an end after function on second script. but remotefunction keeps getting underlined

0

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

0

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

0

ok

This discussion is preserved as it was. New answers, comments, and votes are closed.