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