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 » Scripting Helpers
Home Search
 

Re: Camera Manipulation

Previous Thread :: Next Thread 
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:28 PM
I need help. Let's say you click on a TextButton, I want the CurrentCamera's CameraSubject to focus on Brick1. Then, when you click on another button, the CameraSubject would be Brick2.
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:33 PM
b1
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:36 PM
b2
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:39 PM
Please? ;^)
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:44 PM
Right now, whenever a player joins, this happens:

local pos = game.Workspace:FindFirstChild("player").Head.Position
local cam = game.Workspace.CurrentCamera
wait(1) --if this wait isn't here, it won't work. Why?
cam.CameraSubject = tri
cam.CoordinateFrame = CFrame.new(pos)
wait() --Same here.
cam.CameraType = "Scriptable"

So, that works fine and dandy.
But, when I try to change the CameraSubject with

wait(1)
cam.CameraSubject = trileft

Now, that keeps the Camera's position, but makes it look off into some random direction, the same direction if those waits weren't there. Why's that?
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:46 PM
respond pls.
I'm about ready to give up scripting and Roblox and life in general, scripting cameras is so frustrating.
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:51 PM
It's been 22 minutes and not a single person has responded, come on guys..
Report Abuse
Geomaster is not online. Geomaster
Joined: 05 Jul 2008
Total Posts: 1480
04 Nov 2014 07:52 PM
Most of the decent forumers here are dead anyway
What are you out to do, security cameras?
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 07:54 PM
No, I have this game planned where the player has a fixed camera, and moving the mouse to the left of the screen or the right of the screen would move the camera(focus the camerasubject on a part to the left or right).
Report Abuse
Geomaster is not online. Geomaster
Joined: 05 Jul 2008
Total Posts: 1480
04 Nov 2014 07:57 PM
You don't want to change the camera subject
You want to change the coordinateframe and focus of the camera to the parts' positions
Report Abuse
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
04 Nov 2014 08:05 PM
solorBoat, it sounds like you need to learn the Interpolate method. It's very useful to create cutscenes.

Almost like Tweening with Gui's but sightly different...
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 08:10 PM
No.. Not working.
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 08:11 PM
@Designer
At this point I don't even want it transitioning to the position (like tweening does), I just need it to instantly be looking there.
Report Abuse
Crossbeam is not online. Crossbeam
Joined: 23 Oct 2014
Total Posts: 422
04 Nov 2014 08:12 PM
This sounds like a FNAF game.

I hold you up.
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 08:14 PM
It's not. The only things it has in common with FNAF is the way you look left and right by moving your mouse to the far left or far right of the screen, and that it's a horror game.
Report Abuse
Crossbeam is not online. Crossbeam
Joined: 23 Oct 2014
Total Posts: 422
04 Nov 2014 08:15 PM
Ok, good.
Report Abuse
solarBoat is not online. solarBoat
Joined: 25 Feb 2013
Total Posts: 157
04 Nov 2014 08:17 PM
Well, it seems camera manipulation is impossible for me at the moment. I'll try again tomorrow, bye.
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