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

How to get the position of a model? Easy Answer

Asked by
14dark14 167
4 years ago
Edited 4 years ago

I will have cars in ServerStorage that player can spawn in, but how do I get the position of a model?

local model =  game.ServerStorage.Model:Clone()
model.Parent = game.Workspace
model.Position = Vector3.new(10,10,10) -- Position is not a valid member of Model
0
A Model Object is a grouping of multiple Instances. It is merely a container, it doesn’t have a Positional property. You can optionally use :MoveTo(), or reference the PrimaryPart Position. Ziffixture 6913 — 4y

1 answer

Log in to vote
-1
Answered by 4 years ago
Edited 4 years ago

Instead of using .Position maybe You could use model:MoveTo()

1
This doesn’t explain the issue. Ziffixture 6913 — 4y
0
Yea but this does help the script Nguyenlegiahung 1091 — 4y
Ad

Answer this question