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()