Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How Do I fix this?

Asked by
Kozero 120
10 years ago

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)

2 answers

Log in to vote
1
Answered by
Hybric 271 Moderation Voter
10 years ago

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

Ad
Log in to vote
-3
Answered by 10 years ago

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

0
Well Hybric solved it with the infomation avalible Kozero 120 — 10y

Answer this question