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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: CFraming

Previous Thread :: Next Thread 
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 12:28 AM
I'm trying to do something like this:

cam.CoordinateFrame = CFrame.new(player.Character.Head.Position - 5)

where the cframe is positioned a little ways away from the characters head.

obviously I don't know how to do this. help?
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 12:30 AM
nevermind, you're supposed to subtract using vector3.

Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 12:57 AM
ugh nvm, I need help I'm trying to position the camera to the left of the player..slightly. cam.CoordinateFrame = CFrame.new(player.Character.HumanoidRootPart.Position) + Vector3.new(-1,-1,-1) ive tried ## ## ## ## and switched up the vector3 values...and nothing is working. is there another way I should be doing this or....
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 12:57 AM
hashtags are the operation signs
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 01:04 AM
halp plox
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 01:06 AM
no1 knows? ok
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 01:11 AM
bb
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
03 Mar 2017 04:14 AM
relative to rotation:

cam.CFrame = player.Character.Head.CFrame:toWorldSpace(CFrame.new(-5,0,0))

not relative:

cam.CFrame = CFrame.new(player.Character.Head.Position - Vector3.new(5,0,0))


Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
03 Mar 2017 08:08 AM
Ah okay. Thank you.
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