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

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

Asked by 3 years ago
Edited 3 years ago

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!

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 OhManXDXD 445 — 3y
0
I've tried that for an eternity lol DemonHunterz6 35 — 3y

1 answer

Log in to vote
0
Answered by
rabbi99 714 Moderation Voter
3 years ago

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
0
There isn't a 100% guarantee this script will work, I rushed it. rabbi99 714 — 3y
0
The problem with this is that shift-lock won't work. rabbi99 714 — 3y
Ad

Answer this question