mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 01:13 AM |
hey scrippies
how would i validate a players camera position and rotation on the server, which is sent through with a remoteevent, seeing as the server script cant access camera information |
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
| |
|
realdance
|
  |
| Joined: 28 Apr 2016 |
| Total Posts: 119 |
|
|
| 24 Nov 2017 05:59 AM |
| Are u trying to lock a camera position? |
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 06:01 AM |
no just get its location and rotation on the server
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 Nov 2017 06:38 AM |
No point.
You can send these values over but it is not gonna be "more secure" just because you are doing it on the server. |
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 06:41 AM |
no but i need a way to make it secure on the server
so if the client gave the position and orientation of the camera to the server, how would the server make sure those details are correct?
|
|
|
| Report Abuse |
|
|
Kazertt
|
  |
| Joined: 03 Jan 2017 |
| Total Posts: 429 |
|
|
| 24 Nov 2017 07:32 AM |
| workspace.CurrentCamera.CFrame |
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 07:35 AM |
but you cant do that from a server script, so thats why im using remote events to send that information over to the server
the problem is exploiters can fire the remote event with a made up camera cframe which i dont want
|
|
|
| Report Abuse |
|
|
Pastures
|
  |
| Joined: 15 Aug 2015 |
| Total Posts: 943 |
|
|
| 24 Nov 2017 07:36 AM |
The camera is attached to the head. Make sure the camera position cframe that is passed through a remote is at the position of the head.
|
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 07:37 AM |
what if theyre not in first person?
|
|
|
| Report Abuse |
|
|
Pastures
|
  |
| Joined: 15 Aug 2015 |
| Total Posts: 943 |
|
|
| 24 Nov 2017 07:39 AM |
Then why would valid camera position matter? There isn't anything you can do in that case.
They would already be able to maneuver the camera however they want in third person, so why do you need validation?
|
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 07:41 AM |
the camera is scriptable, and i want to make sure that they cant move it anywhere/send whatever cframe to the server
the camera position is important for something im doing on the server
|
|
|
| Report Abuse |
|
|
|
| 24 Nov 2017 08:08 AM |
| this probably cannot be done without the context of what you are attempting to do, as there is likely a solution that depends on what you are doing with said camera |
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 08:10 AM |
actually yes thats true, thanks for the help
|
|
|
| Report Abuse |
|
|
|
| 24 Nov 2017 08:11 AM |
"so if the client gave the position and orientation of the camera to the server, how would the server make sure those details are correct?" It wouldn't. You're doing it waaay wrong if you're sending camera details to the server like this.
|
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 24 Nov 2017 08:13 AM |
i need it to redistribute the information to the other players, and the only way is through the server
|
|
|
| Report Abuse |
|
|