|
| 28 Sep 2011 09:41 AM |
So I took a model of Anaminus' Simple Plane, recolored it, etc., uploaded it. Then, I created a script to move the plane model to my head's position. It works, and the plane is in the Workspace, and it moves it to my head, but when it moves, it breaks... Any way I can fix that?
Here's le problem..
local plane = game:GetService("InsertService"):LoadAsset(62658561) plane.Parent = game.Workspace set = plane.Set set.Parent = game.Workspace wait(1.5) set:MoveTo(game.Workspace.StudioScript.Head.Position) plane:Remove() |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 28 Sep 2011 09:42 AM |
| Doesn't it need MakeJoints if it is a unanchored model? |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
| |
|
|
| 28 Sep 2011 09:43 AM |
I think you're right... How would I go about doing that?
plane:MakeJoints()
or
set:MakeJoints() |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 28 Sep 2011 09:44 AM |
Set's joints are made when it is inside plane.
Right after plane.Parent = game.Workspace, put
plane:MakeJoints() |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2011 09:46 AM |
Works! Thanks for the help, guys. ;)
local plane = game:GetService("InsertService"):LoadAsset(62658561) plane.Parent = game.Workspace plane:MakeJoints() set = plane.Set set.Parent = game.Workspace set:MoveTo(game.Workspace.StudioScript.Head.Position) plane:Remove() |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 28 Sep 2011 09:49 AM |
| No problem. Don't be shy to ask for help! :P |
|
|
| Report Abuse |
|
|