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

How to change part position?

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

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

Example:

workspace.Part.Position = Vector3.new(0, 10, 0)

1 comment

0

Ohh ok thanks

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

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

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