generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Local Player Camera

Previous Thread :: Next Thread 
TwistedMemories is not online. TwistedMemories
Joined: 08 Jul 2013
Total Posts: 565
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
Lucas1270z is not online. Lucas1270z
Joined: 27 Feb 2013
Total Posts: 439
27 Jun 2015 06:08 PM
http://wiki.roblox.com/index.php?title=Camera_manipulation
Report Abuse
TwistedMemories is not online. TwistedMemories
Joined: 08 Jul 2013
Total Posts: 565
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 is not online. 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
Badlittlekevin1O1 is not online. Badlittlekevin1O1
Joined: 04 May 2013
Total Posts: 3322
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
TwistedMemories is not online. TwistedMemories
Joined: 08 Jul 2013
Total Posts: 565
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 is not online. 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
TwistedMemories is not online. TwistedMemories
Joined: 08 Jul 2013
Total Posts: 565
27 Jun 2015 06:28 PM
Thanks guys! :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image