Posts Script Updater
Post
Cancel

Script Updater

A script for updating other moonloader scripts.

Donwload

Setup your script

Firstly register your script (example script). You need to pass two direct links there. First one to a .zip file containing your mod files and second one to a text file containing the version text (or number). The version from this text file is compared with the version form script_version().

For google drive set link sharing on. You can get direct links to google drive files from here

Example script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
script_name('Test script 1')
script_author('Grinch_')
script_version("1.0")

function main()
	
	if (script.find('Script Updater')) then
		local updater = import 'script-updater.lua'
		updater.RegisterScript(script.this.name,"link1","link2") 
		-- link1 = link to .zip file containing the mod, 
		-- check this file https://drive.google.com/file/d/10ALplZ5vcXdx9uWQ2GjkBEx9FQep57vw/view?usp=sharing

		-- link2 = link to a version file
		-- check this file https://drive.google.com/file/d/1A8npxKJXNMrbuOWEqvV6PnGnED-9bkP9/view?usp=sharing
	end

	while true do
		wait(40)
		-- other code
	end
end

Screenshots

Screen

This post is licensed under CC BY 4.0 by the author.

Trending Tags