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

How do I check if somethings true after I checked if key is pressed down?

Asked by 5 years ago
Edited by Azarth 5 years ago

Ok, for example.

UIS = game.GetService("InputService")

UIS.InputBegan:connect(function(input)
    if input.KeyCode == Enum.Keycode.KeypadSeven then
        if arrowgui1 == true then 
            -- This gets skipped and just goes to the script instantly.
            print ("Cannot go left")
        end
    end
end)
0
it isnt being skipped. if its not working correctly then it isnt true. DinozCreates 1070 — 5y
0
yes, if statements don't get skipped...make sure the arrowgui1 value is what you are wanting it to be. ForeverBrown 356 — 5y
0
You haven't assigned a variable for "arrowgui1", therefore it can never be true. Norbunny 555 — 5y
0
please indent you code theking48989987 2147 — 5y

Answer this question