local Character = --[[PATH_TO_CHARACTER]]
local Humanoid = Character:FindFirstChildWhichIsA(`Humanoid`, true)
local PrimaryPart = Character.PrimaryPart
local Head = Character:FindFirstChild(`Head`, true)
local Offset = vector.create(0, -1.25, -0.4) -- Adjust if you need
while task.wait() do
Humanoid.CameraOffset = PrimaryPart.CFrame:ToObjectSpace(Head.CFrame) + Offset
end
local player = game.Players.LocalPlayer
local character = player.CharacterAppearanceLoaded:Wait() or player.Character
local WhitelistedParts = {"Torso", "Left Arm", "Right Arm", "Right Leg", "Left Leg"}
local function AddBodyTrans(part : Part)
if table.find(WhitelistedParts, part.Name) then
part.LocalTransparencyModifier = part.Transparency
local transfunc = part:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
part.LocalTransparencyModifier = part.Transparency
end)
print("Added transparency for new part")
end
end
task.wait(5)
for i,p in character:GetChildren() do
if p.ClassName == "Part" then
AddBodyTrans(p)
end
end
if youre also going to do this you might as well move the camera to the eyes (if you havent already) which allows you to make the head exist and have a more realistic camera