|
| 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 |
|
|
|
| 14 Jul 2016 06:05 PM |
b-b-b-bump
Add 13,000 posts |
|
|
| Report Abuse |
|
|
| |
|
Ryuzoji
|
  |
| Joined: 21 Dec 2015 |
| Total Posts: 937 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 14 Jul 2016 07:38 PM |
can some math nerd help me
i r bad
Add 13,000 posts |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Ryuzoji
|
  |
| Joined: 21 Dec 2015 |
| Total Posts: 937 |
|
|
| 14 Jul 2016 09:50 PM |
| Yeah, use interpolation if you want a smooth. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 21 Dec 2015 |
| Total Posts: 937 |
|
|
| 14 Jul 2016 09:53 PM |
| https://www.roblox.com/Camera-Library-item?id=106130575 |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2016 09:58 PM |
that doesn't help
Add 13,000 posts |
|
|
| Report Abuse |
|
|