local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local GUI = script.Parent.MainGUI
Mouse.KeyDown:connect(function(key)
if key == "f" and GUI.Visible == false then
GUI.Visible = true
elseif key == "f" and GUI.Visible == true then
GUI.Visible = false
end
end)
For some reason, ROBLOX only recognizes LocalPlayer, and Player1 (The Test For Roblox Studio) what should I use to replace LocalPlayer, so that everyone can open the shop?

1 comment
Put it into a codeblock by clicking the Lua icon, then putting the code in between the squiggly lines. Simply edit your answer underneath your player on the right side.