So I'm making a tool that when equipped it makes the left leg of a player transparent.
Here's the original script:
script.Parent.Equipped:Connect(function()
wait(0.5)
script.Parent.Parent.LeftLeg.Transparency = 1
end)
There was an error so I went into my game explorer and found out that my character didn't have a "leftLeg" it had a "Left Leg"
So I changed the script to this:
script.Parent.Equipped:Connect(function()
wait(0.5)
script.Parent.Parent{"Left Leg"}.Transparency = 1
-- The error is here ^ I think?
end)
But the leg still isn't becoming transparent, can someone please help me?

1 comment
Use square brackets instead of curly ones.