Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Possible to weld parts to a camera?

Just wondering, would it be possible to weld a part to a player's camera? For example:

local Cam = workspace.CurrentCamera
local Part = Instance.new("Part",Cam)
local Weld = Instance.new("Weld",Part)

Weld.Part0 = Part
Weld.Part1 = Camera

I'm not really good with welding, so I'm not sure what results this would yield, or if it's even valid. Hope you can help.

1 answer

✓ Accepted answer

No. Snaps need to have BaseParts as their Part0 and Part1.

If you want a brick to perfectly follow the camera (locally) you can just update its CFrame on RenderStepped:

game:GetService("RunService").RenderStepped:connect(function()
	part.CFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.new(10, 10, -20)
end)

2 comments

0

Thanks.

0

What if I wanted to make a model with multiple parts follow the camera?

This discussion is preserved as it was. New answers, comments, and votes are closed.