script.Parent.Parent.Parent.Minus.MouseButton1Click:connect(function(pro)
if script.Parent.Value = script.Parent.valuezer.Value then
script.Parent.Parent.LocalScript.Disabled = true
script.Parent.Parent.value.Disabled = true
else
script.Parent.Parent.LocalScript.Disabled = false
script.Parent.Parent.value.Disabled = false
end
end)
script.Parent.Parent.Parent.Plus.MouseButton1Click:connect(function(pro)
if script.Parent.Value = script.Parent.valueten.Value then
script.Parent.Parent.LocalScript.Disabled = true
script.Parent.Parent.value.Disabled = true
else
script.Parent.Parent.LocalScript.Disabled = false
script.Parent.Parent.value.Disabled = false
end
end)
I want if button Minus is pressed it checks if the Parent of the script is 0 then it disables the script that changes the Volume of something else The same with the Plus It says
Players.("MY NAME").PlayerGui.SettingsGui.LeftSide.Music.Frame.VolumeDisplay.Displa:2: 'then' expected near '='
valuezer value is 0 and valueten is 10

2 comments
In the if statements use double == instead of one =
Srry that I spelled u name wrong in my answer lololol