My problem is that I don’t know how to adapt the weapons to the mobile itself, more than anything else it is in the calculation to make that when pressing a button on mobile it shoots at the center of the screen
I tried to find solutions within the forum and some other pages but I have not found anything about it and the few tests that I did have not worked
Mouse.Button1Down:Connect(function()
local MouseP = Mouse.Hit.p
game.ReplicatedStorage.GunH:FireServer(MouseP, script.Parent)
end)
https://gyazo.com/a349e376a0f5cdbf99ea493e5c778d83 (Normal shoot)
https://gyazo.com/9d027fab9f42258511217ae1208e6e97 (Mobile shoot)