Always Behind Player

You can write your topic however you want, but you need to answer these questions:

  1. What I want to achieve is for a part to ALWAYS be behind the player when instanced

  2. Issue is is when the player moves around to different spots on the map it will either be in front of them, behind them, beside them, etc

  3. Tried looking around on devfourm but couldn’t find anything about it

(it will also be nice if you told me there was a thing/property about it so I can fix my issue)

local function CameraCinematic(Camera, player)
	local StartCamera = Instance.new("Part", player.Character)
	StartCamera.Anchored = true
	StartCamera.CanCollide = false
	StartCamera.CFrame = player.Character.HumanoidRootPart.CFrame - Vector3.new(2, 3.5, -4)

	local TweenService = game:GetService("TweenService")
	local FirstInfo = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, false, 0)
	local FirstTable = {CFrame = StartCamera.CFrame * CFrame.new(0, 3, 0)}
	local FirstSide = TweenService:Create(StartCamera, FirstInfo, FirstTable)
	FirstSide:Play()
end

Try this:

local function CameraCinematic(Camera, player)
	local StartCamera = Instance.new("Part", player.Character)
	StartCamera.Anchored = true
	StartCamera.CanCollide = false
	StartCamera.CFrame = player.Character.HumanoidRootPart.CFrame * Vector3.new(-2, -3.5, 4)

	local TweenService = game:GetService("TweenService")
	local FirstInfo = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, false, 0)
	local FirstTable = {CFrame = StartCamera.CFrame * CFrame.new(0, 3, 0)}
	local FirstSide = TweenService:Create(StartCamera, FirstInfo, FirstTable)
	FirstSide:Play()
end

let me know if it works

if you want a part to always be behind the player then use Vector3 instead of cameras.

1 Like

Theres literally a CameraType enum for this

workspace.CurrentCamera.CameraType = Enum.CameraType.Attach
3 Likes

yes but I want a part not the actually camera to be behind me

Can’t you put the part behind the player where you want and then weld the part to the player?

would I be able to tween it if its welded?