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"
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!