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

0

What should it do and what happens?

0

Please use print("test") print("test1") to see where the code stops

0

It should remove the button that prevent from x2 prestiging and nothing is happening

0

Also when i try to use print it doesn't even show at the console and at output

0

Maybe try MarketPlaceService with P not p

0

it says that it doesn't know MarketPlaceServive but if i put MarketplaceService it finds it