I keep getting this code <eof>
Door=script.Parent running=true function OpenClose () if running then repeat Door.Position=Vector3.new(Door.Position.X+0.1) until Door.Position==Vector3.new(Door.Position.X+Door.Size.X) end running = false elseif running == false then running = true repeat Door.Position=Vector3.new(Door.Position.X-0.1) until Door.Position==Vector3.new(Door.Position.X-Door.Size.X) end end end end script.Parent.ClickDetector:connect(OpenClose)
For the Vector3.new parts, you put just the X part, you need 3 Numbers, not just one.