Thank you for viewing this thread.
The purpose of this code it to make the Text of the script's parent (which in this case is a Text Label) change according to an IntValue that belongs to the player.
while true do
player = script.Parent.Parent.Parent.Parent.Parent.Parent
if player.Select == 1 then
script.Parent.Text = "Crops section (Cabbage Selected!!!)"
end
if player.Select == 2 then
script.Parent.Text = "Crops section (Pepper Selected!!!)"
end
if player.Select == 3 then
script.Parent.Text = "Crops section (Potatoe Selected!!!)"
end
wait(.5)
end
There is no error report in output. The text just simply dosen't change. I also tried:
while true do
player = script.Parent.Parent.Parent.Parent.Parent.Parent
if player.Select == 1 then
script.Parent.Text = "Crops section (Cabbage Selected!!!)"
else if player.Select == 2 then
script.Parent.Text = "Crops section (Pepper Selected!!!)"
else if player.Select == 3 then
script.Parent.Text = "Crops section (Potatoe Selected!!!)"
end
end
end
wait(.5)
end
...but the same thing happened. |