Hello. I have a jail system and I’m trying to make it so that if a player rejoins he is still in jail and everything is working so far except I can’t get the Reset button to be disabled.
LocalScript inside StarterGui:
local plr = game.Players.LocalPlayer
local JailData = plr:WaitForChild("JailData")
if JailData.isJailed.Value == true then
print(JailData.isJailed.Value)
game.StarterGui:SetCore("ResetButtonCallback", false)
end
The value prints true so it does detect the value is true