Put a part in between 2 parts

Hi, I’d like to put a part in between 2 parts


Basically I’d like to put a light part in between the glowing sphere and the smaller sphere.

You can use :lerp to get the CFrame half way from one sphere to the other, then create your part at that position

local MiddlePos = Part1.CFrame:lerp(Part2.CFrame, .5)
2 Likes

Oh, thanks. I’m only doing this cause roblox’s lights don’t go far enough.

1 Like

No problem. If it’s still not reaching, you can change the .5 to get a closer or further point. A value of 1 would be the position of Part2 and a value of 0 would be the position of Part 1

1 Like

Thanks for the help mate it’s working like a charm.

1 Like