hey chat why does it say that the connection doesn't exist
spawn(function()
RunService.RenderStepped:Connect(function()
if hiding == true then
for i = 1,#plrs do
for _, v in plrs[i]:GetChildren() do
if v:IsA("BasePart") then
v.Transparency = 1
elseif v:IsA("Decal") then
v.Transparency = 1
elseif v:IsA("Accessory") then
v.Handle.Transparency = 1
end
end
Connection = plrs[i]:FindFirstChild("Humanoid").Died:Connect(function()
for _, v in plrs[i]:GetChildren() do
if v:IsA("BasePart") then
v.Transparency = 1
elseif v:IsA("Decal") then
v.Transparency = 1
elseif v:IsA("Accessory") then
v.Handle.Transparency = 1
end
end
end)
end
else
for i = 1,#plrs do
for _, v in plrs[i]:GetChildren() do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
v.Transparency = 0
elseif v:IsA("Decal") then
v.Transparency = 0
elseif v:IsA("Accessory") then
v.Handle.Transparency = 0
end
end
end
Connection:Disconnect()
end
end)
end)