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

How do i make this ray change angle?

Asked by 4 years ago

Trying to make my weapon have a fire mode that fires multiple beams, how do i keep this line of code working for the distance calculation, while changing the angle 5 degrees

local ray = Ray.new(tip.CFrame.p, (mousehit - tip.CFrame.p).unit * 35)

Answer this question