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: Vector3 = CFrame.p

Previous Thread :: Next Thread 
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
24 Jun 2013 03:22 PM
So, could you do something like this:

part.CFrame.p = part.Position
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Jun 2013 03:23 PM
No, you can't assign p.

Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
24 Jun 2013 03:33 PM
I'm not sure but I think p is to assign the 3d CFrame of a 2d object.
Say for example you want to get the 3d position of a mouse when you left click:
script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
print(mouse.Hit.p)
end)
end)
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
24 Jun 2013 03:36 PM
As it was said, before, you cannot set the .p property of CFrame.
However..

part.CFrame = CFrame.new(part2.Position)
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
24 Jun 2013 03:41 PM
Ah yeah, I didn't mean to say "assign" as it's a read only property like CFrame.x, CFrame.y, etc. P returns a Vector3 value, basically being the 3D position of a CFrame position.
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