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 types?

Previous Thread :: Next Thread 
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 08:16 PM
I'm trying to attach the camera to a part, but not allow the user to move the camera around... right now I'm using attach and you can still go upwards and down with the camera.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 08:35 PM
:C
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 08:44 PM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 09:06 PM
guess there's nothing... gg
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
02 Feb 2017 09:08 PM
Change CaemraType to Scriptable, you'd have to do the rest.


I can;t help any further, I am not good with Cameras.


ATR'er since 2013.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 09:12 PM
local cam = workspace.CurrentCamera
local plr = game.Players.LocalPlayer

cam.CameraType = Enum.CameraType.Scriptable
cam.CameraSubject = workspace.CameraPosition
cam.CoordinateFrame = CFrame.new(workspace.CameraPosition.CFrame.lookVector)

Trying to get it to the part's lookvector and its really awkward...
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
02 Feb 2017 09:25 PM
Video demonstration:
https://youtu.be/Ev5dqtOJNj4

local player = game.Players.LocalPlayer
local cam = workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
local rs = game:GetService("RunService")
local offset = Vector3.new(0,15,10)
local trackpart = workspace:WaitForChild("TrackPart")

rs.RenderStepped:connect(function()
cam.CFrame = CFrame.new(trackpart.Position+offset,trackpart.Position)
end)


Report Abuse
LegomasterNiko is not online. LegomasterNiko
Joined: 27 Feb 2013
Total Posts: 1176
02 Feb 2017 09:32 PM
Do you mean like this? - https://www.roblox.com/games/617497533/Arc-of-planets
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 09:51 PM
I want a stable camera, it stays in one spot looking one direction and that arc of planets, you can look up and down... and @Soybeen 0 help and 0 for what I'm trying to do.
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
02 Feb 2017 09:57 PM
I figured Soybeen had it.

You are asking, for a camera to point directly at a part, and not be moveable? Then Soybeen's demonstration should be spot-on.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Feb 2017 09:58 PM
^ Trying to use a look vector to make it well look where the part it... and i've already done what soybeen has but a bit more and well differently... :C
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
03 Feb 2017 01:09 AM
0 help?
If you want the camera stationary then simply adjust the first argument and keep the 2nd
hnnng

cam.CFrame = CFrame.new(
Vector3.new(0,0,0), -- the position you want your camera to stay in
SomePart.Position -- the position you want your camera to look at
)




Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
03 Feb 2017 01:10 AM
If you want to be able to look up and down just fix the position of the camera and use the delta of the mouse in lockfirstperson, but only adjust the Z rotational component. and keep the x and y fixed as well .


Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
03 Feb 2017 02:03 PM
I DON'T want to be able to look up and down, and as I have stated like twice I want to use look vector. :C
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