Messing with making all my player parts invisible, so I can weld onto creating a basic morph. For some reason only the Head can be made transparent tho and I can’t figure out why
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if char:findFirstChild("Humanoid") ~= nil then
char.Head.Transparency = 1
char.UpperTorso.Transparency = 1
end
end)
end)
When I join the game, my head is transparent, but I do the exact same thing with UpperTorso and nothing changes, this also wont work with any other part of the R15 rig
You could just loop through all of the Character’s children then instead
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if char:FindFirstChild("Humanoid") ~= nil then
print("Making the character invisible")
for _, BodyPart in pairs(char:GetChildren()) do
if BodyPart:IsA("BasePart") then
BodyPart.Transparency = 1
end
end
end
end)
end)
--try this :)
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
for i, v in pairs(Char:GrtChildren()) do
if v:IsA("basePart") then v.Transparency = 1 end
end
end)
end)
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
print("Making the character invisible")
for _, BodyPart in pairs(char:GetChildren()) do
print(BodyPart)
if BodyPart:IsA("BasePart") or BodyPart:IsA("MeshPart") then
BodyPart.Transparency = 1
end
end
end)
end)