Apple X Premium script SOURCE
Key Required

Apple X Premium script SOURCE

Police Academy Roleplay 2z3r0d4z3r0d4 1.2K views 218 executesUpdated May 25, 2026
2.9/ 5(7 votes)
4357% Positive
Lua Script•150 lines (4282 chars)
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local MarketplaceService = game:GetService("MarketplaceService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local VirtualUser = game:GetService("VirtualUser")

local LocalPlayer = Players.LocalPlayer
local UserId = LocalPlayer.UserId
local selectedItem = "All Items"

local displayRole = "Premium"

local UI_CONFIG = {
    HubName = "🍏 Apple X // " .. displayRole,
    LoadingTitle = "Injecting Apple X Modules...",
    LoadingSubtitle = "Welcome back, " .. displayRole .. " User!",
    DiscordInviteCode = "dFqH5jtpqt",
    TabMainName = "🚀 Purchase"
}

LocalPlayer.Idled:Connect(function()
    pcall(function()
        local randomKey = {"W", "A", "S", "D"}
        local key = randomKey[math.random(1, #randomKey)]
        local camera = workspace.CurrentCamera.CFrame
        VirtualUser:Button2Down(Vector2.new(0, 0), camera)
        task.wait(1)
        VirtualUser:Button2Up(Vector2.new(0, 0), camera)
    end)
end)

local PRODUCT_IDS = {
    ["All Items"] = {},
    ["Base Access"] = {3586407435},
    ["Boombox"] = {3586407519},
    ["Segway"] = {3586407613},
    ["Traffic Unit"] = {3586406184},
    ["Security Unit"] = {3586406279},
    ["Swat"] = {3586406379},
    ["Night Raider"] = {3585798325},
    ["Heavy Raider"] = {3586404839},
    ["Assault Raider"] = {3586405127},
    ["Scout Raider"] = {3586405220},
    ["Stealth Raider"] = {3586405350}
}

local function purchaseItems()
    local remotes = ReplicatedStorage:WaitForChild("Remotes")
    local events = remotes:WaitForChild("Events")
    local selectGiftPlayer = events:WaitForChild("SelectGiftPlayer")
    
    local originalConnections = {}
    
    if getconnections then
        pcall(function()
            for _, connection in ipairs(getconnections(selectGiftPlayer.OnClientEvent)) do
                if connection.Enabled then
                    connection:Disable()
                    table.insert(originalConnections, connection)
                end
            end
        end)
    end
    
    pcall(function()
        selectGiftPlayer:FireServer(LocalPlayer)
    end)
    
    task.wait(0.2)
    
    if selectedItem == "All Items" then
        local allProductIds = {3586407435, 3586407519, 3586407613, 3586406184, 3586406279, 3586406379, 3585798325, 3586404839, 3586405127, 3586405220, 3586405350}
        for _, productId in ipairs(allProductIds) do
            MarketplaceService:SignalPromptProductPurchaseFinished(UserId, productId, true)
        end
    else
        local productIds = PRODUCT_IDS[selectedItem]
        if productIds then
            for _, productId in ipairs(productIds) do
                MarketplaceService:SignalPromptProductPurchaseFinished(UserId, productId, true)
            end
        end
    end
    
    task.wait(1.5)
    
    pcall(function()
        for _, connection in ipairs(originalConnections) do
            connection:Enable()
        end
    end)
end

local success, Rayfield = pcall(function()
    return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
end)

if not success then
    warn("[Apple X] Failed to load Rayfield UI")
    return
end

local Window = Rayfield:CreateWindow({
    Name = UI_CONFIG.HubName,
    LoadingTitle = UI_CONFIG.LoadingTitle,
    LoadingSubtitle = UI_CONFIG.LoadingSubtitle,
    ConfigurationSaving = {
        Enabled = false
    },
    KeySystem = false
})

local Tab = Window:CreateTab(UI_CONFIG.TabMainName, 4483362458)

Tab:CreateSection("Select Items to unlock on yourself")

Tab:CreateDropdown({
    Name = "1. Select Item",
    Options = {
        "All Items",
        "Base Access",
        "Boombox",
        "Segway",
        "Traffic Unit",
        "Security Unit",
        "Swat",
        "Night Raider",
        "Heavy Raider",
        "Assault Raider",
        "Scout Raider",
        "Stealth Raider"
    },
    CurrentOption = "All Items",
    MultipleOptions = false,
    Callback = function(option)
        selectedItem = option[1]
    end
})

Tab:CreateSection("Execution")

Tab:CreateButton({
    Name = "💵 Purchase Selection",
    Callback = function()
        purchaseItems()
    end
})

Rayfield:LoadConfiguration()

Features & Information

Ty to the original owner for found it, i only dumped their premiumscript and remade the source (Ai helped me ofc, im lazy)

Community Comments (1)

WatchDemoWatchDemoMay 27, 2026

Not working