fixed errors
This commit is contained in:
parent
e285867bb4
commit
4893b92a58
|
|
@ -548,11 +548,11 @@ function InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,Torso
|
||||||
end
|
end
|
||||||
local typeValue = Instance.new("NumberValue")
|
local typeValue = Instance.new("NumberValue")
|
||||||
typeValue.Name = "CustomizationType"
|
typeValue.Name = "CustomizationType"
|
||||||
typeValue.Parent = BodyColor
|
typeValue.Parent = BodyMesh
|
||||||
typeValue.Value = 8
|
typeValue.Value = 8
|
||||||
local indexValue = Instance.new("NumberValue")
|
local indexValue = Instance.new("NumberValue")
|
||||||
indexValue.Name = "MeshIndex"
|
indexValue.Name = "MeshIndex"
|
||||||
indexValue.Parent = BodyColor
|
indexValue.Parent = BodyMesh
|
||||||
indexValue.Value = i
|
indexValue.Value = i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -620,17 +620,11 @@ function CSServer(Port,PlayerLimit)
|
||||||
Player:LoadCharacter()
|
Player:LoadCharacter()
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
||||||
end
|
end
|
||||||
while true do wait()
|
if (Player.Character ~= nil) then
|
||||||
if (Player.Character ~= nil) then
|
local Character=Player.Character
|
||||||
if (Player.Character.Humanoid.Health == 0) then
|
local Humanoid=Character:FindFirstChild("Humanoid")
|
||||||
wait(5)
|
if (Humanoid~=nil) then
|
||||||
Player:LoadCharacter()
|
Humanoid.Died:connect(function() delay(5,function() Player:LoadCharacter() LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character) end) end)
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
|
||||||
elseif (Player.Character.Parent == nil) then
|
|
||||||
wait(5)
|
|
||||||
Player:LoadCharacter() -- to make sure nobody is deleted.
|
|
||||||
LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
@ -878,11 +872,11 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,TorsoID,RArmID,LArmID,RLegID,LLegID)
|
InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,TorsoID,RArmID,LArmID,RLegID,LLegID)
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character)
|
||||||
game:GetService("Visit")
|
game:GetService("Visit")
|
||||||
while true do wait()
|
if (plr.Character ~= nil) then
|
||||||
if (plr.Character.Humanoid.Health == 0) then
|
local Character=plr.Character
|
||||||
wait(5)
|
local Humanoid=Character:FindFirstChild("Humanoid")
|
||||||
plr:LoadCharacter()
|
if (Humanoid~=nil) then
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character)
|
Humanoid.Died:connect(function() delay(5,function() plr:LoadCharacter() LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character) end) end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue