In StarterPack, I have “Sign” and “GoldSign”. When the player joins, it checks if they have the gamepass for the golden sign, and if they do, the normal sign is disabled. Meaning if they don’t have the gamepass, the golden sign gets disabled. However, this doesn’t work. I don’t get any errors, it’s just doesn’t work.
Script (inside ServerScriptService)
local gps = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if gps:UserOwnsGamePassAsync(player.UserId, 16248758) then
player.Backpack.Sign.Enabled = false
else
player.Backpack.GoldSign.Enabled = false
end
end)
local gps = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if gps:UserOwnsGamePassAsync(player.UserId, 16248758) then
player.Backpack.Sign:Destroy()
player.StarterPack.Sign:Destroy()
else
player.Backpack.GoldSign:Destroy()
player.StarterPack.GoldSign:Destroy()
end
end)
local gps = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if gps:UserOwnsGamePassAsync(player.UserId, 16248758) then
player.Backpack:WaitForChild("Sign"):Destroy()
player.StarterPack:WaitForChild("Sign"):Destroy()
else
player.Backpack:WaitForChild("GoldSign"):Destroy()
player.StarterPack:WaitForChild("GoldSign"):Destroy()
end
end)