Here is the code, the full sound isnt playing. Any suggestions for my current code?
while true do if script.Parent.Parent.Parent.Button.Value.Value == 1 then script.Parent.Sound:Play() else script.Parent.Sound:Stop() end wait() end
I don't know what button value is but this would be way better if it stays '1'
while true do if script.Parent.Parent.Parent.Button.Value.Value == 1 then if script.Parent.Sound.IsPlaying == false then script.Parent.Sound:Play() end else script.Parent.Sound:Stop() end wait() end