|
| 16 Aug 2015 02:02 AM |
Is it possible to move a model like a part could be moved?
ex w/ part;
part.Position = game.Workspace.Target.Position --or part.Position = Vector3.new(1003,192,184)
If there is a way to make a model be positioned, I would really appreciate it if you could inform me as to how. Thanks |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 02:03 AM |
| I really need this, it'd help a lot. |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 16 Aug 2015 02:05 AM |
| Set the model's primary part in studio or in runtime if you really need to. Model:SetPrimaryPartCFrame(CFrame.new()) |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 16 Aug 2015 02:06 AM |
Oh I assumed you wanted to set a CFrame. There's also Model:MoveTo(Vector3.new())
MoveTo doesn't require a primary part but will base it's rotation on one if you set it. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 02:14 AM |
*was about to MoveTo()... ...sees I was beaten* |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 16 Aug 2015 02:21 AM |
| There's also translateby if you want |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Aug 2015 09:20 PM |
| How would I make a model spin? |
|
|
| Report Abuse |
|
|
| |
|
Qaynar
|
  |
| Joined: 01 Feb 2015 |
| Total Posts: 486 |
|
|
| 16 Aug 2015 09:29 PM |
| model.CFrame = model.CFrame * CFrame.Angles() |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Aug 2015 10:00 PM |
How would I make it so it doesn't get bumped when it collides with another object?
When I use MoveTo: it bumps it ontop of my head, instead of where my torso is?
How do I make it so that it doesn't do that? (Also if it's moved in a direction such as forward, it can still hit something so moving where it MoveTo: by 1+ studs wont help if the player faces a tree.)
I've had it as Non-collidable, still didn't do anything to help. They just stack
|
|
|
| Report Abuse |
|
|
76km
|
  |
| Joined: 14 Aug 2015 |
| Total Posts: 5455 |
|
|
| 16 Aug 2015 10:01 PM |
you can't. Thats the joy of it.
you need to do set primary part frame for that.
MoveTo will stack but not Cframe i think. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 10:03 PM |
| --Why doesn't this work? Says there isn't a primary part or it has been removed in output, yet I stated the primarypart? |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 10:03 PM |
local model = script.Parent local offset = CFrame.Angles(math.rad(0),1,0)
while wait() do model:SetPrimaryPartCFrame(
model:GetPrimaryPartCFrame()
* offset
) end
|
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 16 Aug 2015 10:20 PM |
| Well the primary part obviously isn't set, and it has nothing to do with your code. You can set the primary part in your code if you must, though you shouldn't need to |
|
|
| Report Abuse |
|
|