The script gives the error a bad argument # 3 (string expected, got nil), although everything went well. what is the problem?
1 | while true do |
2 | local numberr = script.Parent.InfoFrame.Nowicon |
3 | script.Parent.InfoFrame.TopicFrame.InfoText.Text = genresname [ numberr.Value ] |
4 | script.Parent.InfoFrame.Desc.Text = genresdesc [ numberr.Value ] |
5 | wait() |
6 | end |
1 | while true do |
2 | local numberr = script.Parent.InfoFrame.Nowicon |
3 | script.Parent.InfoFrame.TopicFrame.InfoText.Text = tostring (genresname [ numberr.Value ] ) |
4 | script.Parent.InfoFrame.Desc.Text = tostring (genresdesc [ numberr.Value ] ) |
5 | wait() |
6 | end |
Sometimes string and numbers don't work out together. If you want a number to go into text you use tostring() if you want text to go into a number use tonumber()