I need help making the HumanoidRootPart follow camera.
I’ve tried a mouse following script from one of my older games and replaced it with camera and it sorta worked but I was facing backwards. This is what I tried :
game.Players.LocalPlayer.CharacterAppearanceLoaded:Wait()
game:GetService("RunService").RenderStepped:Connect(function()
local root = script.Parent.HumanoidRootPart
local cam = game.Workspace.CurrentCamera
root.CFrame = CFrame.new(root.Position, Vector3.new(cam.CFrame.X, root.Position.Y, cam.CFrame.Z))
end)
Well then you need to be more specific with your description. I can’t read your mind. You’ve added very minimal data, plus you said you want the HRP to follow the camera. So you must’ve stated your question wrong.
I’m guessing you want the entire player to be visible. For this, you would need to offset the camera. I don’t exactly know what type of camera you are looking for, but Roblox has a top-down camera example here that might be helpful: https://education.roblox.com/en-us/resources/arcade-game-top-down-camera
I found this over the shoulder camera system by Arbeiters:
This makes it easy to get the effect you want without having to code a bunch of stuff like offsets yourself. You can tweak the values and stuff too from the looks of it.