Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-6

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

Asked by 10 years ago

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

1 answer

Log in to vote
-8
Answered by 10 years ago
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

0
change that "f" to "g" since you want it to make it so you have to press g AWESOMEnoob3 3 — 10y
0
.... AWESOMEnoob3 3 — 10y
0
SAY THANKS TO SLICKPWNER NOT ME! AWESOMEnoob3 3 — 10y
0
alright thanks, it turns out i left out the LocalPlayer and Line 1. User#6200 10 — 10y
View all comments (3 more)
0
look how much negatives I got..... for some reason... AWESOMEnoob3 3 — 10y
0
..... im getting ALOT of NEGATIVES ..... for telling the RIGHT ANSWER! AWESOMEnoob3 3 — 10y
0
it's because you're spoon feeding User#19524 175 — 6y
Ad

Answer this question