Aren’t raycasts a bit performance intensive if I use them over 96 times in around 3 seconds? Plus since the cylinder is a mesh with an empty inside, wouldn’t the raycast not detect it?
local lenght = (part1.Position - part2.Position).magnitude -- the distance between the parts
local middle = (part1.Position + part2.Position)/2 -- middle point
local Goals = {
Position = middle
Size = Vector3.new(lenght/2,radius,radius)
}
local Tween = TweenService:Create(Laser,Tweeninfo.new("[[ fill this the way you like]]"),Goals)
part2.Position can be substituted with ray.Position