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: Why is this not working?

Previous Thread :: Next Thread 
salzvatik12 is not online. salzvatik12
Joined: 17 Feb 2010
Total Posts: 10747
06 Sep 2011 05:33 PM
I'm trying to change the camera's position, so it will look like something is being filmed from one spot on the map.


I put this in a Local Script in StarterGui. I ran it in Visit mode in Roblox Studio.

Any reasons why it isn't working?
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(574, 3.6, -28)


~-SQUEEEEEEEEEEEEEE-~
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Sep 2011 05:36 PM
Try this:

repeat wait() until game.Players.LocalPlayer
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(574, 3.6, -28)


-Like an __AWESOME__ boss
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
06 Sep 2011 05:43 PM
^
Report Abuse
EnzoDaVinci is not online. EnzoDaVinci
Joined: 14 Apr 2011
Total Posts: 3730
06 Sep 2011 05:46 PM
^^
Report Abuse
salzvatik12 is not online. salzvatik12
Joined: 17 Feb 2010
Total Posts: 10747
06 Sep 2011 05:52 PM
Sorry, that doesn't seem to be working for me in Visit. =/

~-SQUEEEEEEEEEEEEEE-~
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Sep 2011 05:54 PM
repeat wait() until game.Players.LocalPlayer ~= nil
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(574, 3.6, -28)


Does it work in online mode?


-Like an __AWESOME__ boss
Report Abuse
salzvatik12 is not online. salzvatik12
Joined: 17 Feb 2010
Total Posts: 10747
06 Sep 2011 05:57 PM
No, not working in online mode either. =/

~-SQUEEEEEEEEEEEEEE-~
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Sep 2011 06:00 PM
So, nothing happens at all? Also, if all you want to do is place at a certain position, I suggest placing a brick there, and changing the CameraSubject property to the brick.


-Like an __AWESOME__ boss
Report Abuse
DBF98 is not online. DBF98
Joined: 08 Feb 2010
Total Posts: 127
06 Sep 2011 06:00 PM
I can give you the script in a brick tool.
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