I’m trying to make a custom forcefield instead of the normal roblox forcefield for when a player spawns. I’ve seen some games like “Town” have it so your entire avatar including your accessories change into the forcefield material.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
wait(1) -- This is for the parts to load
for _, v in pairs(character:GetDescendants()) do
if v:IsA("MeshPart") or v:IsA("Part") then
v.Material = Enum.Material.ForceField
end
if v:IsA("Shirt") or v:IsA("Pants") then
v:Destroy()
end
end
end)
end)