Setting an attachments position to a parts position

So I wanted to make it so that an attachments position gets set to another parts position so it can be used for a beam (nope I can’t just parent the attachment to the other part, that would break my system). The part I’m trying to set the attachments pos to is constantly moving meaning a set offset would’t work.

By just setting the attachments pos to the parts it flies multiple studs in the air idk…

That’s what I tried

local at1 = Instance.new("Attachment", towerFirePart)
			local at2 = Instance.new("Attachment", towerFirePart)
			at2.Position = enemy.PrimaryPart.Position

Any ideas on how I can fix this?

at2.WorldPosition instead of at2.Position

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.