Help with making mobile click and Button click in same script

Hello, i am trying to make it where a script happens either if mobile clicks a button or pc Keybind gets Hit in one script instead of 2 different scripts any help?

script.Parent.Parent["Mobile Buttons"].EquipLight.MouseButton1Click:Connect(function()
		

Plr:GetMouse().KeyDown:Connect(function(f)
	if f == "f" then 

im using keydown because it works better for what im using

2 Likes

I am not sure that you can detect the specific device.