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: Can Moveto use CFrame?

Previous Thread :: Next Thread 
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 03:59 PM
Because when I use MoveTo and the model touches me, it goes on top of my head.
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
11 Aug 2011 04:00 PM
model:MoveTo(CFrame.new(blah,blah,blah))? I'm not sure if it'll let you though. :/
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 04:02 PM
Yeah I don't know either. I'm sending this from my computer that doesn't have a graphics card so I can't test it, but I want to know the answer for when I GET MY LAPTOP BACK *stares at baby brother*
Report Abuse
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
11 Aug 2011 04:05 PM
model:MoveTo(CFrame.p)

~ Dumbledore ~
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 04:06 PM
Piedude, what does the p do?
And do I do it like this:

model:MoveTo(CFrame.p(3,3,3)
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 04:11 PM
Reply pl0x?
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:13 PM
All the p does is return the position of the CFrame as a vector3. If you want to move it the way you're talking about, you'll have to recreate the function.
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 04:15 PM
I'm very sorry, but I don't know what you mean by recreating the function.
What should I do?
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
11 Aug 2011 04:17 PM
@SDuke
Is TranslateBy() locked?
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
11 Aug 2011 04:17 PM
if you have a CFrame (all 12 values), the 'p' sub-property returns a vector3 from the CFrame.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:17 PM
Make your own MoveTo function that'll change the CFrame of every part based on the position of the PrimaryPart.
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
11 Aug 2011 04:18 PM
@Spec

The wiki says it is but I heard it's still usable.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:20 PM
@spec

it should be, I believe Aaaboy97 found a way around that.
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 04:20 PM
So basically,

CFrame.p(5,5,5,0,0,0,0,0,0,0,0,0)

works?
Report Abuse
NatFan9 is not online. NatFan9
Joined: 23 Dec 2009
Total Posts: 9059
11 Aug 2011 04:22 PM
My question is "Why does your baby brother have your laptop".
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
11 Aug 2011 04:22 PM
@SDuke
It's weird... I remember using it with a normal script some weeks ago.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
11 Aug 2011 04:23 PM
local d = Instance.new("Dragger")
d:MouseDown(model.MainPart,Vector3.new(0,0,0),model:GetChildren())
d:MouseMove((model.MainPart.Position-target.Position).unit)
d:MouseUp()
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:23 PM
@bagwan

p is a property of CFrame, not a method


print(CFrame.new(1,2,3).p)

Output :
>1, 2, 3

note that the positions will have a lot of numbers after it as well, most likely, because of floats.
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
11 Aug 2011 04:24 PM
@Nat

Well, I shouldn't have said BABY he's just, well, younger...by 5 years...
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:27 PM
@spec

I just tested it, and aparently it isn't locked anymore. I'll go take that warning off.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
11 Aug 2011 04:32 PM
function MCFrame(Model, cframe)
   Model:TranslateBy(Model:GetModelCFrame().p - cframe.p)
end)

Maybe?
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
11 Aug 2011 04:32 PM
Delete that ')' at the last line o_e
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:37 PM
before I could get your hat -_- I'll still try at the spellcasters thing >:O
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
11 Aug 2011 04:39 PM
It's all broken now D: but I got all the spells, I'm level 40.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Aug 2011 04:43 PM
how?
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