Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 1 year ago

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

Log in to vote
1
Answered by 1 year ago

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
0
It didn't work. most of it was underlined in blue theking66hayday 841 — 1y
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 BulletproofVast 1033 — 1y
0
Alright thanks I will start editing theking66hayday 841 — 1y
0
I change data to my datastore added an end after function on second script. but remotefunction keeps getting underlined theking66hayday 841 — 1y
View all comments (3 more)
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 BulletproofVast 1033 — 1y
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 BulletproofVast 1033 — 1y
0
ok theking66hayday 841 — 1y
Ad

Answer this question