Im having this annoying problem, And its flooding the output because its parent doesnt have a HRootPart, Is there a way i could do this without it flooding the output? This is what i put
script.Parent.Touched:Connect(function(K)
local HR = K.Parent.HumanoidRootPart
local hum = K.Parent.Humanoid
if K.Parent.HumanoidRootPart.Name == "HumanoidRootPart" then
FID.Texture = "rbxassetid://406001167"
wait(2)
FID.Texture = "rbxassetid://5275085975"
end
end)
Its flooding the output and it is Extremely Annoying.

1 comment
Use FindFirstChild(), it simply returns nil if the instance is not found.