✓ Accepted answer
Looks like there's a couple of issues, with the first thing being the way you're referencing player.
"game.player" is essentially the same thing as game.Workspace. or game.StarterGui and since "game.player" doesn't exist, your script will throw an error.
Assuming this local script is inside of the PlayersGui it should be rewritten with:
game.Players.LocalPlayer
Now another issue is the fact you're using a LocalScript for an Instance that can't use LocalScripts. An easy fix to this is to put a regular Script inside of your Dialog Box, and add the following code:
script.Parent.DialogChoiceSelected.Response:connect(function(plr, choice)
plr.PlayerGui.ShopGui.Frame.Visible = true
end)
Assuming you don't have FE (Filtering Enabled) on, the script should work.
3 comments
I'll check
do i put the local script in the StarterGui or the ScreenGui?
You don't need a local script.