So I want the camera to follow the players head movement so the camera moves with the moving of the head so if I crouch the camera goes down:
i set the camera subject to the player head but it breaks first person
So I want the camera to follow the players head movement so the camera moves with the moving of the head so if I crouch the camera goes down:
i set the camera subject to the player head but it breaks first person
I would recommend watching youtube video tutorials like from HowToRoblox ect.
Humanoids have a property called CameraOffset, and as the name implies, this property offsets the camera position. The following code can be used as an example of how to use this property:
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.CameraOffset = Vector3.new(0,-1,0) --// The camera goes down 1 stud
task.wait(2)
Humanoid.CameraOffset = Vector3.new(0,0,0) --// The camera returns to it's original position
I hope this can help you with your crouch system, and sorry for any grammatical mistake.
Here’s how to do it:
* 1. local plr = game:GetService("Players").LocalPlayer;
* 2. local char = plr.Character or plr.CharacterAdded:Wait();
* 3. local hum = char:WaitForChild("Humanoid");
* 4. local camera = workspace.CurrentCamera;
* 5. camera.CameraSubject = char.Head;
Local Script in StarterCharacterScripts
Sorry for necroposting, but you can’t rotate your body in first person, and you can see hats
https://create.roblox.com/marketplace/asset/15797309054/The-Strongest-Battlegrounds-Camera-Follow-Head Use this, i made it and it works on every animation.
Where do I put this?
aaaaaaaaaaaaaaaaaaaaaaa
starter character scripts bro it says it in the script