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?
Are you using this in a local script or serverscript? it should be in a local script.
Try this: (connect should be lowercase, and I prefer to use Play())
function onHover(mouse) script.Parent.Sound1:Play(); script.Parent.TextSize = 36 end script.Parent.MouseEnter:connect(onHover)
If it doesn't work that means there is something else going on, perhaps the sound file isn't loading.
i had this problem before and basically it's because roblox is dum and removes that function or something