#Raycast Spread Need Help

3 messages · Page 1 of 1 (latest)

soft adder
#

I'm trying to make a raycast spread for shotgun but it turns into looking like spider web 😦

local spreadcasting = Ray.new(attach.WorldPosition,(CFrame.new(pos,dir)).LookVector * Vector3.new(math.rad(math.random(-spread,spread)),math.rad(math.random(-spread,spread)),math.rad(math.random(-spread,spread))) * range)
local spart,sposition,snormal = workspace:FindPartOnRayWithIgnoreList(spreadcasting,{workspace.Ignore,plr.Character},false,true)