Basically, I've been working on a flight simulator and I would like my script to have my smoke visible when touched a certain brick, say...named...Runway1?????
This is the script I'm currently using
smk = script.Parent.Smoke function onTouched() smk.Enabled = true wait(3) smk.Enabled = false wait(0.1) end script.Parent.Touched:connect(onTouched)
You'll want to add in an if statement to check the hit part's name.
smk = script.Parent.Smoke function onTouched(hit) if hit.Name == "Runway1" then smk.Enabled = true wait(3) smk.Enabled = false wait(0.1) end end script.Parent.Touched:connect(onTouched)
Is the script located in the part that you want to have smoke on contact? If not, you should try it. It might help.