Under certain circumstances, I want the backpack GUI to stay hidden for a set amount of time without having to be turned on again due to other functions interfering, should I use BindToRenderStep?
local rUN = game:GetService("RunService")
local starterGui = game:GetService("StarterGui")
local coreguisEnums = {
["BP"] = Enum.CoreGuiType.Backpack
}
function Hide()
starterGui:SetCoreGuiEnabled(coreguisEnums.BP, false)
end
characterFolder.dowNED.Changed:Connect(function(Value)
if Value then
rUN:BindToRenderStep("hideGUI", 1000, Hide)
else
rUN:UnbindFromRenderStep("hideGUI")
starterGui:SetCoreGuiEnabled(coreguisEnums.BP, true)
end
end)