#How do i make stuff despawn and trigger something else?

1 messages · Page 1 of 1 (latest)

grave hazel
#

Hello, i recently started to learn about Roblox Studio and Lua. Since i'm too lazy to take the time to learn properly, i want to start with some projects.
Right now i'm trying to make a meteor and i would like to make it dissapear as soon as it touches the ground/surface and then trigger the script of an explosion (expanding sphere in this case).

How can i do that?
(I don't know if this is the right tag btw)

dense grail
#

you'll need to detect when the meteor touches a part, then create an explosion and delete the meteor

#

look at the documentation for the .Touched property. you can delete an object using (name):Destroy, and you can easily spawn an explosion by making an instance of it, again read the documentation for explosion objects to see how

thin quail
stray mortar
#

thems the price of being lazy 👍

elder frost
#

ok gl