part1.Parent.Aligns:FindFirstChild("Head_"..part1.Name).Enabled = false
part1’s name is Left_Arm
and this is what it is supposed to disable
Head_Left_Arm
part1.Parent.Aligns:FindFirstChild("Head_"..part1.Name).Enabled = false
part1’s name is Left_Arm
and this is what it is supposed to disable
Head_Left_Arm
string(“Head_”…part1.Name)
try that, ik it might seem excessive, not sure if it works but try
What is the actual result? Do you get an attempt to index nil with 'Enabled' error? Does it disable the wrong Instance? Try to see what it’s searching for:
print(string.format("Head_%s", part1.Name))
Yeah it errors “attempt to index nil with enabled”, and this is what your script printed
Head_Left_Arm
Does the item exist at runtime or does it load in first
umm, what does that mean?
aweaeawe
Does the Instance always exist when the script runs (it’s in by default), or does it get added in by something while the game is running
no, its there in the workspace without scripts adding it
It even thinks that other instances don’t exist, like a simple no collide constraint.
part1.Parent.NoCollides:FindFirstChild(“Head_Left_Arm”).Enabled = false
the names are exactly the same
i renamed a few things and it works now