So, i made the Playerlist GUI invisible
game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", false)
How would i make it so when a player hits a certain key it opens to that player?
So, i made the Playerlist GUI invisible
game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", false)
How would i make it so when a player hits a certain key it opens to that player?
--Local Script
function KeyDownFunctions(key)
if key == "Q" then
game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", true)
end
if key == "E" then
game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", false)
end
end
Or try this
open = false
function KeyDownFunctions(key)
if key == "Q" then
game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", true)
open = true
end
if key == "E" then
game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", false)
open = false
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
And will this only make it Visible to the player that presses the key?
Let me edit it.