iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Apr 2015 03:17 PM |
| Is there a way to access local camera through a server script? |
|
|
| Report Abuse |
|
|
lokkut
|
  |
| Joined: 18 Mar 2009 |
| Total Posts: 1794 |
|
| |
|
|
| 13 Apr 2015 03:18 PM |
| I don't think there is. You SHOULD be manipulating the camera on the client anyways. |
|
|
| Report Abuse |
|
|
lokkut
|
  |
| Joined: 18 Mar 2009 |
| Total Posts: 1794 |
|
|
| 13 Apr 2015 03:20 PM |
and that's why i didn't bother expanding my answer.
tbh it just takes useless amounts of effort to fiddle with the camera server-sided anyway |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 13 Apr 2015 03:22 PM |
Besides, the correct way to do so individually would be to have the server contact the client via a RemoteFunction to tell it what it needs to change the Camera too.
-- Local script workspace.RemoteFunction.OnClientInvoke = function(NewCoordinateFrame) workspace.CurrentCamera.CoordinateFrame = NewCoordinateFrame; end
-- Script workspace.RemoteFunction:InvokeClient(Game.Players.PlayerName, CFrame.new()) |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Apr 2015 03:23 PM |
I am trying to add local message into the currentcamera so that it isn't seen by others. PlayerGui wouldn't work since the message would be gone after the player is kicked.
Basically, I'm trying to show a local message that states the reason the player was kicked. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Apr 2015 03:23 PM |
| Yeah, I thought about using remove events, but I just despise them, don't ask why :| |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2015 03:27 PM |
| Just a wild guess here, but depending on your project, you could link a function to give a player a script and put it in their localgui to modify their camera as soon as a certain condition is met. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Apr 2015 03:53 PM |
| Thanks everyone, works perfectly! |
|
|
| Report Abuse |
|
|