connect is not a valid member of ClickDetector?
So, I'm working on this CFrame script, where a part starts at one position and goes through an another brick, which is in a new position. Here's the script:
01 | local cf = game.Workspace.cfrme |
06 | local human = hit.Parent:FindFirstChild(hit) |
13 | cf.CFrame = CFrame.new(Vector 3. new(- 5.8 , 6.7 , 68 )) |
14 | cf.CFrame = CFrame.new(Vector 3. new(- 5.8 ,i, 68 )) |
23 | cf.ClickDetector.MouseClick:Connect(move) |
When I click the brick, nothing happens, and output says "Connect is not a valid member of ClickDetector". What have I done wrong here? All help is appreciated!