Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 30 Nov 2012 09:20 PM |
I really dont get it. My goal is to make it so if a player enters the server (PlayerAdded) their CurrentCamera views game.Workspace.Brick1 and stays like that. Cant look around or move around. Just stuck there.
Im currently new to Lua so excuse me. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 30 Nov 2012 09:22 PM |
You'll need a LocalScript, and this http://wiki.roblox.com/index.php/Camera |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 30 Nov 2012 09:24 PM |
It did mention that its supposed to be a localscript. So I am aware of that.
LuaLearners didnt mention how to make it look at a specific part.
|
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 30 Nov 2012 09:25 PM |
Camera.CameraSubject = Workspace.Part Look through the properties of Camera. |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 09:27 PM |
Local Script > Starterpack
player = game.Players.LocalPlayer if player then wait(2) game.Wokrspace.CurrentCamera.CameraSubject = game.Workspace["Brick1"] end |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 30 Nov 2012 09:37 PM |
game.Players.PlayerAdded:connect(function(player) script.LocalScript:clone().Parent = player.CharacterAdded:wait() end)
In Local:
local camera=workspace.CurrentCamera camera.CameraSubject = Workspace.Part1 camera.CameraType = "Attach" end
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom"
Used some of Wikis script.
Hows this? |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
|
| 10 Dec 2012 05:09 AM |
| Crazyman32 has a great tutorial on camera manipulation in his models. |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 10 Dec 2012 08:18 AM |
| You've put an end which I think is unecessary. |
|
|
| Report Abuse |
|
|