I'm awarding items from gamepasses and everything works except i can't seem to save them after death and rejoining the game.I've tried many different alternatives but to no avial.This script here is my latest attempt to make it work.
Thanks for your time.
local GC = player.Backpack:WaitForChild("GravityCoil",2)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if marketplaceService:PlayerOwnsAsset(player, gamePassId) then
if GC == nil then
GravityCoil:Clone().Parent = player.Backpack
end
end
end)
end)

3 comments
Unfortunately it doesn't work and i have no idea why
I've tried your way and when it didn't work i tried the script above and still no luck
What is wrong? Have you tried using print() statements, breakpoints, or checked the output?