Facebook
From Burly Terrapin, 3 Years ago, written in Plain Text.
This paste is a reply to Abrir GUI con una tecla from EmanueleBM - go back
Embed
Viewing differences between Abrir GUI con una tecla and Re: Abrir GUI con una tecla
local frame = script.Parent.Parent.Frame
local tecla = Enum.KeyCode.F

local UIS = game:GetService("UserInputService")
local abrir = false

UIS.InputBegan:Connect(function(key)
        if key.KeyCode == tecla then
                if UIS:GetFocusedTextBox() == nil then
                        if abrir == false then
                                abrir = true 
                                frame.Visible = abrir
                        elseif abrir == true then
                                abrir = false 
                                frame.Visible = abrir
                        end
                end
        end
end)

script.Parent.MouseButton1Click:Connect(function()

                        if abrir == false then
                                abrir = true 
                                frame.Visible = abrir
                        elseif abrir == true then
                                abrir = false 
                                frame.Visible = abrir
                        end
end)