misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
|
| 17 Jan 2016 08:19 AM |
How to set the camera position to a specific part, make it look to a second part(for ex: part2) and make it so that the player can't control it no longer from a local script. Help?
|
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
| |
|
|
| 17 Jan 2016 09:04 AM |
local cam = game.Workspace.CurrentCamera cam.CameraType = "Scriptable" cam.CoordinateFrame = CFrame.new(part1.Position, part2.Position) |
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
|
| 17 Jan 2016 09:25 AM |
Thanks a lot, but how do I reset it back to default? I tried "cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid cam.CameraType = "Custom"" but it doesnt seem to work.
|
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
| |
|
|
| 17 Jan 2016 10:25 AM |
cam.CameraType = Enum.CameraType.Custom cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
|
| 17 Jan 2016 11:03 AM |
I am doing something wrong...
"local cam = workspace.CurrentCamera cam.CameraType = "Scriptable" player =game.Players.LocalPlayer
for i,v in pairs(game.Workspace.Plots:GetChildren()) do cam.CoordinateFrame = CFrame.new(v.cam.Position, v.tp.Position) player.PlayerGui.Voting.Frame.Visible = true player.PlayerGui.Voting.Txt.Visible = true player.PlayerGui.Voting.Txt.Text = v.PlayerV.Value.Name .. "`s building" player.Stats.Vote.Value = 5 wait(8) end
wait(.1) cam.CameraType = Enum.CameraType.Custom cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid wait(.1) script:Destroy()"
|
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
|
| 17 Jan 2016 12:07 PM |
Anyone? I really need this to work....
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 12:07 PM |
What doesn't work?
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
|
| 17 Jan 2016 12:10 PM |
The camera remains at the last position...It doesn't get fixed
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 12:11 PM |
Aren't you making it do that with for i, v in pairs
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
misterhup
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 280 |
|
|
| 17 Jan 2016 12:17 PM |
The for part is for setting the camera to look at a number of objects(8 seconds each), then after it is done, I want to reset the camera to default. This is basically what I want. The code is above in case you missed it
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 12:18 PM |
Try using for i = 1 or doing each 1 individually
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 12:19 PM |
| here http://wiki.roblox.com/index.php?title=Ordered_data_store |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 12:20 PM |
....
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|