DOOMKINGJoin Date: 2007-12-27 Post Count: 9516 |
Well i'm trying to figure out how to make a camera tool that switches between four different areas but since i'm horrible with tools i can't get it to work. Plus i've never worked with the camera before.... Anybody think they can help? |
|
|
Okay, here's what I know.
You need a LocalScript along these lines:
obby = Instance.new("ObjectValue")
obby.Parent = game.Players.LocalPlayer
obby.Name = "Camera"
obby.Value = game.Workspace.CurrentCamera
The camera could then be called with
game.Players.PLAYERNAME.Camera.Value
Now, to change the camera position in a script, do:
cam = game.Players.PLAYERNAME.Camera.Value
cam.Coordinateframe = CFrame.new(3, 14, 42) --camera position
cam.Focus = CFrame.new(0, 0, 0) --where it looks at
Note that this is all I know and it may or may not work. Good luck with your experiments in Cameras!
Lighting! Camera! Motors! :P
|
|
|
actually green herse a shortest easiest and simplest way
d = game.Workspace.CurrentCamera
d.CameraSubject = game.Workspace.Brick1
and so on :p
wewt i win :D |
|
LuigiFanJoin Date: 2007-06-18 Post Count: 4143 |
Lava, that's the noobish way, Greenmachine's is the simple Vector3 way that I'm glad to have learned :D
=P-LuigiFan-=P |
|
DOOMKINGJoin Date: 2007-12-27 Post Count: 9516 |
Good because i'm planning on first using this is in my Noob-Free Building so people can look at each others creations. But later i'm make Cut scenes using Camera although Lava's Way would center directly on a object or a little bit away from it? |
|
|
like view the whole thing =/
like
the camera focuses on ur humanoid and it views ur whole character |
|
DOOMKINGJoin Date: 2007-12-27 Post Count: 9516 |
Because i may have used it to view a certain brick but if it shows the whole thing then it would be good. Also how would i revert the camera so it's back on the player? |
|
|
d = game.Workspace.CurrentCamera
d.CameraSubject = game.Players.LocalPlayer.Character.Humanoid --or somtin like dis |
|
ZukaJoin Date: 2007-11-02 Post Count: 4078 |
CameraSubject is what the Camera revolves around. It's the star of your camera's solar system. |
|
DOOMKINGJoin Date: 2007-12-27 Post Count: 9516 |
Also may not be Subject realated but what would be the best way to make a figure move? Can't figure how to make humanoids move.... |
|
FlashJoeWTop 100 PosterJoin Date: 2007-12-24 Post Count: 4886 |
nicely put Zuka |
|
DOOMKINGJoin Date: 2007-12-27 Post Count: 9516 |
Also How would i make humanoids move? Would using Humanoid Moveto[] be good or is there a better way? Can it go at angles like turning? |
|
CoolJBJoin Date: 2007-10-17 Post Count: 1737 |
You can't put a Humanoid in angles because it's className is not Part. o_o
|
|
|
|
A figure automatially turns when you use the :MoveTo() function, so that it walks forward. |
|