✓ Accepted answer
What your looking to use is the :MoveTo() function for models. you can find documentation on it here.
The moveto() function also moves it out of the way of anything, it won't clip with anything. If you want to move it without it moving out of the way, for example, a door moving into a part, you can find documentation on :SetPrimaryPartCFrame() here.
Now since your really vague with your question and not providing sample code of what you have tried, I can't really give you any code examples. Everything you need is on the wiki pages.
Edit:
I understand what you want now.
local originallocation = model.PrimaryPart.CFrame
for i = 1,100 do
model:SetPrimaryPartCFrame(model.PrimaryPart.Position + Vector3.new(1,0,0))
wait()
end
model:SetPrimaryPartCFrame(originallocation)
This code example below repeats it forever.
local originallocation = model.PrimaryPart.CFrame
while true do
for i = 1,100 do
model:SetPrimaryPartCFrame(model.PrimaryPart.Position + Vector3.new(1,0,0))
wait()
end
model:SetPrimaryPartCFrame(originallocation)
end
2 comments
Please don't post requests. Show us what you have already tried, if you REALLY can't find anything and have searched for a long time, you should at least try to make your question's description better. If you are just looking for someone to make you a script then please do that in another platform/community.
I have tried for about eh, lets say 2 months?