Help with Clone method?
01 | local Officer = game.ReplicatedStorage.Characters.Officer |
13 | local SelcHunters = nil |
17 | for i, v in pairs (Cops) do |
19 | if game.Players.NumPlayers > = 2 and game.Players.NumPlayers < = 12 then |
21 | SelcCop = game.Players:GetChildren() [ math.random( 1 , game.Players.NumPlayers) ] |
23 | print ( "Chosen Cops are " ..SelcCop.Name.. "." ) |
25 | for _,l in pairs (SelcCop.Character:GetChildren()) do |
27 | if l:IsA( "CharacterAppearance" ) or l:IsA( "Hat" ) then |
31 | print ( "Stuff destroyed" ) |
39 | for _,Aper in pairs (Officer:GetChildren()) do |
41 | if Aper:IsA( "CharacterMesh" ) or Aper:IsA( "Hat" ) then |
45 | cloneoff = Officer:Clone() |
48 | if SelcCop ~ = nil then |
50 | cloneoff.Parent = SelcCop.Character |
It clones the officer's children, but it doesn't clone it to the player.