I have no idea why CharacterAdded is not working
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
players.CharacterAdded:Connect(function(character)
local human = character:WaitForChild("Humanoid")
player:GetPropertyChangedSignal("Team"):Connect(function()
if player.Team == game.Teams.Zombie then
local temphand = human.Parent:findFirstChild("Body Colors")
local temphead = human.Parent:FindFirstChild("Head")
temphead:FindFirstChild("Face").Texture = "http://www.roblox.com/asset/?id=134724710"
temphand.LeftArmColor = BrickColor.new("Artichoke")
temphand.RightArmColor = BrickColor.new("Artichoke")
temphand.HeadColor = BrickColor.new("Artichoke")
if human.Parent:findFirstChild("UpperTorso") then
if human.Parent:findFirstChild("UpperTorso"):FindFirstChild(script.Name)==nil then
local thisone = script
local thisoneclone = thisone:Clone()
thisoneclone.Parent = human.Parent:FindFirstChild("UpperTorso")end
elseif human.Parent:FindFirstChild("HumanoidRootPart") then
if human.Parent:FindFirstChild("HumanoidRootPart"):FindFirstChild(script.Name)==nil then
local thisone = script
local thisoneclone = thisone:Clone()
thisoneclone.Parent = human.Parent:FindFirstChild("HumanoidRootPart")end
elseif human.Parent:FindFirstChild("LowerTorso") then
if human.Parent:FindFirstChild("LowerTorso"):FindFirstChild(script.Name)==nil then
local thisone = script
local thisoneclone = thisone:Clone()
thisoneclone.Parent = human.Parent:FindFirstChild("LowerTorso")end
elseif human.Parent:FindFirstChild("Torso") then
if human.Parent:FindFirstChild("Torso"):FindFirstChild(script.Name)==nil then
local thisone = script
local thisoneclone = thisone:Clone()
thisoneclone.Parent = human.Parent:FindFirstChild("Torso")
end
end
end
end)
end)
end)