Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do u move unions correctly ?

script.Parent.Position = Vector3.new(0.2, 0, 0)
wait() -- or wait(0.01) doesn't matter
script.Parent.Position = Vector3.new(0, 0, 0)

How do u move unions properly ? this should move it forward and back to the SAME position. How u do it ? cuz for me it just goes somewhere where i can't see anymore

2 answers

Use CFrame, would explain more but on tablet. So.. script.Parent.CFrame = CFrame.new(POSITION HERE)

1 comment

0

noooo thats not what i meant i dont want to change its position i want to just move it like forward and backward but not into a specific position

When using position like this you move it to a certain set of co-ordinates in your place. To move it forward or backward, use CFrame like this:

script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0.2,0,0)
wait()
script.Parent.CFrame = script.Parent.CFrame - Vector3.new(0.2,0,0)

1 comment

0

it works, but my union somewhy just flyes away when i shoot and its anchored

This discussion is preserved as it was. New answers, comments, and votes are closed.