Universal Script 📌
257.6k Views
3.5k Executions

Script Verified UNC Test

Universal Script 📌
vxsty
vxsty
Verified Badge
Verified User
Hall of Fame10M views
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

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.)

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

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

idk what UNC means

3
Ddd33's profile picture
Ddd333 months ago

W

1
fsido's profile picture
fsido7 months ago

0 out of 0 😭

1
zaynghozi's profile picture
zaynghozi8 months ago

the picture was solara btw solara garbage

1
W1kcsed's profile picture
W1kcsed8 months ago

99% Velocity

1
AETH's profile picture
AETH9 months ago

velocity 81 / 82💀 omg (its free excutor)

1
ldar09373's profile picture
ldar093731 year ago

executor volcano has 98% unc

1

Tags

More universal scripts

See all
Script hub
2.3k
2.2k
Bumped 16 minutes ago
Key System
Universal Script 📌
26
1
Approved 26 minutes ago
Script hub
2.8M
661.5k
Bumped 1 hour ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
95
14
Approved 3 hours ago
Universal Script 📌
160
10
Approved 4 hours ago
Universal Script 📌
4.2k
185.8k
Bumped 10 hours ago