generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Camera help

Previous Thread :: Next Thread 
misterhup is not online. 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 is not online. misterhup
Joined: 07 Jul 2010
Total Posts: 280
17 Jan 2016 08:42 AM
BUMP


Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
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 is not online. 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 is not online. misterhup
Joined: 07 Jul 2010
Total Posts: 280
17 Jan 2016 10:23 AM
Second bump..


Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
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 is not online. 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 is not online. misterhup
Joined: 07 Jul 2010
Total Posts: 280
17 Jan 2016 12:07 PM
Anyone? I really need this to work....


Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
17 Jan 2016 12:07 PM
What doesn't work?


#code 'The Legend of Heroes Sen no Kiseki'
Report Abuse
misterhup is not online. 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
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
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 is not online. 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
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
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
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
17 Jan 2016 12:19 PM
here http://wiki.roblox.com/index.php?title=Ordered_data_store
Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
17 Jan 2016 12:20 PM
....


#code 'The Legend of Heroes Sen no Kiseki'
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image