Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How come my camera isn't being set to a position w/CAM. script?

game.Workspace:WaitForChild("CurrentCamera");
local Cam = game.Workspace.CurrentCamera;
local Pos = CFrame.new(-413.876099, -67.1133957, 15.660181, 0.447752953, -0.813180864, 0.371825784, -0, 0.415839374, 0.909438133, -0.89415741, -0.407203615, 0.186193272);
Cam.CameraType = ("Scriptable");
Cam.CoordinateFrame = Pos;

Yes, it's in a local script. I'm not sure why ROBLOX is doing this.

1 answer

✓ Accepted answer

The CurrentCamera is an object that can only be manipulated from the client.

So, this means that you have to use a localscript, and you already have that part down.

Now, localscripts can only be used from something that's directed from the client - so you have to put it in something that replicates to the client(e.g. StarterGui, StarterPack, ReplicatedFirst, etc..)

So make sure that the localscript is in somewhere that replicates to the client and then you're good(:

8 comments

0

Hm, that's weird. I have it in StarterGui. Why is it still not setting the Camera?

0

I cannot tell from just the information you provide here. Do you have skype? Perhaps I can help you further from ther.

0

Can you give me your skype? Yes I do have one. I'll pm you on ROBLOX.

0

Goulstem, I just sent you a f/r on ROBLOX, please accept it so I can send you a pm of my skype asap.

0

I'm Goulstem on skype, same as Roblox.

0

I sent you a request, are you the guy from North Puyallup?

0

Can you just add me on ROBLOX? Can someone help me? I have everything done right, and I don't know what's going on.

1

Dude, I accepted your contact request. Just talk to me from there.

This discussion is preserved as it was. New answers, comments, and votes are closed.