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

2 comments

0

You need to use UIS (UserInputService). There is a link for it https://developer.roblox.com/en-us/api-reference/class/UserInputService

0

Ok