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

Why Isn't the roblox tool special ability not working?

Asked by 2 years ago

I am making a tool where If you press r or e a ability will show but Its not working, here Is the script:

local function Key(key)

if key then

    key = string.lower(key)

    if key == "r" then
        print("yes")
    end
end

end

0
You need to use UIS (UserInputService). There is a link for it https://developer.roblox.com/en-us/api-reference/class/UserInputService AProgrammR 398 — 2y
0
Ok imnotaguest1121 362 — 2y

Answer this question