hey everyone I am making a new music game and I am having a hard time trying to make a script that looks at a string value called dancing in a while true loop and then checks another string value called Song chosen and then based of the song chosen string calls a function for the chosen song
the part were it checks for the dancing string already works I am just trying to make the part were based of the song chosen string calls a function for the chosen song.
based of what you just gave me I got a new idea because an error occurred and gave me this Workspace.Epic.Script:21: attempt to call a string value, and the new Idea I got was to just put the if statements inside the while loop and then plays a function like that but for now I am using printing to see if it works until I actually make the working function but nothing happens it only keeps printing “daning s set to dancing” and that is suppose to happen but it is not printing any thing else
hey sorry for the late response, I just found the problem! after you said to print(songchosen.Value) I just thought of what if it was a capitalized letter that messed the script up so I checked the names of the songs and I messed up when I made the capital S in song1, song2, song3 and song4, thanks for helping me fix the problem