Owner/Admin weapons

Lemme know if you want the script. I

1 Like

Sure, I’d love to see it!
Though i might not use the script lol

1 Like

–[[ X. CORPORATION PROPERTY - RAPID_GAMING22]]–

local GamePassId = 1234
local VipUserIds = {3487869788} – Add more user IDs as needed
local ToolNames = {“AK47”, “AR15”, “Honey Badger”, “MP-443 GRACH”, “Mk. 47”, “Mod MK119”, “PGM Hecate II”, “Tactical AK105”, “Upgraded M4A1”, “Wz. 96 Beryl”} – Add more gun names as needed

local function FindPlayer(userId)
for _, vipUserId in pairs(VipUserIds) do
if vipUserId == userId then
return true
end
end
return false
end

local function GiveToolsToPlayer(player)
local toolFolder = game.ServerStorage:FindFirstChild(“Data”) – Assuming the tools are in a folder named “Data”

for _, toolName in pairs(ToolNames) do
	if toolFolder and toolFolder:FindFirstChild(toolName) then
		local toolClone = toolFolder[toolName]:Clone()
		toolClone.Parent = player.Backpack
	end
end

end

game.Players.PlayerAdded:Connect(function(player)
local hasGamePass = game:GetService(“MarketplaceService”):UserOwnsGamePassAsync(player.UserId, GamePassId)
local isVipPlayer = FindPlayer(player.UserId)

if hasGamePass or isVipPlayer then
	player.CharacterAdded:Connect(function(character)
		GiveToolsToPlayer(player)
	end)

	if not player.Backpack:FindFirstChild(ToolNames[1]) then -- Check for one of the tools to ensure you're not duplicating them
		GiveToolsToPlayer(player)
	end
end

end)

print(“X. Corporation Services are used in this Game”)

1 Like