#Raycast shotgun Help
55 messages · Page 1 of 1 (latest)
im not really sure where but try checking rayOrigin and rayDirection as they both need to be vector3 values
hm
yes it is rayDirection your problem
it’s on cframe but it needs to be vector3
local rayDirection = (CFrame.new(rayOrigin,mousePosition) * CFrame.Angles(math.random() * spread, math.random() * spread, math.random() * spread)).LookVector * 50```
doing .LookVector should probably fix your problem
like above
bet
wait
its going in like
nvm
its going
completely off
?
lemme give a video hol dup
i want it to shoot like a shotgun
not like
go EVERYWHERE
ok i go tthe spread part @sage tusk
how could i make it actualyl shoot like a shotgun now?
try lowering the math.random values
nice
i lowered it to .15
so how
could i
make multiple rays
i have it in a for loop
idk
just loop it
im trying
it takes very long to shoot when i do
between shots*
so like
lemme show you
hm
** You are now Level 2! **
idk bruh
how do i make
the loop run at the same time
its like its
completely going through the script
then looping it once its done
then so on
im using for lua count = 1,8 do
what
for count = 1,8 do
spawn(function()
— code here
end)
end```
it worked
thanks for your help
nice