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

How to change part position?

Asked by 4 years ago
Edited 4 years ago

Yes, I know this question is extremely easy, but I'm pretty new. I tried to make it but it just didn't work.

while true do

game.Workspace.COMMUNICATION.CommunicationMain.Position = {37.25, 41.51, -45}

wait(4)

game.Workspace.COMMUNICATION.CommunicationMain.Position = {37.25, 42.51, -45}

wait(0.1)

game.Workspace.COMMUNICATION.CommunicationMain.Position = {37.25, 43.51, -45}

wait(0.1)

game.Workspace.COMMUNICATION.CommunicationMain.Position = {37.25, 44.51, -45}

wait(0.2)

game.Workspace.COMMUNICATION.CommunicationMain.Position = {37.25, 45.51, -45}

end


(Still learning about tweening)

2 answers

Log in to vote
0
Answered by 4 years ago

Always remember to use Vector3.new(x, y, z) as part positions use v3.

Example:

workspace.Part.Position = Vector3.new(0, 10, 0)
0
Ohh ok thanks BonkTonkDonk 7 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

You have to use Vector3, a way of positioning parts.

game.Workspace.COMMUNICATION.CommunicationMain.Position = Vector3.new(37.25, 41.51, -45)

Answer this question