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

Saving a image id in a Image when server ends?

Asked by 4 years ago

Before you say anything horrible title.

Let me explain, for this group I am working on they essentially want a GUI that shows a image. The Image that gui is showing is one a hr puts into a different gui; via a Image ID. I already have all that worked out; however I'm trying to find a way to save said ID. I'm looking to save that ID so when a new server starts the previous inputted ID will be there. Any ideas?

0
You can have a function run when a server ends using :BindToClose() What do you mean by saving? royaltoe 5144 — 4y
0
You can save the ID to datastore and then when a new server opens get that image from the datastore royaltoe 5144 — 4y
0
Like if they put in the ID like 3813498 for the image; when a new server starts the id will still be there for the image Corrupt_Systems 12 — 4y
0
do you want it to save per player or do you want some global image across servers? royaltoe 5144 — 4y
View all comments (4 more)
0
and can't write out a proper response since im going to bed the advice i wrote in the comments should get you going just cant provide the code right now royaltoe 5144 — 4y
0
It's not playerdata; it's more of a server wide thing. I'm using remotes to fire the ID to all clients. Corrupt_Systems 12 — 4y
0
alright then save one id to the datastore royaltoe 5144 — 4y
0
and load the most recent id since shutdown royaltoe 5144 — 4y

Answer this question