Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 9 years ago
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

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

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(:

0
Hm, that's weird. I have it in StarterGui. Why is it still not setting the Camera? Arithmeticity 167 — 9y
0
I cannot tell from just the information you provide here. Do you have skype? Perhaps I can help you further from ther. Goulstem 8144 — 9y
0
Can you give me your skype? Yes I do have one. I'll pm you on ROBLOX. Arithmeticity 167 — 9y
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. Arithmeticity 167 — 9y
View all comments (4 more)
0
I'm Goulstem on skype, same as Roblox. Goulstem 8144 — 9y
0
I sent you a request, are you the guy from North Puyallup? Arithmeticity 167 — 9y
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. Arithmeticity 167 — 9y
1
Dude, I accepted your contact request. Just talk to me from there. Goulstem 8144 — 9y
Ad

Answer this question