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

How can I got my Camera in ServerScript ?

Asked by 9 years ago

Did I need RemoteEvents ? Because I try and its don't work in a server test. ):

2
Why do you need to? This sounds like an 'XY problem' question. BlueTaslem 18071 — 9y
1
Because I want to do it in a module script in workspace! lold XToonLinkX123 580 — 9y
1
More clean. XToonLinkX123 580 — 9y
0
;-; learn 2 grammar.. Im so confused right now... asd. MessorAdmin 598 — 9y
1
Sorry my bad. I'm french :/ XToonLinkX123 580 — 9y

2 answers

Log in to vote
0
Answered by
Muoshuu 580 Moderation Voter
9 years ago

All you have to do is set an ObjectValue's value to the CurrentCamera using a LocalScript.

I did this a few years ago, so I'm not sure if it still works, anti-exploit updates and all...

0
I already do.. XToonLinkX123 580 — 9y
0
Lemme try again.. XToonLinkX123 580 — 9y
Ad
Log in to vote
-5
Answered by 9 years ago

to get the camera in serverscript is simple do this:

game.Workspace.CurrentCamera
0
I think this is ideal for local scripts because a player's camera is more client-sided. Redbullusa 1580 — 9y
0
Yes this is for localscripts more. MessorAdmin 598 — 9y
1
No, he want to get the camera with a module script. Not with a localscript because he found that more clean. And serverscript is not a localscript. ScripterGame 145 — 9y

Answer this question