Here is part of my script.
local GuiRotate_1 = coroutine.wrap(function(guiName)
for i = 0.1, 20, .5 do
wait(.1)
script.Parent.Screen.guiName.Rotation = i --> guiName is not a valid member of Frame.
end
GuiRotate_1("Teresa");
Do you see what it says? guiName is not a valid member of Frame. Now why is this?
Screen is a** PARENT** of Teresa which guiName is definied for because I passed it in the parameter. My question is, why is this happening and how can it be fixed?

1 comment
It is attempting to get a child of the name 'guiName', not the gui 'Teresa'.