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: Would something like this make a brick follow a camera?

Previous Thread :: Next Thread 
Aesthetical is not online. Aesthetical
Joined: 01 Jan 2014
Total Posts: 2141
14 Aug 2014 01:24 PM
Like if I wanted to make an FPS script,

brick.CFrame = Workspace.CurrentCamera.CoordinateFrame * CFrame.new(offset)

I mean there's a lot more that I need to add in. Would this line of code orient the brick to rotate according to the camera, and make an offset?
Report Abuse
Aesthetical is not online. Aesthetical
Joined: 01 Jan 2014
Total Posts: 2141
14 Aug 2014 01:48 PM
Bump.
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Aug 2014 01:49 PM
You should test things before asking if they would work, but yes.


~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D
Report Abuse
Aesthetical is not online. Aesthetical
Joined: 01 Jan 2014
Total Posts: 2141
14 Aug 2014 01:53 PM
Haha! Thanks!

Only reason I'm asking SH is because I spent all last night blindly fiddling (to no avail) with raycasting and making a brick orient to where you're looking. And today I'm not at a computer but was really curious.

Thanks once again!
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