Please help! My collision code isn't working, or maybe i'm doing something wrong?

whenever my character moves past the rosaries, it doesn’t get destroyed and as for the umbrellas, my character moves past them but i don’t want them to interact towards each other. (character and umbrellas) my character has to collect the rosaries. PlayCanvas 3D HTML5 Game Engine

Hi @FRANCHESCA_GUSTILO and welcome!

Make sure the rosaries are set up as a trigger (so without a rigidbody component) and also use trigger events instead of collision events in your script.

Please also note using translateLocal and applyForce at the same time is not recommended. (If your character has a dynamic rigidbody you need to use applyForce).

im fixing the gamebarscript and whenever i try to launch my game it turns black. what can i do about it? :frowning:

At a glance I don’t see anything wrong in that script.