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
 

Need help with camera manipulation

Previous Thread :: Next Thread 
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 05:42 PM
ok so i have this to make a top down view of the player:

local offset = Vector3.new(0,100,0)
local fieldOfView = 120

local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
local runService = game:GetService('RunService')

camera.FieldOfView = fieldOfView

local function onRenderStep()
local playerPosition = player.Character.Torso.Position
local cameraPosition = playerPosition + offset
camera.CoordinateFrame = CFrame.new(cameraPosition, playerPosition)
end

runService:BindToRenderStep('Camera', Enum.RenderPriority.Camera.Value, onRenderStep)

i want it so when the player presses certain buttons, the camera rotates left or right

should i try to incorporate it into this or make an entirely new script

also, how should i, because i'm bad at camera scripting


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 06:05 PM
b-b-b-bump


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 06:27 PM
help


Add 13,000 posts
Report Abuse
Ryuzoji is not online. Ryuzoji
Joined: 21 Dec 2015
Total Posts: 937
14 Jul 2016 06:44 PM
Camera interpolation
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 06:45 PM
"Camera interpolation"

can you elaborate

because i've tried a bunch of trial and error and i can't figure this out


Add 13,000 posts
Report Abuse
Ryuzoji is not online. Ryuzoji
Joined: 21 Dec 2015
Total Posts: 937
14 Jul 2016 06:46 PM
"Camera.CoordinateFrame = CFrame.new(Customize.Rig.Head.Position - Vector3.new(-2, 1.5, 15)) * CFrame.Angles(math.rad(180), math.rad(30), math.rad(180))
Camera.Focus = CFrame.new(Customize.Rig.Head.Position - Vector3.new(5, 1.5, 3)) * CFrame.Angles(math.rad(180), math.rad(-45), math.rad(180))
Camera:Interpolate(Camera.Focus, CFrame.new(Customize.Rig.Head.Position), 2)"

This is a really old script that I used, it looks like this:
https://www.roblox.com/games/336398192/Ryu

http://wiki.roblox.com/index.php?title=API:Class/Camera/Interpolate

Sorry, cannot do an in-depth tutorial since haven't scripted in a long time.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 06:54 PM
how can i apply that to what i'm describing

i basically have this

http://prntscr.com/bt1lsn

and then if i press, let's say, q, i want it to look like this

http://prntscr.com/bt1m1r


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 07:06 PM
b


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 07:24 PM
b


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 07:38 PM
can some math nerd help me

i r bad


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 07:53 PM
fvsdfv


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 08:12 PM
bump


Add 13,000 posts
Report Abuse
Ryuzoji is not online. Ryuzoji
Joined: 21 Dec 2015
Total Posts: 937
14 Jul 2016 09:50 PM
Yeah, use interpolation if you want a smooth.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 09:52 PM
"Yeah, use interpolation if you want a smooth."

can you show me how

camera scripting is my big weakness


Add 13,000 posts
Report Abuse
Ryuzoji is not online. Ryuzoji
Joined: 21 Dec 2015
Total Posts: 937
14 Jul 2016 09:53 PM
https://www.roblox.com/Camera-Library-item?id=106130575
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
14 Jul 2016 09:58 PM
that doesn't help


Add 13,000 posts
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