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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
You need to use UIS (UserInputService). There is a link for it https://developer.roblox.com/en-us/api-reference/class/UserInputService
Ok