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: Isn't CoordinateFrame a Vector3?

Previous Thread :: Next Thread 
DeGames is not online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
24 Dec 2015 06:44 PM
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Button1Down:connect(function()
local wall = game.ServerStorage.Wall:Clone()
wall.Parent = game.workspace
wall.PrimaryPart = wall.PrimaryPart
wall:SetPrimaryPartCFrame(mouse.Hit.p)
end)

Output:
Unable to cast Vector3 to CoordinateFrame
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
24 Dec 2015 06:50 PM
Nope.

CoordinateFrame is the long way to say CFrame. So it's a CFrame.
Report Abuse
nox7 is not online. nox7
Joined: 29 Aug 2008
Total Posts: 27467
24 Dec 2015 06:52 PM
mouse.Hit

is the CoordinateFrame
Report Abuse
DeGames is not online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
24 Dec 2015 07:02 PM
Ohh oh ok so CoordinateFrame includes the angles in a matrix and the CFrame is just the position. Alright, thanks
Report Abuse
rvox is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
24 Dec 2015 07:05 PM
no they are the same thing
Report Abuse
DeGames is not online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
24 Dec 2015 07:12 PM
Oh so CoordinateFrames and CFrames are the same. Vector3's are different because they are only a 1x3 matrix?
Report Abuse
drgn42 is not online. drgn42
Joined: 11 Feb 2010
Total Posts: 3231
24 Dec 2015 07:15 PM
CFrame = CoordinateFrame
CFrames are (X,Y,Z) as well as angles (X,Y,Z). Vector3 is just an (X,Y,Z)
Report Abuse
sanjay2003 is not online. sanjay2003
Joined: 03 Nov 2012
Total Posts: 740
24 Dec 2015 07:35 PM
CFrame is the shorter term for CoordinateFrame. Instead of saying "Coordinate", they use a "C" to represent it instead. Common mistake.
Report Abuse
rvox is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
24 Dec 2015 07:38 PM
no, they have x,y,z and the 9 rotation matrix values
Report Abuse
DeGames is not online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
24 Dec 2015 07:40 PM
rvox, so Vecotr3's do have the angle matrix?
Report Abuse
rvox is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
24 Dec 2015 07:48 PM
no
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