Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

How would I make a crosshair that accurately displays the spread of a gun?

Asked by 10 months ago

It doesn't need to update constantly because the spread doesn't change, I just can't think of another way to make sure it matches besides trying 100 different images until I find the right one.

Here is how I find the spread:

local x = math.random(-spread*100,spread*100)/100
local y = math.random(-spread*100,spread*100)/100
local direction = (,mouse.Hit.p)*CFrame.Angles(math.rad(x),math.rad(y),0)).lookVector
local ray =,(direction).unit*999)
What if you made the crosshair individual frames instead of an image? I am pretty sure that it is a horrible idea, but I don't know, it might be easier to figure out the best size.. BoiBoi24T 63 — 10mo

Answer this question