Universal Script πŸ“Œ
2.8k Views
34 Executions

Small UNC and Executor Test

Universal Script πŸ“Œ
SubnauticaLaser
SubnauticaLaserPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Tests your executor for a few checks

View Raw
local passes, fails, undefined = 0, 0, 0
local running = 1



local uncTestV2 = {}



uncTestV2.getGlobal = function(path)
	local value = getfenv(0)

	while value ~= nil and path ~= "" do
		local name, nextValue = string.match(path, "^([^.]+)%.?(.*)$")
		value = value[name]
		path = nextValue
	end

	return value
end



uncTestV2.startV1 = function(name, aliases, callback)
	running += 1

	task.spawn(function()
		if not callback then
			print("⏺️ " .. name)
		elseif not uncTestV2.getGlobal(name) then
			fails += 1
			warn("β›” " .. name)
		else
			local success, message = pcall(callback)

			if success then
				passes += 1
				print("βœ… " .. name .. (message and " β€’ " .. message or ""))
			else
				fails += 1


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
137.9k
417.5k
9 months ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.9M
962.8k
1 year ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Script hub
96
4
2 days ago
Key System
Paid
Script hub
3.0M
14.6M
3 years ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM - MM2, FTF, Forsaken, etc.

Script hub
278
9
2 days ago
Key System