#Trouble activating event when touching ground

1 messages · Page 1 of 1 (latest)

cursive basin
#

So heres the situation..
This script waits a few seconds then teleports a rig into the air. I'm trying to make a function activate as soon as the rig touches the ground which, in this case, is spawning a shockwaveZ
how can i script this?

#

ShockwaveEvent just fires the shockwave script that spawns one

glossy rock
#

u can use rays

cursive basin
glossy rock
#

just shoot a ray from the rig downwards and see if the ray comes in contact with anything

#

google some tutorial on raycasting

cursive basin
#

alr thanks

hybrid spear
cursive basin
#

casted a way

#

ray*

#

from the humanoid root part's position

#

idk if the ray follows the position of the rig tho...

#

but basically when the rigs state changes it should check the ray distance

#

then fire the client

cobalt laurel