script.Parent.Changed:Connect(function()
if script.Parent.Value > 3 then
script.Parent.Value = 3
end
if script.Parent.Value < 1 then
script.Parent.Value = 1
end
end)
while true do
wait(.3)
if script.Parent.Value >= 3 then
if script.Parent.Value <= 1 then
script.Parent.Value = script.Parent.Value + .01
end
end
end
script.Parent.Changed:Connect(function()
if script.Parent.Value > 3 then
script.Parent.Value = 3
end
if script.Parent.Value < 1 then
script.Parent.Value = 1
end
end)
while true do
wait(1)
if script.Parent.Value <= 3 then
if script.Parent.Value >= 1 then
script.Parent.Value = script.Parent.Value - .01
end
end
end
while true do
wait(.3)
if script.Parent.Value > 3 then
script.Parent.Value = 3
end
if script.Parent.Value < 1 then
script.Parent.Value = 1
end
if script.Parent.Value > 1 then
wait(.7)
script.Parent.Value = script.Parent.Value - .01
end
end
Yeah, IntValues don’t support decimal numbers and only work with whole numbers. You should consider switching to NumberValues instead, or changing your integar counter to a whole number.