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: Getting CurrentCamera from a server script?

Previous Thread :: Next Thread 
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
30 May 2015 08:34 PM
I need help, this doesn't get the player's camera. Nothing in output.

local char = game.ServerStorage:WaitForChild("Characters")
print("Found")
local Chars = char:GetChildren()
function Morph()
wait (10)
print ("Started")
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
local New = Chars[math.random(1, #Chars)]
local Taken = New:WaitForChild("IsTaken")
if Taken.Value == false then
Taken.Value = true
----------------------Help?
workspace.CurrentCamera.CameraSubject=New.Humanoid
-----------------------------
New.Parent = game.Workspace
New:MakeJoints()
player.Character:Destroy()
player.Character = New
elseif Taken.Value == true then
print("This char is taken!")
Morph()
end
end
end
end
Morph()
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 08:47 PM
Idiot.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
30 May 2015 09:20 PM
What did I do wrong?
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 09:21 PM
Cant do that from SS

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
30 May 2015 09:21 PM
You cant get CurrentCamera from a server script
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
30 May 2015 09:25 PM
just handle the morph from a local script, or just the camera from the local script after the player is morphed from the serverscript.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
30 May 2015 09:27 PM
Can I get their camera from one local script?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
30 May 2015 09:31 PM
repeatedly slams face against table until dead [2]
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
30 May 2015 09:34 PM
I mean seriously, I have a legitimate question here. What should I do in my local script? Like
local char = game.Players.LocalPlayer:WaitForChild("Character")
game.WorkspaceCurrentCamera.CameraSubject = char
?
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
30 May 2015 09:35 PM
repeatedly slams face against table until dead [3]

WHAT MAKES YOU THINK
YOU CAN GET THE CAMERA FROM A SERVER SCRIPT


It's literally common sense.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 09:37 PM
repeatedly slams face against table until dead [4]
Report Abuse
SneakySecretAgent is not online. SneakySecretAgent
Joined: 28 Sep 2011
Total Posts: 323
30 May 2015 09:37 PM
You can't get the camera using a server script.

(local script)
local cam = game.Workspace.CurrentCamera
--[[ You just got the camera! ]]--
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
30 May 2015 09:46 PM
>I now understand you can't get the camera from a server script, I was just hoping for some h4xy way
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 09:46 PM
Just use remoteevents.
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