Disabling reset button doesn't work

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

1 Like

did you check the output ?
very cool text because of the characters limit

Yes it does print true.

another very cool text cuz of silly character limits

1 Like

is this the whole script ? try waiting 1 sec before disabling the reset button

Okay that works. Thanks :slight_smile:
i thought it wouldnt be a problem as i did do waitforchild when getting the JailData folder but apparentely not.

Thank you : )

1 Like

no problem !
very cool text becuase of the characters limit

1 Like