Ok so I have a radio similar to the one in the murder games that is a hat. I want someone to get this item if they have a certain game pass. Does anyone know how to do this. The hat is in the lighting section of the game. Please help! I know how to give a gear but not a hat.
The code I have so far is this but it doesn't work:
local id = 213469246
game.Players.PlayerAdded:connect(function(player)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, id) then
player.CharacterAdded:connect(function(character)
game.Lighting.Radio:clone().Parent = character
end)
end
end)
