I want to make a permanent check for a part in another part. Can it somehow affect at optimization?
Example:
local plr = game.Players.LocalPlayer local part = workspace.Part game:GetService("RunService").RenderStepped:Connect(function() local char = plr.Character if char then local hrp = char:findFirstChild("HumanoidRootPart") if hrp then local dist = (hrp.CFrame.p-part.CFrame.p).magnitude if dist <= 4 then print(dist) end end end end)