when i walk onto a part material get the error (string expected, got boolean) and the mv.Value wont change thus breaking the rest of the script can i not change the stringvalue Value by touching a part material
script.Parent:WaitForChild("LeftFoot", "RightFoot").Touched:Connect(function(tuch)
local mv = script.Material
mv.Value = tuch.Material == Enum.Material --error occurs here

9 comments
when i add Material.Air to the end i still get the same error
Air isn't a material.
It has to be a material that you can use on parts. If you want to use material for terrain it will have to include Region3, which is quite hard.
true its just a void space but even if i change the material the Value of the string value wont change
Oh I see. Let me edit my answer.
I was confused at first sorry lol.
its okay i didnt explain the problem well but when i changed code i just got another error (string expected, got EnumItem)
Maybe change tuch.Material to tuch.Material.Name ?
yes it cleared up the error and everything is working now ty you so much been at that for 2 hours