How to make first person water cannon

i would like to make a first person water cannon that shoots where ever you click or tap and stops shooting water when it is not in use i have already made the cannon itself but just need help scripting it here is a picture of my water cannon

all help is appreciated

1 Like

What scripts do you have now? If you want to hire someone to code this for you though, I’m open! :wink:

2 Likes

YOu can use a Mouse Button1Down and Up event to stop and start the shooting of the water. Because UserInputService is client sided, you would need to use remotes to tell the server when to stop. You can then move the CFrame of the water gun based on the user camera cframes lookvector, in order to move it. You can then enable and disable the particle emitter on the proper event.

2 Likes

I recommend you read these links: ClickDetector | Documentation - Roblox Creator Hub, 2nd link: CFrames | Documentation - Roblox Creator Hub, 3rd link: Camera | Documentation - Roblox Creator Hub

Also if you want to do it for all players read this: RemoteEvent | Documentation - Roblox Creator Hub and this: RemoteEvent | Documentation - Roblox Creator Hub

1 Like