Hi guys,
I made a mushroom mesh in blender, and now I want to make the model fall from the sky
I have written a script here, and keep getting this error “Position is not a valid member of model”
This doesn’t make sense as when I manually manipulate the mushroom model in studio, it’s position properties can change.
Thank you
2 Likes
Set the Model’s PrimaryPart, then Model.PrimaryPart.Position =
Try using Model:GetPivot() and Model:PivotTo(), they take CFrames so make sure to use CFrame.new() instead of Vector3.new().
3 Likes
FYI, Models do not have a “Position” property. The position property you see in the properties widget is part of the Model’s CFrame (which you can access using the aforementioned Model:GetPivot()
and Model:PivotTo()
)
1 Like
When I do this, only the part that I assign as the primary part (e.g stem) falls from the sky, rather than the whole model
Interestingly, Model:MoveTo() works perfectly. Thank you for your reply
Interestingly, Model:MoveTo() works perfectly. Thank you for your reply!
2 Likes