So i want to change the TextLabel size when a specific value is on, but it doesn't change at all.
Here's my code:
local cel = script.Parent.Parent.Parent.Parent.sterownik.linia
local tekst = script.Parent.Parent.Parent.Parent.przod_cel.SurfaceGui.ST1.TextLabel
while wait() do
if cel.Value == 5 then
tekst.Size = "{2, 0},{1, 0}"
if cel.Value == not 5 then
tekst.Size = "{1, 0},{1, 0}"
end
end
end
What am i doing wrong? It doesn't display any errors.
