Currently using Raycast to make sure that an appearing bridge doesn’t go through an island on its way to its destination.
When firing to the destination point 99% of the time it misses and returns nil.
local ray = workspace:Raycast(p.Position, (o.Parent.Main.Position - p.Position).Unit * (o.Parent.Main.Position - p.Position).Magnitude,pr)
Point representations for below
o.Parent.Main.Position – 2
p.Position – 1
White represents where the ray may be shooting for some reason, and red indicates where it should be shooting.
I am a little tired right now since it’s 3 am, so forgive me if I managed to make a stupid mistake.
Thank you