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

How will I make a auto-updating script?

So I have an Admin Script I constantly add updates to my admin script, I want to see if I can add an auto-update script like require(id) But still let users set Admins and set a Kick message

local Admins = {["AwesomeBuilder346"] = true and local kickreason = "You have been kicked from the Game"

1 answer

✓ Accepted answer

The best method to do so would be to use the MarketplaceService. Example:

local version = game:GetService("MarketplaceService"):GetProductInfo(1234567)
print(version.Updated) --Will print when it was last updated

You can probably add an if statement to this though to make it work like you want it to or add on to it to make it auto-update using InsertService. More info here. Please accept my answer if this helped!

4 comments

0

I know but I alreadly have that, but I seen scripts like Kohls Admin Infinite where you can edit admins an other settings but the entire admin isn't in the script instead its require()

0

require() means that the script needs to function off of a ModuleScript's asset id basically

0

How would I do the settings?

0

That's all up to you, I just showed you an easy way to auto update a model.

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