I am trying to get a player’s inventory from studio itself. I have seen InventoryPages but it didn’t seem to be much of a help. By inventory I mean like the on site inventory.
He means their Roblox inventory, not the players backpack, and he never said anything about saving.
I don’t think you can access the players Inventory, since some players want their inventory to be private, and there isn’t a big need for that kind of feature.
Oh my bad I misread it. I thought he meant being able to access and change backpack tools.
Im trying to check if a player is verified by seeing if they have the bonified hat. Is there some way to get verification with the api then?
Not sure, I’ve never looked into checking verification.
If your trying to check account authentication, try using account age since it’s already built into the player. Pretty sure it’s like this
game.Players.LocalPlayer.AccountAge
It’s something age
Also If I’m not wrong, old acc won’t have the hat.
Hey, i know that there has been no response in 3 years. But if you still want to know how to this, you could take a look at marketplaceservice and check if the player has that item.
game:GetService("MarketplaceService"):PlayerOwnsAsset(player, assetId)
-- For this instance, AssetId should be the Bonified Hat. (102611803)
-- and Player is the player instance.
To use this in a real script, you could do something like this:
local marketPlaceService = game:GetService("MarketplaceService")
local plrs = game:GetService("Players")
local itemId = 102611803 -- The bonified hat
function playerAdded(plr)
local verified
if marketPlaceService:PlayerOwnsAsset(plr, itemId) then
verified = true
else
verified = false
end
end
plrs.PlayerAdded:Connect(playerAdded)
I hope this helped!