I'm making a game pass that gives the player a sword if they have the game pass. For some reason the script was working fine at first, but now it doesn't work at all.
Here is my script
local serivce = game:GetService("MarketplaceService")
local id = 7905956
game.Players.PlayerAdded:Connect(function(player)
if serivce:UserOwnsGamePassAsync(player.UserId,id) then
local clone = game.ReplicatedStorage.GamepassStorage["Master Sword"]:Clone()
clone.Parent = player.Backpack
end
end)
