How to fix this pet script?

Hi,

I have a pet script and i have some issues.

Heres what i have:

how to make it always update pet position?

heres what i currently use:

local function updateCFrame()
            clone.PrimaryPart.CFrame = char:WaitForChild("Humanoid").RootPart.CFrame * CFrame.new(0,0,5)
end

game:GetService("RunService"):BindToRenderStep("petCFrameUpdating", Enum.RenderPriority.Input.Value, updateCFrame)

Are you doing this on the server? The server doesn’t usually have a RenderStep to bind to because it doesn’t need to render anything (outside of Studio).

3 Likes

yes im making this in server script