Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Please help me? more info in

Asked by 10 years ago

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

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

Answer this question