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

How to use TranslateBy and a question on where it can be used?

Asked by 8 years ago

here is how to use :TranslateBy()

Make a model, or insert one. Make sure its a model(grouped). Then insert a script into it and name it whatever you want to. Type in

for i = 0,100,1 do script.Parent:TranslateBy(Vector3.new(i,0,0)) end

I got one question, can this be used without a for loop?

0
When i said "how to use" i meant on showing you how to use it. SmxkePurpp 50 — 8y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 2 years ago

I think I get it. :TranslateBy() is a way to make models move with CFrame, although you can technically use :SetPrimaryPartCFrame(). Anyways back to your question. For me, I think you can technically use while true do without for i = numbers? I'm not sure though.

Ad

Answer this question