Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do I fix this?

I keep getting this code

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)

2 answers

✓ Accepted answer

For the Vector3.new parts, you put just the X part, you need 3 Numbers, not just one.

Do not only post code, or only post an explanation. Both are required to make a good question.

1 comment

0

Well Hybric solved it with the infomation avalible

This discussion is preserved as it was. New answers, comments, and votes are closed.