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

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

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?

1 comment

0

When i said "how to use" i meant on showing you how to use it.

1 answer

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.

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