So I'm making a thing where if you press E it will make the object fade away like this: ~~~~~~~~~~~~~~~~~
mouse.Target.Transparency = .1
wait(.01)
mouse.Target.Transparency = .2
wait(.01)
mouse.Target.Transparency = .3
wait(.01)
mouse.Target.Transparency = .4
wait(.01)
mouse.Target.Transparency = .5
wait(.01)
mouse.Target.Transparency = .6
wait(.01)
mouse.Target.Transparency = .7
wait(.01)
mouse.Target.Transparency = .8
wait(.01)
mouse.Target.Transparency = .9
wait(.01)
mouse.Target:destroy()
BUT! If you move your mouse to another object that one will start fading.
because I have this to keep it to only my rocks in the country. (dont ask)
if mouse.Target.parent.Name == "RocksOfTheCountry" then
so is there a way to save what brick your mouse was on and only do the transparency to that object?

4 comments
I messed up with the code blocks just ignore that please couldnt figure it out
You can edit and preview the question there is no reason not to mess it up o.o
You would just pass mouse.Target to a variable ie local part = mouse.Target then use part
Use the If statement that DeviantProphet proposed. I don't know how yours look and that might have been the problem.