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!

5 comments
is this from the client or server and wheres the script located in
The script is from the client located in game>StarterGui>ScreenGui>Frame>TextLabel
@EXpodo1234ALT (The script is a regular script)
u cant run server scripts inside GUI objects, use Local scripts
You don't really need to add answered, as there is already a thing that says it, but someone tell me if there's a reason why