跳转到内容
可用Misc

open source counterblox unlock all + my loadout

POPooPoo471 次浏览Counter Blox2026年7月16日
分享
open source counterblox unlock all + my loadout

脚本代码

Lua
local LocalPlayer = game:GetService("Players").LocalPlayer
local Client = getsenv(LocalPlayer.PlayerGui.Client)

local HttpService = game:GetService("HttpService")
local Data = require(game:GetService("ReplicatedFirst").Data)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local InventoryController = require(ReplicatedStorage.Controllers.InventoryController)

local SkinsTable, CTLoadout, TLoadout = (function()
	local Skins = {}
	for Index, Value in ReplicatedStorage.Skins:GetChildren() do
		if Value:IsA("Folder") then
			local GunName = Value.Name
			for _, Skin in Value:GetChildren() do
				local SkinName = Skin.Name
				if SkinName ~= "Stock" then
					Skins[HttpService:GenerateGUID(false)] = {
						GunName .. "_" .. SkinName
					}
				end
			end
		end
	end

	for Index, Value in ReplicatedStorage.Gloves:GetChildren() do
		if Value:IsA("Folder") and Value.Name ~= "Model" then
			local GloveName = Value.Name
			for _, Skin in Value:GetChildren() do
				local SkinName = Skin.Name
				Skins[HttpService:GenerateGUID(false)] = {
					GloveName .. "_" .. SkinName
				}
			end
		end
	end

	local TWeapons = {
		"Glock", "DualBerettas", "P250", "Tec9", "CZ", "DesertEagle", "R8",
		"Nova", "XM", "SawedOff", "M249", "Negev",
		"MAC10", "MP7", "MP7-SD", "UMP", "P90", "Bizon",
		"Galil", "AK47", "Scout", "SG", "AWP", "G3SG1",
		"Kevlar Vest", "Kevlar + Helmet",
		"Molotov", "Decoy Grenade", "Flashbang", "HE Grenade", "Smoke Grenade"
	}

	local CTWeapons = {
		"P2000", "USP", "DualBerettas", "P250", "FiveSeven", "CZ", "DesertEagle", "R8",
		"Nova", "XM", "MAG7", "M249", "Negev",
		"MP9", "MP7", "MP7-SD", "UMP", "P90", "Bizon",
		"Famas", "M4A4", "M4A1", "Scout", "AUG", "AWP", "G3SG1",
		"Kevlar Vest", "Kevlar + Helmet", "Defuse Kit",
		"Incendiary Grenade", "Decoy Grenade", "Flashbang", "HE Grenade", "Smoke Grenade"
	}

	local IsWeaponFundedInThisTeam = function(Team, Gun)
		if Team == "T" then
			if table.find(TWeapons, Gun) then
				return true
			end
		elseif Team == "CT" then
			if table.find(CTWeapons, Gun) then
				return true
			end
		end
	end

	for Index, Value in Skins do

		local Weapon, Skin = table.unpack(string.split(Value[1], "_"))[1]
		if IsWeaponFundedInThisTeam("CT", Weapon) then
			Client.CTLoadout[Index] = Value
		end
		if IsWeaponFundedInThisTeam("T", Weapon) then
			Client.TLoadout[Index]	 = Value
		end
	end

	return Skins
end)()


local Old; Old = hookfunction(Data.GetData, function(Type, ...)
	if Type ~= nil then
		local ToReturn = Old(Type, ...)
		for Index, Value in SkinsTable do
			ToReturn[tostring(Index)] = Value
		end
		return ToReturn
	end
	return Old(Type, ...)
end)

for Index, Value in getconnections(ReplicatedStorage.Events.InventoryAndLoadout.OnClientEvent) do
	local Function = Value.Function
	if Function then
		local Old; Old = hookfunction(Function, function(Type, Skins, ...)
			if Type == "CTLoadout" then
				Skins = Client.CTLoadout
			elseif Type == "TLoadout" then
				Skins = Client.TLoadout
			elseif Type == "Inventory" then
				Skins = SkinsTable
			end
			return Old(Type, Skins, ...)
		end)
	end
end

local Old; Old = hookmetamethod(game, "__namecall", function(self, ...)
	local Method = getnamecallmethod()
	local Args	 = {...}
	if Method == "FireServer" then
		if self and self.Name == "DataEvent" then
			local Table = Args[1]
			if Table[1] == "EquipItem" then

				if Table[2] ~= "Both" then
					local SkinFolder = LocalPlayer.SkinFolder[Table[2] .. "Folder"]
					local Weapon, Skin = table.unpack(string.split(Table[4][1], "_")) -- wow.
					if Table[3] == "Knife" or Table[3] == "Glove" then
						SkinFolder[Table[3]].Value = Skin

						local Loadout = Client[Table[2] .. "Loadout"]
						if Loadout then
							Loadout[Table[3] .. "Over"] = true
							Loadout[Table[3]] = {
								tostring(Weapon .. "_" .. Skin) 
							}
							-- print(Loadout[Table[3]])
							-- print("nigga")
						end
					else
						SkinFolder[Weapon].Value = Skin
					end
				else
					for Index, Value in {"CT", "T"} do
						local SkinFolder = LocalPlayer.SkinFolder[Value .. "Folder"]
						local Weapon, Skin = table.unpack(string.split(Table[4][1], "_")) -- wow.
						if Table[3] == "Knife" or Table[3] == "Glove" then
							SkinFolder[Table[3]].Value = Skin
							local Loadout = Client[Value .. "Loadout"]
							if Loadout then
								Loadout[Table[3] .. "Over"] = true
								Loadout[Table[3]] = {
									tostring(Weapon .. "_" .. Skin)
								}
							end
						else
							SkinFolder[Weapon].Value = Skin
						end
					end
				end

			end
		end
	end

	return Old(self, ...)
end)

task.wait(2)

local skinFolders = {
	CT = LocalPlayer.SkinFolder.CTFolder,
	T  = LocalPlayer.SkinFolder.TFolder,
}

local function setskin(team, weaponName, skinName)
	local folder = skinFolders[team]
	if folder and folder:FindFirstChild(weaponName) then
		folder[weaponName].Value = skinName
	end
end
setskin("CT", "Karambit", "Drop-Out")
setskin("T", "Karambit", "Drop-Out")
setskin("CT", "DesertEagle", "DropX")
setskin("T",  "DesertEagle", "DropX")
setskin("T",  "AK47", "Eve")
setskin("CT", "M4A4", "Flashy Ride")
setskin("CT", "Scout", "Aurora")
setskin("T",  "Scout", "Aurora")
setskin("CT", "AWP", "Difference")
setskin("T",  "AWP", "Difference")

task.wait(2)

firesignal(ReplicatedStorage.Events.InventoryAndLoadout.OnClientEvent, "Inventory", SkinsTable)
firesignal(ReplicatedStorage.Events.InventoryAndLoadout.OnClientEvent, "CTLoadout", Client.CTLoadout)
firesignal(ReplicatedStorage.Events.InventoryAndLoadout.OnClientEvent, "TLoadout", Client.TLoadout)

描述

i made ts tuff loadout

评论 (0)

登录以参与讨论

  • 成为第一个评论的人。

常见问题

如何使用 open source counterblox unlock all + my loadout 脚本?
复制上方的脚本代码,在 Roblox 中进入 Counter Blox,然后将代码粘贴到你的执行器中并执行。脚本运行后功能会立即生效。
open source counterblox unlock all + my loadout 还能用吗?
可以 — open source counterblox unlock all + my loadout 目前标记为可用(最近更新:2026年10月16日)。如果在 Roblox 更新后失效,请稍后回来查看修复版本。
哪个执行器兼容 open source counterblox unlock all + my loadout?
此脚本兼容大多数热门 Roblox 执行器。查看我们的执行器页面,为你的设备找到可信的免费或付费执行器。