Today I've been working on a pending list in my game, I couldn't figure out where my script was break so I decided to type print "test" in a few places until I realized that the script isn't doing anything?
print "test3" while wait() do print "test2" if game.Workspace.MusicGenerator:FindFirstChild(""..game.Workspace.MusicScript.FolderNumber.Value.."") then print "test" local CurrentId = game.Workspace.MusicGenerator[""..game.Workspace.MusicScript.FolderNumber.Value..""].SongId.Value script.Parent.Text.Value = "Current Song ID Being Played: "..CurrentId.."" end end
I ran this script and checked the output and none of the prints worked? I Also Checked The Script's Properties And It Is Not Disabled. The Script Is Located In a textlabel, located in a Frame, located in a screen gui, located in StarterGui.
Someone Please Help!
Your syntaxing is very deprecated, it should be print("test3"), also the issue could be the script being disabled, that's a property, just uncheck it if so
Further onto what simplealgorithm said, You can now print in your format.
A suggested script would be:
print("test3") while wait() do print("test2") if game.Workspace.MusicGenerator:FindFirstChild(game.Workspace.MusicScript.FolderNumber.Value) then print("test") local CurrentId = game.Workspace.MusicGenerator[""..game.Workspace.MusicScript.FolderNumber.Value..""].SongId.Value script.Parent.Text.Value = "Current Song ID Being Played: "..CurrentId.."" end end