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()
✓ ANSWER ACCEPTED
Why my script is not working?
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.

4 comments
Are you sure it's named False instead of something else?
yes im sure
What exactly is it doing that it shouldn't?
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