Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do You Make A GUI Visible By Clicking A Key?

How Can I Make It So If Someone Hits The Letter "G", A GUI Becomes Visible?

1 answer

✓ Accepted answer
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
 
Mouse.KeyDown:connect(function(key)
if key == "f" then
--YOUR CODE HERE
end
end)

I got this script from SlickPwner

7 comments

0

change that "f" to "g" since you want it to make it so you have to press g

0

....

0

SAY THANKS TO SLICKPWNER NOT ME!

0

alright thanks, it turns out i left out the LocalPlayer and Line 1.

0

look how much negatives I got..... for some reason...

0

..... im getting ALOT of NEGATIVES ..... for telling the RIGHT ANSWER!

0

it's because you're spoon feeding

This discussion is preserved as it was. New answers, comments, and votes are closed.