#help gun

1 messages · Page 1 of 1 (latest)

gilded sonnet
#

What should I change in this script so that my weapon can only fire horizontally?

blissful dome
#

local Direction = (CFrame.new(Start,Mouse.Hit.p) * CFrame.Angles(math.rad(-Spread+(math.random()(Spread2))),math.rad(-Spread+(math.random()(Spread2))),0)).lookVector

#

Ur using the mouse

#

So it fires vertically

#

local targetPos = Mouse.Hit.p
targetPos = Vector3.new(targetPos.X, Start.Y, targetPos.Z)
local Direction = (CFrame.new(Start, targetPos) * CFrame.Angles(
math.rad(-Spread + (math.random() * (Spread * 2))),
math.rad(-Spread + (math.random() * (Spread * 2))),
0
)).lookVector
Change it to smth like ts