The problem is with
RunService:BindToRenderStep(“Idc”, Enum.RenderPriority.Camera.Value, Whocares)
You gotta make the renderpriority thing a number, like 0
RunService:BindToRenderStep(“Idc”, 0, Whocares)
@MayorGnarwhal I’ve had it running in ReplicatedFirst. I’ve moved it to StarterCharacterScripts. While the Topbar etc is disabled. The reset button still has it’s default functionality.
@nulllifeleft, The Camera.Value is I believe either 0 or -1… anywho it’s the highest priority. I’ve gone ahead and changed it to 0.
The issue is still there though. I’ve done a search in all my scripts to see if maybe there was something setting it back. Other than the default health script. I can’t think of anything.
Sometimes the code executes to fast, adding a pcall function that repeats until it’s successful should fix the issue.
local StarterGui = game:GetService('StarterGui')
local ResetButtonSuccess
while not ResetButtonSuccess do
ResetButtonSuccess = pcall(StarterGui.SetCore, StarterGui, "ResetButtonCallback", false)
wait()
end
Also yes, this should be a LocalScript in StartPlayerScripts, under StarterPlayer