i have a problem with raycasting, so i want to make a monster for my game and make its view with raycasting but i dont know how to make multiple raycasts from a part.
I am aware that there is something called “Dot”
I don’t know much about it but in this case I prefer to use raycasting because I’m also trying to learn raycasting.
thanks for reading!
also a quick question can more of these monster create lag?
for count = 0,5,1 do --0 is the starting number, 5 is the goal, 1 is the amount you add each time. So this will run the code 5 times
--You can also use "count" to get which number the loop currently is at, so if it was the first time runnign the loop then count = 1 or if its the second time count = 2 and so on
--add a wait() here if it crashes
--code here--
end
You could add rotation with count by setting the first rotation all the way to the left and then add count each time. You can increase the goal number and add number if you want more rotation to be added.
Another way to do it is to use if each loop and use count to know what pre-set orientation you should use.