|
| 27 Jan 2015 07:22 PM |
This is a LocalScript inside the player's character.
local cam = workspace.CurrentCamera cam.CameraSubject=workspace.Part cam.CameraType = "Follow" local target = workspace.FOCUS local camera = workspace.CurrentCamera camera.CameraSubject = target local angle = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0) * CFrame.new(0, 0, 5) angle = angle + math.rad(1) end
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 07:25 PM |
| That looks like it should work perfectly. Make sure the script that copies it is working. You know, it would be a lot easier to put it in StarterGui? It automatically runs on the client in PlayerGui, and it automatically gets copied. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 08:23 PM |
| add a wait(1) to the beginning of the script. It isn't working because when it executes nothing is loaded, so you need for it to wait. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 08:25 PM |
| That shouldn't be the problem, since their character has already loaded. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 08:26 PM |
| Nah, trust me. I had the same error. I added the wait and it worked fine. The script loads before the player... Kind of weird. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 08:33 PM |
| Oh right. The client is still loading the character, but the server sees the character fully loaded, and inserts the script. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 08:50 PM |
| In online the camera looks at the wrong place. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 08:51 PM |
| Probably an area with script. Which I have no idea because I don't mess with this stuff.. So have fun guys! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 27 Jan 2015 09:33 PM |
Put this at the front
Uncompresed: repeat wait(1) until game.Players.LocalPlayer.Character -- That waits until chracter is true
Compressed: repeat wait(1) until game.Players.LocalPlayer.Character |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 09:49 PM |
| The camera is looking in the wrong place. |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Jan 2015 01:46 PM |
| camera.CoordinateFrame = CFrame.new(target.Position, Object_To_Look_At.Position) |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2015 05:55 PM |
| I don't understand. The object I want the camera to look at is a part named FOCUS, which is what target is defined as. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 28 Jan 2015 07:51 PM |
Then in the second arguement, put workspace.FOCUS.Position
At least try it. |
|
|
| Report Abuse |
|
|