I know how to weld a part to the character but how do you do it for the camera?
What I've tried:
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
local cam = workspace.CurrentCamera
local human = char:WaitForChild("HumanoidRootPart")
local part= Instance.new("Part")
part.CFrame = human.CFrame * CFrame.new(0,.65,-1)
part.Size = Vector3.new(1.5,.5,1)
part.CanCollide = false
local weld = Instance.new("Weld")
weld.Part0 = human
weld.C0 = human.CFrame:inverse()
weld.Part1 = part
weld.C1 = part.CFrame:inverse()
weld.Parent = part
part.Anchored = false
end)
end)
I noticed that the part is in the camera (not seen on screen) in explorer for a few seconds and is removed.
