When the music plays it should set the bool to true, then wait(song.TimeLength) to change back to false, but it doesn't?
When the song is played the bool just stays false..?
--[[SONG SCRIPT]]--
local song = script.Parent.Parent.Parent.Song
local value = script.Parent.Parent.Parent.CurrentlyPlaying
local value2 = script.Parent.Parent.Playing
local id = script.Parent.ID.Value
local timev = script.Parent.Parent.Parent.BAR.Time
function clicked(player, name)
if value.Value == false then
value.Value = true
value2.Value = script.Parent.Text
song.SoundId = "rbxassetid://"..(id)
song:Play()
wait(song.TimeLength)
song:Stop()
value.Value = false
end
end
script.Parent.MouseButton1Down:connect(clicked)

5 comments
STOP STEALING STUFF I WANT TO ANSWER LUNATE >:O
You didn't answer it, and I was in Studio for most of the time. Be faster or provide better answers.
I have another script that works on TimeLength though..? and it works perfectly? @kool put in your answer too
When you find a better solution that answers your question, please do tell me.
I posted it down below.