help me i can’t find the error
error:
66 : attempt to index upvalue ‘circle’ (a nil value)
--schermata iniaziale local play --schermata di gioco local circle local circle1 local levelnum local lvelText local winText --altro local W = display.contentWidth / 2 local H = display.contentHeight / 2 function main() menuPrincipale() end function menuPrincipale() schermataMenuGroup = display.newGroup() Play = display.newText("PLAY!",0,0, "Arial" ,30) Play:setReferencePoint(display.CenterReferencePoint) Play.x = W; Play.y = H Play.name = "playbutton" schermataMenuGroup:insert(Play) Play:addEventListener("tap", loadGame) end function loadGame(event) if event.target.name == "playbutton" then -- Transizione e rimozione del Listener transition.to(schermataMenuGroup,{time = 0, alpha=0, onComplete = addGameScreen}) Play:removeEventListener("tap", loadGame) end end local function dragMe(event) local t=event.target if event.phase=="moved" then t.x=event.x t.y=event.y if t.x == circle1.x and t.y == circle1.y then --if both circles x's and y's are the same then... print("Circles On Each Other") --create text winText = display.newText("You Win!", 0, 0, "Arial", 20) winText.x = W winText.y = H addGameScreen1() end end end function addGameScreen() circle1 = display.newCircle(W, H+130, 50) circle1:setFillColor(0, 0, 0, 0) circle1.strokeWidth =3 circle:addEventListener( "touch", dragMe) end function addGameScreen1() circle2 = display.newCircle(W, H+130, 50) end main()