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)