if game.Workspace.Game.Value == true then script.Parent.CanCollide = false script.Parent.Transparency = 1 end
I want when a BoolValue is turned to true then a door opens. I'm not sure if their needs to be something to check to see if the boolValue changes
function Changed() if game.Workspace.Game.Value == true then script.Parent.CanCollide = false script.Parent.Transparency = 1 end end game.Workspace.Game.Changed:connect(Changed)
workspace.Game.Changed:connect(function() script.Parent.CanCollide=not workspace.Game.Value script.Parent.Transparency=workspace.Game.Value and 1 or 0 end)
Sets script.Parent.CanCollide
to the opposite of workspace.Game.Value
and sets the Transparency
correspondingly.