[OPEN SRC] YS HUB - SILENT AIM + FIRERATE AND MORE!

- Silent aim - Firerate and more!

publicluau Airdrop Arenaupdated

the risk scan cleared this script. it still noticed a few things:

risk 1/10 · safe

sends data to or loads code from raw.githubusercontent.com.

loadstring(game:HttpGet("https://pasteblox.com/raw/rmp5wqf4t9"))()
pbx pull rmp5wqf4t9raw link never changes · v1 live
open-src-ys-hub-silent-aim-firerate-and-more.luau
type Disposable = RBXScriptConnection | Instance | thread | (() -> ())
type CleanupBag = {
	items: { Disposable },
	closed: boolean,
	add: (self: CleanupBag, item: Disposable) -> Disposable,
	clean: (self: CleanupBag) -> (),
	guard: (self: CleanupBag, callback: (...any) -> ()) -> (...any) -> (),
}

local AIRDROP_ARENA_PLACE_ID = {84007344535700, 93091759101123}
if not table.find(AIRDROP_ARENA_PLACE_ID, game.PlaceId) then
	warn(`This script is for Airdrop Arena ({table.concat(AIRDROP_ARENA_PLACE_ID, ", ")}).`)
	return
end

local function notifyMissingCapabilities()
	local StarterGui = game:GetService("StarterGui")
	task.spawn(function()
		for _ = 1, 10 do
			local sent = pcall(function()
				StarterGui:SetCore("SendNotification", {
					Title = "YS HUB - AIRDROP ARENA",
					Text = "Your current executor is missing required capabilities.",
					Duration = 6,
				})
			end)
			if sent then
				return
			end
			task.wait()
		end
	end)
end

local getgenv = getgenv
local hookfunction = hookfunction
local newcclosure = newcclosure
local loadstring = loadstring
local requiredCaps = { getgenv, hookfunction, newcclosure, loadstring }
local capable = true
for index = 1, #requiredCaps do
	if type(requiredCaps[index]) ~= "function" then
		capable = false
		break
	end
end
if not capable then
	notifyMissingCapabilities()
	return
end

local env = getgenv()
if type(env) ~= "table" then
	notifyMissingCapabilities()
	return
end

local function report(message: string)
	warn(message)
end

local previous = rawget(env, "silentAimSession")
if previous ~= nil then
	local unloadPrevious = if type(previous) == "table" then rawget(previous, "unload") else nil
	if
		not (
			type(previous) == "table"
			and rawget(previous, "purpose") == "silent-aim"
			and rawget(previous, "schema") == 1
			and type(unloadPrevious) == "function"
		)
	then
		report("silent aim session key is occupied")
		return
	end
	local unloaded, problem = pcall(unloadPrevious)
	if not unloaded then
		report(`previous session did not unload: {problem}`)
		return
	end
end

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local HttpService = game:GetService("HttpService")
local Workspace = game:GetService("Workspace")
local localPlayer = Players.LocalPlayer
local gameScope = game.GameId

local CONFIG = {
	fieldOfView = 360,
	maxStuds = 1000,
	wallCheck = true,
	aimHead = true,
	showCircle = true,
	snapProjectile = true,
	fireRate = 1,
	toggleKey = Enum.KeyCode.LeftAlt,
	halcyonPin = "https://raw.githubusercontent.com/ScriptsForDays/Halcyon/"
		.. "11afb3c726ea4ebecf4177b27c1b961b26a5f495/dist/Halcyon.luau",
	halcyonCache = "silentAim/Halcyon.luau",
}

local SETTINGS_FOLDER = "silentAim"
local SETTINGS_VERSION = 1
local SETTINGS_FIELDS = {
	fieldOfView = { min = 40, max = 700 },
	wallCheck = {},
	aimHead = {},
	showCircle = {},
	snapProjectile = {},
	fireRate = { min = 1, max = 20 },
	lockCursor = {},
	silentAim = {},
}

local TARGETS = {
	scripts = { "Scripts" },
	model = { "Scripts", "Model" },
	manager = { "Scripts", "Manager" },
	util = { "Scripts", "Util" },
	enums = { "Scripts", "Enums" },
}

local session
local preferences = {
	fieldOfView = CONFIG.fieldOfView,
	wallCheck = CONFIG.wallCheck,
	aimHead = CONFIG.aimHead,
	showCircle = CONFIG.showCircle,
	snapProjectile = CONFIG.snapProjectile,
	fireRate = CONFIG.fireRate,
	lockCursor = false,
	silentAim = false,
}

local Bag = {}

local function release(item: Disposable)
	if type(item) == "function" then
		item()
	elseif type(item) == "thread" then
		if item ~= coroutine.running() and coroutine.status(item) ~= "dead" then
			task.cancel(item)
		end
	elseif typeof(item) == "Instance" then
		item:Destroy()
	else
		item:Disconnect()
	end
end

function Bag.add(self: CleanupBag, item: Disposable): Disposable
	if self.closed then
		release(item)
	else
		table.insert(self.items, item)
	end
	return item
end

function Bag.clean(self: CleanupBag)
	self.closed = true
	local items = self.items
	self.items = {}
	for index = #items, 1, -1 do
		xpcall(release, function(problem)
			report(`cleanup: {problem}`)
		end, items[index])
	end
end

function Bag.guard(self: CleanupBag, callback: (...any) -> ()): (...any) -> ()
	return function(...)
		if self.closed or not session.alive then
			return
		end
		callback(...)
	end
end

function Bag.new(): CleanupBag
	return {
		items = {},
		closed = false,
		add = Bag.add,
		clean = Bag.clean,
		guard = Bag.guard,
	}
end

local root = Bag.new()
local originals: { [string]: (...any) -> ...any } = {}
local hooked = {}

local function unload()
	if not session.alive then
		return
	end
	session.alive = false
	session.on = false
	session.aimPosition = nil
	session.aimPart = nil
	for index = #hooked, 1, -1 do
		local record = hooked[index]
		if record.target and record.original then
			pcall(hookfunction, record.target, record.original)
		end
	end
	table.clear(hooked)
	table.clear(originals)
	root:clean()
	if rawequal(rawget(env, "silentAimSession"), session) then
		rawset(env, "silentAimSession", nil)
	end
end

session = {
	purpose = "silent-aim",
	schema = 1,
	alive = true,
	on = false,
	aimPosition = nil,
	aimPart = nil,
	unload = unload,
}
rawset(env, "silentAimSession", session)

local function resolve(parent: Instance, path: { string }, timeout: number): Instance?
	local node = parent
	for _, name in path do
		local child = node:WaitForChild(name, timeout)
		if not child then
			return nil
		end
		node = child
	end
	return node
end

local function acceptSetting(key: string, value: any): boolean
	local default = preferences[key]
	if type(default) ~= type(value) then
		return false
	end
	local field = SETTINGS_FIELDS[key]
	if not field then
		return false
	end
	if type(value) == "number" then
		if value ~= value or math.abs(value) == math.huge then
			return false
		end
		if field.min ~= nil and value < field.min then
			return false
		end
		if field.max ~= nil and value > field.max then
			return false
		end
	end
	return true
end

local settingsStatus = "unavailable"
local settingsProblem = "Settings storage is unavailable"
do
	local readfile, writefile, isfile, isfolder, makefolder =
		readfile, writefile, isfile, isfolder, makefolder
	local persistent = isfile
		and writefile
		and readfile
		and isfolder
		and makefolder
		and gameScope > 0
	if persistent then
		local path = `{SETTINGS_FOLDER}/{gameScope}.json`
		local loaded, body = pcall(function()
			return if isfile(path) then readfile(path) else nil
		end)
		if not loaded then
			settingsStatus, settingsProblem = "unsaved", "Settings file could not be read"
		elseif body ~= nil then
			local decoded, stored = pcall(HttpService.JSONDecode, HttpService, body)
			if
				decoded
				and type(stored) == "table"
				and type(stored.values) == "table"
				and stored.version == SETTINGS_VERSION
				and (stored.gameId == nil or stored.gameId == gameScope)
			then
				for key in preferences do
					if acceptSetting(key, stored.values[key]) then
						preferences[key] = stored.values[key]
					end
				end
				settingsStatus, settingsProblem = "saved", nil
			else
				settingsStatus, settingsProblem = "unsaved", "Settings file is malformed"
			end
lines 1–300 of 1,044open raw find-in-page only searches the lines loaded so far. "show all" loads the rest.

changelog

1 version
  1. first version

    live

    @yamis_scripts·