I would like to know if it is possible to change a brick's size when a player is near it. I am trying to make a sci-fi-esque door and would like to know how to execute it.
local size = script.parent.Size local position = script.Parent.Position local workSpace = game:GetService("Workspace") local players = game:GetService("Players") local function open () while size > 0.1 do size = size - 0.1 print("opening!") wait(0.1) if size == 0.1 then break end end end