I have a script in workspace, a model named 'Tycoon', in 'Tycoon' i have another model named 'M1 Abrams', in 'M1 Abrams' i have a model named 'Hull', in 'Hull' i have a union named 'Track', in track i have an effect which is 'Smoke', and in workspace a part named 'road'. I'm trying to get it so when 'Track' touches 'road', the smoke in track gets enabled, if it's not touching road, it gets disabled. It's probably very wrong, but here's what i have for the script:
game.Workspace.Tycoon["M1 Abrams"]["Hull"].Track.Touched:connect(function(road)
game.Workspace.Tycoon["M1 Abrams"]["Hull"].Track.Smoke.Enabled = true
else
game.Workspace.Tycoon["M1 Abrams"]["Hull"].Track.Smoke.Enabled = false
end)
Could someone tell me the correct way to do it and what's my main mistake?

4 comments
I believe you should check to see if the road is touching the track before doing smoke, seeing as something else touching it can set it off as well.
Yeah, you're right.
Fixed. (I think.)
Wow, I was way off! Looking at your code I see why mine was wrong. Thank you!