I have this script, which is a LEVEL up gui, that pops up when your leaderstats.lvl changes.
Anyways, i want it to make a level up sound. But where the sound is preloaded from a storage.
gui.Parent = player.Character.Head
for i=0.01, 6 do wait(0.025)
gui.ExtentsOffset = Vector3.new(0,3+i,0)
end

2 comments
Could you explain a bit more about what you're trying to do? Does the GUI part have anything to do with the sound loading?
See it as a level up sound. The gui is just a level up gui that pops up above a players head. This is just a snippet of the long script. But i want a sound id to be played as soon as he/she/it levels up. But last time i did this, i had to wait, because the sound wasn't preloaded.