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
 

How to script "Follow in camera?

Previous Thread :: Next Thread 
AxFx is not online. 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 is not online. AxFx
Joined: 14 Aug 2009
Total Posts: 518
09 Mar 2016 11:48 AM
Bump.
Report Abuse
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
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
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
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
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