Hi guys!
function playgamesong()
local gamesong = game.Workspace.GameMusic:GetChildren()
randomgamesong = gamesong[math.random(1,#gamesong)]
randomgamesong:Play()
end
This function usually works, but when I run it, it randomly says: Play( )is not a valid member of playgamesong()
Any ideas? Thanks

2 comments
Try printing the ClassName of randomgamesong and see what it says if the error shows up.
Okay, this script is inside the model where you're playing it. and it will try to play the script which it can't.