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

how do i open my gui with Left Shift?

Asked by 4 years ago

ive been trying to make and find one for 3 days cant find any that work

1 answer

Log in to vote
0
Answered by 4 years ago

Next time lets be a bit more descriptive, but I think I know what you are talking about.

Gui = game:GetService(“ScreenGUI”)

game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.LShift then --Also, could be written as [[inputObject.KeyCode == "LShift"]]
        print("LShift was pressed")  -- I do not know if it is truly LShift but if you do go to Enum.KeyCode.LShift and type in “L” you should be able to see something about a left shift
    Gui.”YourGuiNameHere”.Frame.Visable = true -- Make sure that your GUI name does not have a space in the name
    end 
end)

Hope this works! If it doesnt let me know please,

            Have a good day, HissingSoldier
Ad

Answer this question