Universal Script πŸ“Œ
9.1k Views
24 Executions

unc test (open source)

Universal Script πŸ“Œ
therealpatrick
therealpatrickFirst script
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

test

Updates

  1. Script edited: Create script

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

local function getGlobal(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

local function test(name, aliases, callback)
	running += 1

	task.spawn(function()
		if not callback then
			print("⏺️ " .. name)
		elseif not 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
				warn("β›” " .. name .. " failed: " .. message)
			end
		end
	
		local undefinedAliases = {}
	
		for _, alias in ipairs(aliases) do
			if getGlobal(alias) == nil then


Comments

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

Tags

More universal scripts

See all
Script hub
5.6M
1.1M
Bumped 2 hours ago
Key System
Script hub
34
3
4 hours ago
Key System
Universal Script πŸ“Œ
10.0k
35.3k
Bumped 5 hours ago
Script hub
3.9M
496.6k
Bumped 8 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*

Universal Script πŸ“Œ
3.6k
18.7k
Bumped 8 hours ago
Key System
Universal Script πŸ“Œ
1.9k
13.6k
Bumped 8 hours ago
Script hub
832
6.7k
Bumped 9 hours ago
Key System