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: Camera | Help!

Previous Thread :: Next Thread 
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 06:38 PM
local Cam = Workspace.CurrentCamera

local Player = game.Players.LocalPlayer

local Char = Player:WaitForChild("Character")

Char.Torso.Anchored = true
wait(2)
Cam.CoordinateFrame = Workspace.Menu.Pos.CFrame
wait()
Cam.CameraSubject = Workspace.Menu.Spray
wait()
Cam.CameraType = "Scriptable"

My LocalScript in StarterGui^

Basically i want the Camera to be at the position of Pos.

And i want it to face Spray.

But for some reason it always is facing some other direction
The wait(2)'s are just to make sure that Spray is there and stuff.

You might think im a noob at scripting but im not.
I just need some help on getting this too work because for some reason its not doing the thing i want it to.

There is no errors and no output.

In advance, Thanks!



Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 06:48 PM
Bump.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 07:12 PM
BuMp.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 08:07 PM
BUMP.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 08:18 PM
Help!
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
26 May 2014 08:23 PM
Remove the wait()s, and put Cam.CameraType = "Scriptable" to where you just start manipulating the camera.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 09:26 PM
It works offline but i added this:

print(Cam.CameraType.Name .. " is " .. Player.Name .. "'s CameraType.")

and in the server it said that the cameratype is custom and i could move my camera.

so it did not set the camera type as Scriptable.

Is there anyway to make it Scriptable?
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 10:07 PM
Bump.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
26 May 2014 10:09 PM
NVM FIXED IT!
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