Script wont work if GC is added

Manuel Henry II Villacruz 2 weeks ago in Game Creator 0

Hi, I have a scene wherein you can add items on the ground using left click, it works perfectly fine if GC is not added to the scene eg. action, trigger etc..

this is the part of the code where the function doesn't work

if(Input.GetMouseButtonDown(0) && !EventSystem.current.IsPointerOverGameObject() && mobileButtons != null){ StartCoroutine(place()); }

below is the attached function for place()

Screenshot 2020-10-17 at 11.22.43 AM.png

Unity version:
Game Creator version: