What is the best way to move a model that has 1 part and 2 unions by clicking a button/part, or GUI button.
Should I try to mess with animation? Or should I do CFrame? Or possibly another way?
What is the best way to move a model that has 1 part and 2 unions by clicking a button/part, or GUI button.
Should I try to mess with animation? Or should I do CFrame? Or possibly another way?
I would use model.PrimaryPart and then model:SetPrimaryPartCFrame make a dummy invisible part then do
function OnClick()
model.PrimaryPart = model.APart
model:SetPrimaryPartCFrame(game.Workspace.DummyPart.CFrame)
end
http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame
Does the button need to be inside the model?
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
don't you know how to script at all?