So As You Can Tell By The Question.I Am Making A Western Game And If A Sheriff Catches A Theif Or Whatever Then The Sheriff Arrests Them And Tells Them To Come To The Cell.So I Want To make It Simple Instead Of Someone Having To Click It To Open (May Change That) So i Put Can Collide To False And Transparency To 4,But When I Test The Game,The Door Goes Transparent But Doesn't Let Me Walk Into The Cell which Is Meant To Happen When canCollide Is false.
Here It Is:
while true do wait(2) game.Workspace["Cell Door"].Transparency = 4 wait(3) game.Workspace["Cell Door"].Transparency = 0 wait(2) canCollide = false wait(2) canCollide = true wait(2) end
In your script, canCollide just acts as a variable as you do not specify it as the property of the door. Instead, similarly to how you did it with the transparency, you should do:
workspace["Cell Door"].CanCollide = false
and the same for setting it to true again.