Fixed the issue yes, this post has served its purpose
Change this to
IsJailed.Value = false
1 Like
Oh my god iām so dumb. Thanks!
Also you could change
if JailTime.Value > 0 then
IsJailed.Value = true
elseif JailTime.Value == 0 then
IsJailed = false
elseif JailTime.Value < 0 then
JailTime.Value = 0
IsJailed = false
to
if JailTime.Value > 0 then
IsJailed.Value = true
elseif JailTime.Value <= 0 then
IsJailed = false
They do the exact same thing. (And it looks cleaner)
1 Like
Yep! just added that as a fail safe in case the script somehow breaks and the timer goes negative. Thanks good way to optimize my code!