Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make the position of a part equal to another part?

Asked by
rexpex 45
7 years ago

Im trying to make a part's position equal to another but im having trouble.

aura = Instance.new("Part", game.Workspace)

while true do
wait(5)
    aura:clone()
    aura.Position = Vector3.new(script.Parent.Position,script.Parent.Position,script.Parent.Position)
    end


1 answer

Log in to vote
1
Answered by 7 years ago

You can just do:

aura.Position = script.Parent.Position

Although, with this comes some collision issues (if I recall correctly), so you can also set the CFrame of the part in the same manner.

aura.CFrame = script.Parent.CFrame
0
I'd go with the CFraming JasonTheOwner 391 — 7y
Ad

Answer this question