Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 22 Sep 2013 02:10 PM |
When a player enters the camera is supposed to rotate around a local brick inside of current camera. But it's not working and I have no idea what the problem could be. Here is the script:
game.Players.PlayerAdded:connect(function(player) wait(2) repeat wait() until player ~= nil script.LocalScript:Clone().Parent = player.Character gui = game.Lighting.SwordGui:clone() gui.Parent = player.PlayerGui end)
And here is the local script inside of the script above: local camera = game.Workspace.CurrentCamera local target = camera.SwordModel:findFirstChild("Main") camera.CameraSubject = target local angle = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0,angle,0) * CFrame.new(0,0,-6) angle = angle + math.rad(.3) end
|
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 22 Sep 2013 03:29 PM |
| Are you guys at church or something? ._. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 22 Sep 2013 03:57 PM |
| No output, I would expect it to work but it doesn't. |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2013 03:59 PM |
| Are you doing this in solo? Is the LocalScript Disabled? |
|
|
| Report Abuse |
|
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 22 Sep 2013 04:02 PM |
| Both enabled, and already tried it in-game. |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2013 04:03 PM |
| Try repeat wait() until game.Players.LocalPlayer at the top of the LocalScript and modify it to make it signal that it successfully went through. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
|
| 22 Sep 2013 04:56 PM |
local camera = game.Workspace.CurrentCamera camera.CameraType = 6 local target = camera.SwordModel:findFirstChild("Main") camera.CameraSubject = target local angle = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0,angle,0) * CFrame.new(0,0,-6) angle = angle + math.rad(.3) end |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2013 04:57 PM |
"local target = camera.SwordModel:findFirstChild("Main")"
what.
~rekt get |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
|
| 22 Sep 2013 05:08 PM |
local meme = Instance.new("Message",workspace) local camera = game.Workspace.CurrentCamera camera.CameraType = 6 local target = camera.SwordModel:findFirstChild("Main") meme.Text = "Main" camera.CameraSubject = target local angle = 0 meme.Text = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0,angle,0) * CFrame.new(0,0,-6) angle = angle + math.rad(.3) meme.Text = angle end |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 22 Sep 2013 05:14 PM |
| I went in-game and no message popped up. :T |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2013 05:19 PM |
| Is the LocalScript disabled? If it isn't, maybe you could try disabling it and then enabling it with the regular script after the clone gets parented. |
|
|
| Report Abuse |
|
|