#Doesn't give item in game

1 messages · Page 1 of 1 (latest)

vale pebble
#

On my account I was given 2 items, but other people's accounts were not given everything, for example, they got a speed coil but not a carpet, and vice versa.

local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")

local Gamepasses = {
[1434542256] = "FlyingCarpet",
[1434411788] = "SpeedCoil"
}

local VipPlayers = {
"aanastaria",
"imagine60hz",
"koncrett",
"villleenn223",
"Vevalsss"
}

local function isVIP(playerName)
for _, name in ipairs(VipPlayers) do
if string.lower(name) == string.lower(playerName) then
return true
end
end
return false
end

local function giveItem(player, toolName)
local backpack = player:WaitForChild("Backpack")
local tool = script[toolName]

if tool and not backpack:FindFirstChild(toolName) then
    tool:Clone().Parent = backpack
end

end

local function checkPasses(player)
for gamePassId, toolName in pairs(Gamepasses) do
local success, ownsPass = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassId)
end)

    if isVIP(player.Name) or (success and ownsPass) then
        giveItem(player, toolName)

        player.CharacterAdded:Connect(function()
            giveItem(player, toolName)
        end)
    end
end

end

Players.PlayerAdded:Connect(function(player)
task.wait(1)
checkPasses(player)
end)

MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, gamePassId, wasPurchased)
if wasPurchased and Gamepasses[gamePassId] then
giveItem(player, Gamepasses[gamePassId])
end
end)

quasi sandalBOT
#

studio** You are now Level 1! **studio

vale pebble
#

play in studio item appears

kindred acorn
#

🥀

#

He doesnt know what inventory is

#

Non custom backpacks only have 3 hotbars on mobile

#

You have to turn on inventory to see more

vale pebble
kindred acorn