generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is it possible to move a Model (position)

Previous Thread :: Next Thread 
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
16 Aug 2015 02:03 AM
I really need this, it'd help a lot.
Report Abuse
lordrambo is not online. 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 is not online. 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
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
16 Aug 2015 02:14 AM
*was about to MoveTo()...
...sees I was beaten*
Report Abuse
Ultraw is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
16 Aug 2015 02:21 AM
There's also translateby if you want
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
16 Aug 2015 08:45 PM
Thanks for the help.
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
16 Aug 2015 09:20 PM
How would I make a model spin?
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
16 Aug 2015 09:28 PM
Change the CFrame.
Report Abuse
Qaynar is not online. Qaynar
Joined: 01 Feb 2015
Total Posts: 486
16 Aug 2015 09:29 PM
model.CFrame = model.CFrame * CFrame.Angles()
Report Abuse
LegoPianoPerson is not online. LegoPianoPerson
Joined: 14 Jan 2012
Total Posts: 56
16 Aug 2015 09:30 PM
One word: CFrame
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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 is not online. 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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image