while true do
wait(0.05)
if script.Parent.Control.Value == 1 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 2 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 3 then
script.Parent.Parent.TSR.Display.Value = 0.12
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 4 then
script.Parent.Parent.TSR.Display.Value = 0.1
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 5 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 6 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 7 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 8 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 9 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 10 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
end
The Display Value cannot change if the Control Value is 1-10 ,l want to the Display value can change while the Control value is keep
But l change to this scripts,The script cannot work after the Control Value is 3 or 4
while true do
wait(0.05)
if script.Parent.Control.Value == 1 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 2 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 3 then
script.Parent.Parent.TSR.Display.Value = 0.12
script.Parent.Parent.Li.Light.Value = true
return end
if script.Parent.Control.Value == 4 then
script.Parent.Parent.TSR.Display.Value = 0.1
script.Parent.Parent.Li.Light.Value = true
return end
if script.Parent.Control.Value == 5 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 6 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 7 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = true
end
if script.Parent.Control.Value == 8 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 9 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
if script.Parent.Control.Value == 10 then
script.Parent.Parent.TSR.Display.Value = 0.2
script.Parent.Parent.Li.Light.Value = false
end
end
If i need Display value can change while the Control value is keep,How should l do?

3 comments
I haven't the faintest idea what you're trying to do here, I can't understand what you're asking. What, exactly, are you wanting this code to do?
I don't give a crap about grammar, but it becomes a problem if I can't understand anything you say. What are you trying to do and what is the problem?
I literally can't understand you, sir.