Making a cannon that always follows the mouse cursor?

What do I want to achieve?

I would like to make a cannon that is always following the mouse cursor and can damage players / ships.

Exactly like what is in this game: (UPDATE!) [Beta] Warships! - Roblox

I am asking this so that I can make a battleship type game like the one linked above :slight_smile:

Anyhting will help!

Set the CFrame of the camera to the CFrame.lookAt(Cannon.CFrame, Mouse.Hit)

and bind it to RenderStepped

1 Like