Event don't work

script.Parent.ClickDetector.MouseClick:Connect(function(player)
	print('dfsfdsfds')
	game:GetService("MarketplaceService"):PromptBundlePurchase(player, 13496841999)
	
end)

Nothing is printing, I don’t know why but it’s the same for proximity prompt,any help?

What kind off script is it? and where is it located at?

image
Here is the Explorer

script.Parent.ClickDetector.Activated:Connect(function(player)
	print('dfsfdsfds')
	game:GetService("MarketplaceService"):PromptBundlePurchase(player, 13496841999)
end)

Not working either, but events don’t work one the place.

Is there any prints? charlilit

no, that why I said that event don’t work in the place, but could it be a bug in studio and not in roblox?

try in game and not on studio charlit

Not working in roblox either, what is roblox doing?

I suggest you using proximity prompt instead (Proximity Prompts | Roblox Creator Documentation) It’s a better solution since mobile players are able to see the prompt (whereas it’s not possible with ClickDetector).
Furthermore, it’s a more recent feature.

ProximityPrompt.TriggerEnded:Connect(function(player)

What is the max activation distance? Also this script worked perfectly fine with my roblox studio

If it’s possible, could you send a copy of your place? I want to check this further since it worked perfectly when I pasted your script into a new place.

Proximity prompt also don’t work, I don’t know why but event don’t work on the place

100, but event don’t work in the place

There is no “Activated” event on a ClickDetector. Does the print(‘dfsfdsfds’) print? It might just be MarketplaceService erroring if that’s the case.

I know that there are no activated event on a clickdetector, But using .Triggered for proximityPrompt or MouseClick for ClickDetector, nothing working, the event don’t trigger.

Also, I’ve tested for multiple script and nothing work. It’s not just MarketPlaceService

Honestly, just try sending a copy of the place at this point because I have no idea what is going on.

Does it work on other experiences on the platform or just your game(s)?

The script work in others games, but on this place this is not.