Answered by
8 years ago Edited 8 years ago
I'm 80 percent sure that this is your problem
1 | RightUpperLeg = hit.Parent.LeftUpperLeg |
3 | RightLowerLeg = hit.Parent.LeftLowerLeg |
5 | RightFoot = hit.Parent.RightFoot |
Here is the problem
RightUpperLeg should equal hit.Parent.RightUpperLeg instead of LeftUpperLeg
and
RightLowerLeg shoud equal hit.Parent.RightLowerLeg instead of LeftLowerLeg
Your Right Upper and Right Lower are equal to Left Upper and Left Lower.
The transparency for your LeftUpper and LeftLower are the only changing results because there is nothing here that changes the transparency for your RightLowerLeg and RightUpperLeg
RightUpperLeg should be equal to RightUpperLeg
and
RightLowerLeg should be equal to RightLowerLeg
Your script should look like this
script.Parent.Touched:connect(function(hit)
01 | if hit.Parent.Humanoid then |
05 | LeftUpperLeg = hit.Parent.LeftUpperLeg |
07 | LeftLowerLeg = hit.Parent.LeftLowerLeg |
09 | LeftFoot = hit.Parent.LeftFoot |
13 | RightUpperLeg = hit.Parent.RightUpperLeg |
15 | RightLowerLeg = hit.Parent.RightLowerLeg |
17 | RightFoot = hit.Parent.RightFoot |
21 | LeftUpperLeg.Transparency = 1 |
23 | LeftLowerLeg.Transparency = 1 |
25 | LeftFoot.Transparency = 1 |
29 | RightUpperLeg.Transparency = 1 |
31 | RightLowerLeg.Transparency = 1 |
33 | RightFoot.Transparency = 1 |
end
end)