Please help (there is no error at the console)
local id = 14587261
local prestigex2 = script.Parent.PrestigeX2
local prestigex2GamePassPromptButton = script.Parent.prestigex2ownedornah
local gui = script.Parent
game.Players.PlayerAdded:Connect(function(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, id) then
prestigex2.Visible = true
prestigex2.Active = true
prestigex2GamePassPromptButton:Destroy()
if gui:FindFirstChild(prestigex2GamePassPromptButton) then
prestigex2GamePassPromptButton.Visible = false
prestigex2GamePassPromptButton.Active = false
end
end
end)
(It's in a localscript)

6 comments
What should it do and what happens?
Please use print("test") print("test1") to see where the code stops
It should remove the button that prevent from x2 prestiging and nothing is happening
Also when i try to use print it doesn't even show at the console and at output
Maybe try MarketPlaceService with P not p
it says that it doesn't know MarketPlaceServive but if i put MarketplaceService it finds it