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

[WATCH VIDEO] How do you do this with the camera?

Link: https://gph.is/g/ZOJ0zeg

So during the punches and kicks in the video, the camera is moving in a way that seems to be welded to the head? I know this isn't moving the body with CFrames and such because the "/e dance2" emote is still affected by this.

How did the dev exactly do this? I've seen many examples of this in games including Black Magic 2.

Any help or further clarification would be appreciated!

2 comments

0

Not really an answer but you can try messing with the camera scripts to see if it does something. Don’t really know how they do that

0

I've tried that for an eternity lol

1 answer

You have to set Camera.CameraSubject to the character's head.

local camera = workspace.CurrentCamera
local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
camera.CameraSubject = character.Head

2 comments

0

There isn't a 100% guarantee this script will work, I rushed it.

0

The problem with this is that shift-lock won't work.

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