So I am making a 3rd Person shooter game, and I am making a button that is activated with the key "K" so when you press "K" a Gui frame pops so I tried making that in a local script inside StarterGui here's the script
game:GetService("UserInputService").InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.K then
game.StarterGui.ShopGui.Frame.Visible = true-- Turns on frame
end
end)
I can't figure why it won't work
