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

Why is does this cframe door script error out?

This script errors out at line 7. Output: Workspace.Door.Script:7: Bad argument #1 to '?' (Vector3 expected, got nil)

part = script.Parent.Part
part2 = script.Parent.Part2
function move()
	for i= 0.1 ,50 do
		wait(0.1)
		b = 0.1+0.1
	part.Position = Position + Vector3.new(0,(b),0) 
	part2.Position = Position + Vector3.new(0,(b),0) 
	end
end

script.Parent.ClickDetector.MouseClick:connect(move)

1 answer

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