#I have a problem about holding objects

1 messages · Page 1 of 1 (latest)

idle basin
#

I have a script about holding dropping and throwing objects but the problem is once I hold something, when I drop it and try to hold other object previous object comes in front of me

inner comet
#

You are returning early if the current object isnt null

#

Add a debug to see that the raycast never happens after an object is grabbed once

idle basin
#

oh okay I remembered a line that I deleted

#

that must be the soluyion

#

currentobject = null; under grav function I think

inner comet
#

Yep that's what u need whenever its let go