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

How will I make a auto-updating script?

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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!

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() AwesomeBuilder346 11 — 6y
0
require() means that the script needs to function off of a ModuleScript's asset id basically PyccknnXakep 1225 — 6y
0
How would I do the settings? AwesomeBuilder346 11 — 6y
0
That's all up to you, I just showed you an easy way to auto update a model. PyccknnXakep 1225 — 6y
Ad

Answer this question