I cannot move my mouse on a dev product purchase prompt, please help!

my game is in first person and when this prompt shows up for a donation board, i cannot move my mouse at all like i can on a shirt prompt, how can i fix this?
image_2021-08-01_145859

Either unlock the mouse when they click it, and lock it again when the prompt closes.
Or if you have GUI, you could set one in there to have
Model = true
and it will let the mouse move freely until it’s set back to false.

how would you unlock it when they click it?

Sorry for the late response, what are you using to prompt the player for the purchase?

I have this issue in my own game as well. I fixed it by having a fully transparent text button called modal under a utilities screen gui. (Make sure to disable reset on spawn) Before I prompt the purchase I call:

player.PlayerGui.Utilities.Modal.Visible = true

Then I connect to MarketplaceService.PromptPurchaseEnded like so:

MarketplaceService.PromptPurchaseFinished:Connect(function (player, assetID, isPurchased)
	print('PROMPT PURCHASE ENDED')
	
	player.PlayerGui.Utilities.Modal.Visible = false
	print(player.PlayerGui.Utilities.Modal.Visible)
end)

Hope this helps you you implement a modal gui button like @MrLonely1221 mentioned. PlayerGui can be edited on client and server so this is by far the best solution, and you can use it again when you need to unlock the player’s mouse.

1 Like