AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 08 Mar 2016 02:48 PM |
I want to get the camera type follow effect while using the type scrip-table so it denies player input.
I have a while true do loop with... -- Coordinate frame -- Focus
However, this refuses to follow the focus point. Any suggestions? |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
| |
|
|
| 09 Mar 2016 11:57 AM |
Do not use while do.
Input = game:GetService("UserInputService") Run = game:GetService('RunService')
Run.Stepped:connect(function() CameraFX.Look(Camera,Player.Head) end)
function CameraFX.Look(CameraObject,LookToObject) CameraObject.CoordinateFrame =CFrame.new(CameraObject.CFrame.p,LookToObject.Position) end
I'll paste to you my Snap function in just a bit, this is from my person CameraFX module. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2016 12:00 PM |
CameraFX.Snap(Camera,CFrame.new(1,0.7,4)) -- Belongs in Run
function CameraFX.Snap(CameraObject,SnapToObject,Offset) CameraObject.CoordinateFrame = CFrame.new(SnapToObject.Position) * Offset end
-- Anyways this should help you out. |
|
|
| Report Abuse |
|
|