that generates two sounds instead of one could someone please explain why or explain an way to get rid of one ps this does same thing whether i put local Sound = Instance.new("Sound")
print("SystemA Started")
Id = script.Parent.EveryThing.System.Id.NumberValue
Pitch = script.Parent.EveryThing.System.Pitch.NumberValue
Volume = script.Parent.EveryThing.System.Volume.NumberValue
Sound = Instance.new("Sound")
Sound.Name = ("SoundBa")
Sound.Parent = script.Parent
Sound.Looped = false
Sound.SoundId = "http://www.roblox.com/asset/?id="..Id.Value..""
sound.Pitch = 1
sound.Volume = 1
while true do
wait()
Sound.SoundId = "http://www.roblox.com/asset/?id="..Id.Value..""
Sound.Pitch = Pitch.Value
Sound.Volume = Volume.Value
if script.Play.Value == true then
script.Play.Value = false
Sound:Stop()
wait(1)
Sound:Play()
end
end
