BindToRenderStep not working

Heya, I’m trying to make something that puts a GUI over a players head and edits it to match the heads parameters, sadly I used BindToRenderStep and it’s not working. The function is not being called, I tried putting a print before the BindToRenderStep and it printed but the function doesn’t.
Any ideas? This is all in a OnCharacterAdded function

 local EffectRedact = ServerStorage.Assets.HeadCensorer:Clone()
        EffectRedact.Parent = XCharacter
        EffectRedact.CensorGUI.Enabled = true

        local function MatchRedactorParams()
            print("1")
            EffectRedact.CensorGUI.Position = XCharacter.Head.Position
            print("2")
            EffectRedact.CensorGUI.Size = XCharacter.Head.Size
            EffectRedact.CensorGUI.CFrame = XCharacter.Head.CFrame
            EffectRedact.CensorGUI.Rotation = XCharacter.Head.Rotation
        end
        
        RunService:BindToRenderStep("Redactor", Enum.RenderPriority.Camera.Value - 1, MatchRedactorParams)

Is the script disabled? Does it even reach the part where you bind the function? Try print("Reached render bind") or something before the :BindToRenderStep to see if the script is getting stalled.

Tried, it printed. Any other ideas?

Is this a Server Script? You can only call :BindToRenderStep on the client. Try using .Heartbeat instead.

1 Like

Oh, well that’s the issue then, thanks!