Trying to get it to play when audio in for local player
print("1") local textbox = script.Parent local music = script.Parent.Music while true do music.SoundId = "rbxassetid://" ..textbox.Text --What ever audio id in plays script.Parent.Music:Play() end
The code you currently have plays the music constantly every fraction of a second. Which means the music will play from the beginning every fraction of a second.
Do this instead.
print("1") local textbox = script.Parent local music = script.Parent.Music music.SoundId = "rbxassetid://" ..textbox.Text script.Parent.Music:Play()