So this is a script for making another part invisible if I step on a brick.
yop = script.Parent.Touched:connect(function()
yop:disconnect()
for i = 0, 1 , 0.01 do
game.Workspace.Seed.Transparency = i
wait()
end
end)
But when I press play, it disappears without even stepping on it. Why is this? What can I do to fix it?
My new final product in response to LordDragonZord 's comment which is still not working:
script.Parent.Touch:connect(function(hit) if hit.Parent:findFirstChild("Humanoid")then game.Workspace.Seed.Transparency = 1 end end)

7 comments
Great job on figuring out his issue was with the Baseplate.
I've been on this site for 2 years, I've seen a LOT of silly mistakes.
Thank you so much!
The final product you mentioned didn't work. I tried coming up with a new one, and it still didn't work:
You have to pre-declare your "yop" variable. Otherwise it doesn't exist at the time your function was declared, meaning you cannot use it from within your function to break the connection. Also, the script wouldn't error if there was more than one "Seed" object in the Workspace; it would simply select the first one that was created.
What is pre-declaring?
Well I mean they must of updated roblox then because it would of errored back then.