local player = game:GetService("Players").LocalPlayer
local market = game:GetService("MarketplaceService")
if market:UserOwnsGamePassAsync(player.UserId, 11100023) then
game.Workspace:FindFirstChild("GamepassDoor"):Destroy()
else
game.Workspace.GamepassDoor.Touched:Connect(function()
market:PromptGamePassPurchase(player, 11100023)
end)
end
This might be the result because you tried to destroy a door that you already destroyed beforehand. Have you tried making the script just make the door transparent and non-collidable?