I am working on mobile support for my game and I need keys to be pressed to activate things ex: summoning a stand. I want help on how to make the button a keypress.
local contextActionService = game:GetService("ContextActionService")
function QButton()
Enum.KeyCode.Q
end
local mobilebutton = contextActionService:BindAction("SummonStand",QButton,true,"Q")

3 comments
I have figured out that if I change line 3 to delete the map it creates a button and if you click it it will delete the map. So I only need help with making the button a keypress.
i think thats gonna be hard
You already have the 'ContextActionService'. There must be a button there somewhere.