Gui functions like the Mouse.hit.Position

Sup!

I wanna make a fps game and i made it with a method, if the mouse clicks the gun will shoot to that position, its a bit unaccurate and if a mobile player is supposed to play it, the person can just shoot everywhere and my idea is that u click and it shoots only in a straight line to the small Gui (where it hits) in the middle of the crosshair.

The question is… what methods could i use?

Crosshair with the small gui in the middle:

grafik

2 Likes

You could just use the Mouse’s positions like so:

Crosshair.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y)

Works it on mobile too?
Because its the main Issue

Oh no it doesn’t. Unless they have a connected mouse.

I know there are drag and interaction events for mobile but I forgot them

Yea it kinda works!
Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.