so i want to make a volume adjuster but my textlabel wont set to what i want it to set to. I have tried to do this without the table but it just put them with extra numbers i did not want.
while wait() do
script.Parent.Text = Music.Volume
if Music.Volume == 0 then
script.Parent.Text = "Volime: 0"
elseif Music.Volume == 0.1 then
script.Parent.Text = "Volime: 0.1"
elseif Music.Volume == 0.2 then
script.Parent.Text = "Volime: 0.2"
elseif Music.Volume == 0.3 then
script.Parent.Text = "Volime: 0.3"
elseif Music.Volume == 0.4 then
script.Parent.Text = "Volime: 0.4"
elseif Music.Volume == 0.5 then
script.Parent.Text = "Volime: 0.5"
elseif Music.Volume == 0.6 then
script.Parent.Text = "Volime: 0.6"
elseif Music.Volume == 0.7 then
script.Parent.Text = "Volime: 0.7"
elseif Music.Volume == 0.8 then
script.Parent.Text = "Volime: 0.8"
elseif Music.Volume == 0.9 then
script.Parent.Text = "Volime: 0.9"
elseif Music.Volume == 1 then
script.Parent.Text = "Volime: 1"
end
end
can someone please explain what im doing wrong here?

3 comments
lmao 27 line -> 3 lines
eh /shrug
if this helped make sure to upvote and accept :D