local RunService = game:GetService('RunService')
local Player = game.Players.LocalPlayer
local PlayerName = Player.Name
local Character = game.Workspace:WaitForChild(PlayerName)
local Part = Instance.new("Part")
Part.Parent = game.Workspace
Part.CanCollide = false
Part.Anchored = true
local BodyPosition = Instance.new("BodyPosition")
BodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyPosition.P = 1000
BodyPosition.D = 0
BodyPosition.Parent = Part
local BodyOrientation = Instance.new('BodyGyro')
BodyOrientation.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
BodyOrientation.P = 100
BodyOrientation.D = 0
BodyOrientation.Parent = Part
local function onRenderStep(deltaTime)
local PlayerPosition = Character.HumanoidRootPart.Position
local PlayerCFrame = Character.HumanoidRootPart.CFrame
BodyPosition = PlayerPosition
BodyOrientation.CFrame = PlayerCFrame
local OverallPosition = Vector3.new(PlayerPosition.x, PlayerPosition.y, PlayerPosition.z +3)
Part.Position = OverallPosition
Part.BodyGyro.CFrame = BodyOrientation.CFrame
end
RunService.RenderStepped:Connect(onRenderStep)
The code for the part to follow works as intended, I've tried multiple times to rotate the part with the player, but I cant seem to find out what to use for it. Any help would be appreciated.

1 comment
You can try using AlignOrientation