|
| 27 Jun 2015 06:04 PM |
| How would you use the local script to manipulate only one player's camera? I am not sure as to what lines I should start with. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 06:08 PM |
| http://wiki.roblox.com/index.php?title=Camera_manipulation |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 06:18 PM |
| So by doing that it should only work for the player that the local script was cloned into, right? |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 27 Jun 2015 06:19 PM |
| correct, the code inside of the local script would only effect the local player it is running for |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 06:19 PM |
yes
the problem is how to get all the players' cameras lol
this gets only the local player's cam
-Insert local script -local cam = game.Workspace.CurrentCamera
-Baheeg |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 06:22 PM |
| Changing all players' camera to a certain subject is no problem for me, just getting one player. xD I'll try that method though |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 27 Jun 2015 06:23 PM |
if you wanted to get all of their camera's you could do something like this
call FireAllClients from a server script make sure all players have a local script connect a function to the .OnClientEvent event, do stuff inside of that function (herp derp roblox with their event names)
-- from a server sided script local remoteEvent = game.ReplicatedStorage:WaitForChild("RemoteEvent") remoteEvent:FireAllClients("ManipulateAllCameras")
-- from a local script local remoteEvent = game.ReplicatedStorage:WaitForChild("RemoteEvent")
remoteEvent.OnClientEvent:connect(function(...) local tuple = {...} if tuple[1] == "ManipulateAllCameras" then -- cam manipulation code end end) |
|
|
| Report Abuse |
|
|
| |
|