HumanoidDisplayDistanceType error

  1. What do you want to achieve? Keep it simple and clear!
    I want to fix this line of code.
  2. What is the issue? Include screenshots / videos if possible!

    Whenever I want to change the HumanoidDisplayDistanceType this will show.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yes, I could not find the solution anywhere, but it is odd as it worked few days ago.

Code:

for _,v in pairs(person.Character:GetChildren()) do
				if v:IsA("Script") or v:IsA("LocalScript") or v:IsA("ModuleScript") then
					continue
				elseif v:IsA("Humanoid") then
					pcall(function()
						v.HumanoidDisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
					end)
---   Below this I am not manipulating with HumanoidDisplayDistanceType.

Shouldn’t it be v.DisplayDistanceType

Oh, yeah, thank you. Sorry for wasting your time on this very easy fix. But huge thanks. :heart:

1 Like