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
 

Help

Previous Thread :: Next Thread 
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
06 May 2016 06:40 AM
I have a script that Interpolates everyones camera from the StarterPlayerScripts. It works fine, except for when its done interpolating, the camera does not reattach to the player. Can anyone help out with this?

cam = game.Workspace.CurrentCamera
Camera = game.Workspace.CurrentCamera
CameraPosition1 = game.Workspace["Cutscene Parts"].Cutscene_1
CameraPosition2 = game.Workspace["Cutscene Parts"].Cutscene_2
CameraPosition15 = game.Workspace["Cutscene Parts"].Cutscene_15
CameraPosition25 = game.Workspace["Cutscene Parts"].Cutscene_25




cam.CameraType = Enum.CameraType.Scriptable

Camera:Interpolate ((CameraPosition1.CFrame), (CameraPosition15.CFrame), 0.03)
wait(0.03)
Camera:Interpolate ((CameraPosition2.CFrame), (CameraPosition25.CFrame), 8)
wait(9)
Camera:Destroy()
Report Abuse
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
06 May 2016 03:09 PM
Bump
Report Abuse
Lawrence_Rhodes is not online. Lawrence_Rhodes
Joined: 15 Jul 2007
Total Posts: 3641
06 May 2016 03:14 PM
Change the CameraType back and don't destroy it.
Report Abuse
Salinas23 is not online. Salinas23
Joined: 28 Dec 2008
Total Posts: 37142
06 May 2016 04:10 PM
"cam = game.Workspace.CurrentCamera
Camera = game.Workspace.CurrentCamera"

if you do "print (cam == Camera)" you will get true

this means your variables are wrong
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