local red = Color3.fromRGB(255,0,0) local yellow = Color3.fromRGB(255,255,0) local green = Color3.fromRGB(0,255,0) function Volume() if script.Parent.Text == "Volume: Medium" then script.Parent.Text = "Volume: Low" script.Parent.BackgroundColor3 = red game.Workspace.Music.Volume = 2 elseif script.Parent.Text == "Volume: Low" then script.Parent.Text = "Volume: High" script.Parent.BackgroundColor3 = green game.Workspace.Music.Volume = 2 elseif script.Parent.Text == "Volume: High" then script.Parent.Text = "Volume: Medium" script.Parent.BackgroundColor3 = yellow game.Workspace.Music.Volume = 0.5 end end script.Parent.MouseButton1Click:Connect(Volume)