Here is my script:
local debounce = false
script.Parent.MouseButton1Click:connect(function()
if not debounce then
debounce = true
game.Workspace.GameMessage.Text="True Or False?, Carrots are fruits."
wait(3)
game.Workspace.GameMessage.Text=""
script.Parent.Parent.Parent.Parent.Sound:Play()
wait(10)
divider()
debounce = false
end
end)
function divider()
local div = game.Workspace.Divider.Door
local fal = game.Workspace.Flse.Door
div.Transparency= 0.75
div.CanCollide= true
wait(1)
fal.Transparency= 0.5
fal.CanCollide= false
wait(5)
fal.Transparency= 0
fal.CanCollide= true
wait(1)
div.Transparency= 1
div.CanCollide= false
end
i want when the song is over i want the function divider() will be start. i have no idea how to do it.
please help me thanks for all the helpers

5 comments
Please stop reposting your question. It wasn't answered because you're not being clear about what you want.
i told you already, i want when the song is over the function divider will be active. why it's so hard to understand?
Where is 'divider()' connected to (I ask because I don't see it in the 'MouseButton1Click' event, or anywhere)?
what do you mean by connected to?
if i understand your question right, it's what happen after the you click on the button