Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you get the camera to focus like a lock-on?

I've spent the last couple of days pondering over this, I've used what I can find on the Wiki and the best I can get is a basic focus, however I am trying to get a smooth lock on like you would see in a fighting game. Any help would be very appreciated.

1 comment

0

This is how my current one operates: https://gyazo.com/52bd495749a949034a6fb5694ca9775c

1 answer

✓ Accepted answer

You dont need to set a part to that. I'm assuming your game isn't FE so you can use this

local player = game.Players:FindFirstChild'PLAYERNAME'
if player and player.Character then --we need the character
	workspace.CurrentCamera.CameraSubject = player.Character
end

You dont have to set the camera onto a part, you can simply set the CameraSubject to the person you want to spectate.

Hope this helped!

This discussion is preserved as it was. New answers, comments, and votes are closed.