I set up this function for when you hover over a text button. The text button also has a sound in it.
function onHover(mouse)
script.Parent.Sound1.Playing = true
script.Parent.TextSize = 36
end
script.Parent.MouseEnter:Connect(onHover)
When I play in studio, this works. When I actually play, no sound comes. How can I fix this?

3 comments
what do i do if the file doesnt load???
@tber8 have you tried the "fixed" version I showed you btw? Well if it isn't loading, that could be a few causes, and I really can't help you there unless you are able to give more detail to the problem. Try clicking on a sound, and pressing the test button.
sorry i fixed it. it wasn't in a local script