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

Why my script is not working?

Asked by 9 years ago
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()


0
Are you sure it's named False instead of something else? fahmisack123 385 — 9y
0
yes im sure KillSide 0 — 9y
0
What exactly is it doing that it shouldn't? GoldenPhysics 474 — 9y
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 KillSide 0 — 9y

1 answer

Log in to vote
2
Answered by
u_g 90
9 years ago

"div.CanColide= true"

Spelt CanCollide.

0
Thank you, i didn't notice it KillSide 0 — 9y
Ad

Answer this question