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
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|