Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why my script is not working?

script.Parent.MouseButton1Click:connect(function()  --- this function is working
    game.Workspace.GameMessage.Text="Carrots are fruits."
    Wait(3)
    game.Workspace.GameMessage.Text=""
end)

wait(11)
function divider()
    local div = game.Workspace.Divider.Door
    local fal = game.Workspace.False.Door

    div.Transparency= 0.75   ----- working
    div.CanColide= true
    wait(1)

    fal.Transparency= 0.5     ---- from here it doesn't work
    fal.CanCollide= false
    wait(5)
    fal.Transparency= 0
    fal.CanCollide= true

    wait(1)
    div.Transparency= 1
    div.CanColide= false
end

divider()


4 comments

0

Are you sure it's named False instead of something else?

0

yes im sure

0

What exactly is it doing that it shouldn't?

0

it's doing the first function good, in the second function its doing just the -- div.Transparency= 0.75 // div.CanColide= true wait(1) and not the rest

1 answer

✓ Accepted answer

"div.CanColide= true"

Spelt CanCollide.

1 comment

0

Thank you, i didn't notice it

This discussion is preserved as it was. New answers, comments, and votes are closed.