Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I lock the camera on the player's head?

Asked by 9 years ago

I want to be able to lock a camera onto a players head and make that camera unmovable. Like in a sidescroller. I would have example scrippt, but I don't because I need a starting point.

Thanks,

-ds

0
Here can be your teaching point. http://wiki.roblox.com/index.php?title=Camera_manipulation alphawolvess 1784 — 9y

1 answer

Log in to vote
-5
Answered by 9 years ago

I have some tips!(These must be local scripts)


Interpolate

Interpolation is a function, when ran, it can make your camera run smoothly to the destination it needs to go to:

workspace.Camera:Interpolate(workspace.Player.Head, workspace.Player.Head, 5)
--Go to the player's head and make the camera focus on the player's head; it will take 5 seconds to reach the destination.

http://wiki.roblox.com/index.php?title=Interpolate is a good place to study, like how alphawolvess said.



Hope this helps!

2
Wouldn't you use the CurrentCamera? woodengop 1134 — 9y
Ad

Answer this question