Here is my script:
script.Parent.Touched:connect(function(hit) if hit.Parent.Name == "Cup_Empty" then hit.Parent.Handle.Liquid.Transparency = 0 end end)
Basically, I am trying to get it to when the tool Cup_Empty hits this object, in my case milk, it will make the liquid inside of it go from invisible to visible. Is something wrong with my script? Or is there some weird thing with tools that I don't know.
Are you 100% sure that it's the tool that touches it and not the player? What I suggest you do is that instead of doing it when only the tool touches it, makes it when a player touches it, it checks if one of the tools the player has inside his/her backpack is called "Cup_Empty" and if it's "empty" or whatever you want to do you do your stuff