This is a script that will show if you donate but it won't work. Please help.

local mps = game:GetService("MarketplaceService")
local id = 971534148

script.Parent.MouseButton1Click:Connect(function(player)
	mps:PromptProductPurchase(game.Players.LocalPlayer,id)
	if mps:UserOwnsGamePassAsync(player.UserId, id) then
		script.Parent.Parent.Parent.Parent.DonatorsandAdminsGUI.MainFrame.Visible = true
	else
		script.Parent.Parent.Parent.Parent.DonatorsandAdminsGUI.MainFrame.Visible = false
	end
end)

Thanks.