Getting player's camera from Server

The question is simple but I didn’t find anything when searching. Is there any way to get someone’s camera from the Server-Side without using remotes?

2 Likes

No. The client’s camera only exists on the client. You can’t even pass the camera’s reference to the server because it does not exist on the server.

You will have to pass information about the camera through a remote event.

26 Likes

No.

And your problem most likely has a better solution if you explain what it is.

I’m working on a shooter game where the Camera position & mode is very important to grant a fair game for every player. I don’t really know if they can do It, but I suppose that exploiters can modify their cameras since the camera is on the client and I would like to do some sort of sanity check on the server to make sure that any camera is modified.

The problem of using RemoteEvents is that the exploiter could modify the arguments passed to make it look like everything is in order for the server.

2 Likes

You will have to trust the player to some degree unfortunately.

2 Likes

Exploiters can do literally anything. Even if you set the camera on the server (Which is 100% impossible) the exploiters would still be able to manipulate it to get an unfair advantage. Anything the client can touch, they can mess with.

Some things just don’t replicate to the server though.

1 Like

This is an XY problem

1 Like

This is a useless post.

Also they explained their problem.

9 Likes

All they said is that their attempted solution is very important, but if they take no for a solution then I guess it is not that important

first you add a Vector3 value object in the players character or player which will hold the camera position that the server wants. you then make a local script that transmits the camera position every second. to prevent hackers from changing camera positions i would reccomend that if within 10 seconds there is no camera ping you then lock the camera position to the player “Serverside” or you simply kick them from the game. this would allow you to know the camera position of the user at any time and prevent people from deleting your camera checks. also earlyer i mentioned vector3 but if possible an instance would be better since the hacker could replicate the supposed camera position

oops i replied to the wrong person