Universal Script πŸ“Œ
259.4k Views
6.0k Executions

Script Verified UNC Test

Universal Script πŸ“Œ
vxsty
vxsty
Verified Badge
Verified User
OG
OG: invite only, given by Thunder Mods
Hall of Fame10M views
3 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

The Updated UNC Test, Since the old UNC test checks for getfenv(0) and not getgenv(), I've updated it to check for getgenv() functions. Update: I've removed the loadfile test from the UNC Test as its crashing moreunc. Original test: https://raw.githubusercontent.com/unified-naming-convention/NamingStandard/main/UNCCheckEnv.lua V1.0.1: Fixed the UNC Test! Now works on every executor that supports getgenv, Fixed it also ONLY working on MoreUNC (Update for MoreUNC coming soon.)

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

  4. Script edited: Update script

  5. Script edited: Update script

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

local function getGlobal(path)
	local value = getgenv and getgenv() or getfenv(2)

	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, target)
	running = running + 1

	task.spawn(function()
		if not callback then
			print("⏺️ " .. name)
		elseif not getGlobal(name) then
			fails = fails + 1
			warn("β›” " .. name)
		else
			local success, message = pcall(callback)
	        name = tostring(name)
			message = tostring(message)
			if success then
				passes = passes + 1
				print("βœ… " .. tostring(name) .. (tostring(message) and " β€’ " .. tostring(message) or ""))
			else
				fails = fails + 1
				warn("β›” " .. name .. " failed: " .. message)
			end
		end
	
		local undefinedAliases = {}
	
		for _, alias in ipairs(aliases) do


Comments

26
Log in to join the conversation. Login
The_script_user's profile picture
The_script_user3 years ago(edited)

idk what UNC means

3
Doovyious's profile picture
Doovyious1 month ago

Arceus has a 1% success rate πŸ’”

1
Ddd33's profile picture
Ddd334 months ago

W

1
fsido's profile picture
fsido8 months ago

0 out of 0 😭

1
zaynghozi's profile picture
zaynghozi9 months ago

the picture was solara btw solara garbage

1
W1kcsed's profile picture
W1kcsed9 months ago

99% Velocity

1
AETH's profile picture
AETH10 months ago

velocity 81 / 82πŸ’€ omg (its free excutor)

1

Tags

More universal scripts

See all
Script hub
55.5k
17.0k
Bumped 13 minutes ago
Key System
Paid
Script hub
43
2
Approved 50 minutes ago

Script hub

Kitty menu

Universal Script πŸ“Œ
2.2k
24.3k
Bumped 2 hours ago
Script hub
35
2
Approved 2 hours ago
Universal Script πŸ“Œ
1.4M
697.2k
Bumped 2 hours ago
Universal Script πŸ“Œ
50
13
Approved 2 hours ago