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

[ SOLVED ] How can I make the models move in workspace?

Asked by 4 years ago
Edited 4 years ago

You know that vector3 cannot be used in models, so I can't make the models move. For example, I want it to be like this:

game.workspace.model.position += vector3.new (0, 0, 5)

3 answers

Log in to vote
0
Answered by
Raccoonyz 1092 Donator Moderation Voter
4 years ago
for i, v in pairs(workspace.Model:GetChildren()) do
    v.Position = v.Position + Vector3.new(0, 0, 5)
end
Ad
Log in to vote
1
Answered by 4 years ago

Click Me! - Watch this video, it uses primary parts to move the model.

Log in to vote
0
Answered by 4 years ago

Another way to do it is to use CFrame which is more reliant. Firstly click on the model and in the properties there should say set primary click that then selects a part. Then your done

-- change map to your model
local map2 = game.ReplicatedStorage.Map11:Clone()
map2:SetPrimaryPartCFrame(map2:GetPrimaryPartCFrame() * CFrame.new(-850,0,425))

Answer this question