note: i suck at scripting and roblox studio sorta
So i am making a quick tool where i want a part inside the tool to follow the camera. It works completely fine except that its a bit glitchy. It delays a bit behind the camera and i want it to be smooth but don't know how. is there a way i can fix this? here is the code i used (its a local script inside a part):
script.Parent.Transparency = 0
while true do
script.Parent.CFrame = workspace.CurrentCamera.CFrame
wait ()
end
pls help also here is a video showing what i mean by glitchy/delayed: https://www.youtube.com/watch?v=hJKBt4D4Eos

3 comments
use text for links
Please include how the tool is setup.
instead of a while loop maybe RunService.RenderStepped would smooth it for the player https://developer.roblox.com/api-reference/event/RunService/RenderStepped