wait(10) local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())] randomPlayer.Player.CanLoadCharacterAppearance = false randomPlayer.Player:LoadCharacter() randomPlayer.character.LowerTorso.CFrame = CFrame.new(workspace.KillerSpawn.Position) randomPlayer.character.Head.face.Texture = 'http://www.roblox.com/asset/?id=2383072347' randomPlayer.character.Head.BrickColor = BrickColor.new("Really black") randomPlayer.character.LeftFoot.BrickColor = BrickColor.new("Really black") randomPlayer.character.LeftHand.BrickColor = BrickColor.new("Really black") randomPlayer.character.LeftLowerArm.BrickColor = BrickColor.new("Really black") randomPlayer.character.LeftLowerLeg.BrickColor = BrickColor.new("Really black") randomPlayer.character.LeftUpperArm.BrickColor = BrickColor.new("Really black") randomPlayer.character.LeftUpperLeg.BrickColor = BrickColor.new("Really black") randomPlayer.character.LowerTorso.BrickColor = BrickColor.new("Really black") randomPlayer.character.RightFoot.BrickColor = BrickColor.new("Really black") randomPlayer.character.RightHand.BrickColor = BrickColor.new("Really black") randomPlayer.character.RightLowerArm.BrickColor = BrickColor.new("Really black") randomPlayer.character.RightLowerLeg.BrickColor = BrickColor.new("Really black") randomPlayer.character.RightUpperArm.BrickColor = BrickColor.new("Really black") randomPlayer.character.RightUpperLeg.BrickColor = BrickColor.new("Really black") randomPlayer.character.UpperTorso.BrickColor = BrickColor.new("Really black") randomPlayer.character.Humanoid:RemoveAccessories() randomPlayer.character.Humanoid:EquipTool(randomPlayer.Backpack.Katana) randomPlayer.character.Shirt:Destroy() randomPlayer.character.Pants:Destroy()
That's my script, how can I make it so that only a single person (randomPlayer being the single person in this case) have CanLoadCharacterAppearance false, while it is true for everyone else?
What is currently happening is that it stops on line 6 and just keeps everyone in the server as grey rigs. Another question is how to properly work the LoadCharacter() part because that doesn't seem to work either.
Sorry for being so messy but I don't know how to explain this otherwise
First of all, .Player isn't a thing and you already have the player object. Also, you should capitalize the C in Character. Lastly, you should do math.randomseed(tick()) to randomize the players.
Here is the code that worked for me.
wait(10) math.randomseed(tick()) local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())] randomPlayer.CanLoadCharacterAppearance = false wait() randomPlayer:LoadCharacter() randomPlayer.Character.LowerTorso.CFrame = CFrame.new(workspace.KillerSpawn.Position) randomPlayer.Character.Head.face.Texture = 'http://www.roblox.com/asset/?id=2383072347' randomPlayer.Character.Head.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LeftFoot.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LeftHand.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LeftLowerArm.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LeftLowerLeg.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LeftUpperArm.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LeftUpperLeg.BrickColor = BrickColor.new("Really black") randomPlayer.Character.LowerTorso.BrickColor = BrickColor.new("Really black") randomPlayer.Character.RightFoot.BrickColor = BrickColor.new("Really black") randomPlayer.Character.RightHand.BrickColor = BrickColor.new("Really black") randomPlayer.Character.RightLowerArm.BrickColor = BrickColor.new("Really black") randomPlayer.Character.RightLowerLeg.BrickColor = BrickColor.new("Really black") randomPlayer.Character.RightUpperArm.BrickColor = BrickColor.new("Really black") randomPlayer.Character.RightUpperLeg.BrickColor = BrickColor.new("Really black") randomPlayer.Character.UpperTorso.BrickColor = BrickColor.new("Really black") randomPlayer.Character.Humanoid:RemoveAccessories() randomPlayer.Character.Humanoid:EquipTool(randomPlayer.Backpack.Katana) randomPlayer.Character.Shirt:Destroy() randomPlayer.Character.Pants:Destroy()