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 » Scripting Helpers
Home Search
 

Re: :MoveTo Problem

Previous Thread :: Next Thread 
StudioScript is not online. StudioScript
Joined: 16 Mar 2011
Total Posts: 703
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 is not online. 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 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
28 Sep 2011 09:43 AM
Yes, it does. :P
Report Abuse
StudioScript is not online. StudioScript
Joined: 16 Mar 2011
Total Posts: 703
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 is not online. 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
StudioScript is not online. StudioScript
Joined: 16 Mar 2011
Total Posts: 703
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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