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 |
|
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
| |
|
|
| 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 |
|
|
|
| 30 May 2015 09:21 PM |
| You cant get CurrentCamera from a server script |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 30 May 2015 09:31 PM |
| repeatedly slams face against table until dead [2] |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 30 May 2015 09:37 PM |
| repeatedly slams face against table until dead [4] |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|