Script is being in an Gui were the sound is too in the dataEE file so thats working, but the music doens't come what wrong? My id list?
(Maybe you need to know its for an mute buttom (Mute works perfect thats why i didnt at the script, so it have to me on sound file and the id have to change every 120 seconds))
Please help
Thanks :)
wait(2) sound=script.Parent.dataEE.Sound repeat wait() until script.Parent.Parent.Parent.Parent:IsA("Player") sound.SoundId = (163211519 or 144334729 or 145804439 or 185703139 or 142645995 or 147414710 or 187668852) sound:play() wait (120)
Here is a simple way to make it work. You did not include an asset finder, such as rbxasset
Here is the fix to your problem
local Sound = script.Parent:WaitForChild("dataEE"):WaitForChild("Sound") SoundIds = {163211519, 144334729, 145804439, 185703139, 142645995, 147414710, 187668852} Sound.SoundId = "rbxassetid://"..SoundIds[math.random(1, #SoundIds)] Sound:Play() wait(120)
-- Use this method
local Sound = script.Parent:WaitForChild("dataEE"):WaitForChild("Sound") SoundIds = {163211519,144334729, 145804439,185703139,142645995,147414710, 187668852} Sound.SoundId = SoundIds[math.random(1, #SoundIds)] Sound:Play() wait(120)