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: Camera Fix

Previous Thread :: Next Thread 
bomblover is not online. bomblover
Joined: 23 Mar 2011
Total Posts: 238
14 Aug 2015 12:52 AM
I made a loading screen that enables the entering player to choose a team and the camera rotates based off of the team selected. However, I use a remote event every time a person chooses a team which does this:
local Camera = workspace.CurrentCamera
Camera.CameraType = "Custom"
Camera.CameraSubject = Character.Humanoid
print(Camera.CameraType, Camera.CameraSubject)
It prints out the humanoid and the CameraType correctly and there are no erorrs, but the camera is still stuck in the position that I tweened it to for the team selecting GUI. Any clue as to what I'm doing wrong? I also tried executing the function every time the script is given to the player, but the same thing happened and I figured the use of the event was more efficient.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Aug 2015 01:00 AM
post the rest of the code of the camera movement


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
bomblover is not online. bomblover
Joined: 23 Mar 2011
Total Posts: 238
14 Aug 2015 01:08 AM
function TweenCamera(NewFrame ,NewFocus)
Camera.CoordinateFrame = NewFrame
Camera.Focus = NewFocus
Camera.CoordinateFrame = CFrame.new(Camera.CoordinateFrame.p,Camera.Focus.p)
end
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Aug 2015 01:17 AM
Did you ever change the camera subject when tweening?


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
bomblover is not online. bomblover
Joined: 23 Mar 2011
Total Posts: 238
14 Aug 2015 01:19 AM
No, I only changed the camera type to Scriptable.
Report Abuse
bomblover is not online. bomblover
Joined: 23 Mar 2011
Total Posts: 238
14 Aug 2015 01:20 AM
It works perfectly in studio.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Aug 2015 01:22 AM
You probably need to wait for something, or just change the camera coordinate frame back...


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
bomblover is not online. bomblover
Joined: 23 Mar 2011
Total Posts: 238
14 Aug 2015 01:26 AM
Change the coordinate frame to?
Report Abuse
bomblover is not online. bomblover
Joined: 23 Mar 2011
Total Posts: 238
14 Aug 2015 01:45 AM
b-b-b-b-bump it
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Aug 2015 03:21 AM
Its hard to tell. I don't know what you are changing the cameras position to. I still need alot more code that deals with the camera to see what might be the problem.


"Talk is cheap. Show me the code." - Linus Torvalds
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