I am trying to make it so my mobile players can aim guns and shoot the local script i am trying to do is this
local contextActionService = game:GetService(“ContextActionService”)
function onButtonPress()
end
local mobilebutton = contextActionService:BindAction(“Walkbutton”,onButtonPress,true,“Button2Down”)
contextActionService:SetPosition(“RunButton”,UDim2.new(0.75,-25,0.20,-25))
contextActionService:SetImage(“Walkbutton”,“rbxassetid://1171402807”)
To aim is mouse right button Hold to fire is left click mousebutton