Converting PC controls To Mobile Controls

How would I (Semi) Easily convert my PC controls to Mobile controls

mouse.KeyDown:connect(function(key)
	if ntorso.Anchored == true then return end
	if disabled.Value == true then return end
	
	if key == "q" then
		standappear(stand)
		
	end
	if key == "t" then
		LegKick()
	end
	if key == "e" then
		barrage()
	end
end)

These all fire different functions. Is there an easy way to bind certain buttons to do certain things?
For example i create a button that does whatever T does when pressed
So when you press the button it basically means key == “t”

1 Like

This is literally the purpose of ContextActionService | Roblox Creator Documentation. The newer and better method, does it like key down but has a feature to add a touch button for that action.

you can use either ContextActionService or you can add a gui and use the MouseButton1Down but this method is kinda weird cuz somethines it doesnt register the input for MouseButton1Down

Yeah but im a bit new to it and have no idea how to do it. Could you provide an example? Just like do it for summon and legkick.