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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: CurrentCamera only accessible via local scripts?

Previous Thread :: Next Thread 
iiEssence is not online. 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 is not online. lokkut
Joined: 18 Mar 2009
Total Posts: 1794
13 Apr 2015 03:17 PM
Yes.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
soniclover88888 is not online. soniclover88888
Joined: 01 Feb 2008
Total Posts: 6723
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 is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
13 Apr 2015 03:53 PM
Thanks everyone, works perfectly!
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