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

Help with GUI??

Asked by 10 years ago

I'm looking to create a shortcut to opening my game's PDA GUI. The shortcut will be the press of the key, "u"???

I would greatly appreciate it if someone would help me out with this...

Please provide where to put all these things. (make it so it will be in workspace if can)

Thanks for the help!

2 answers

Log in to vote
0
Answered by 10 years ago

You can use the GetMouse function. Then use the KeyDown or KeyUp event of the mouse Check if the argument is u.

Clone the gui into their PlayerGui(If they don't have it yet) Using the clone method.

Ad
Log in to vote
0
Answered by 10 years ago

I have this but I don't know how to make a ScreenGui to come up and where to put this script.

local Player = Game.Players.LocalPlayer; local mouse = Player:GetMouse();

Mouse.KeyDown:connect(function(Key) if (Key:lower() == "u") then

end

end

Answer this question