I’m trying to make first person camera movement for when an animation plays for the player. When the head moves the camera moves slightly but I want to make the camera still be able to freely move.
I’m using Tween Service to tween the camera to the position but what I currently have just kinda locks the camera to the players head.
I know I’m doing it wrong but I just don’t know of a solution
another thing that is similar to what I want to create is the parkour reborn camera movement system like this
https://gyazo.com/508f0c017d1e0325d1ffd153b84ca6cb
script in starterGUI:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
local Player : Player = game.Players.LocalPlayer
local Character : Model = Player.Character
local Humanoid : Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRootPart : BasePart = Character:WaitForChild("HumanoidRootPart")
local Camera = workspace.CurrentCamera
-- Services --
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
RunService.RenderStepped:Connect(function()
local HeadCFrame = Character.Head.CFrame
TweenService:Create(workspace.CurrentCamera,TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{CFrame = CFrame.new(HeadCFrame.Position, HeadCFrame.Position + Character.Head.CFrame.LookVector)}):Play()
end)
Thanks!