So I am making a tool so that whenever you click It, It clones a random character I made Inside of a folder called "Characters" In replicastorage, then being parented Into StarterPlayer then lastly being named as "StarterCharacter", however It appears to not change Into the NPC
(Also, I was wondering how to make the disguise tool change your name when being a spesific character, like If the disguise tool changed you Into roblox your name will be changed to "Roblox" and 2 other names)
script:
local tool = script.Parent
local Rep = game.ReplicatedStorage
local CharacterFolder = Rep.Characters
tool.Activated:Connect(function()
local RandomCharacter = math.random(1,3)
if RandomCharacter == 1 then
local AveragePlayer = CharacterFolder["Average player"]:Clone()
AveragePlayer.Parent = game.StarterPlayer
AveragePlayer.Name = "StarterCharacter"
end
if RandomCharacter == 2 then
local AveragePlayer = CharacterFolder.Girl:Clone()
AveragePlayer.Parent = game.StarterPlayer
AveragePlayer.Name = "StarterCharacter"
end
if RandomCharacter == 3 then
local AveragePlayer = CharacterFolder.Troll:Clone()
AveragePlayer.Parent = game.StarterPlayer
AveragePlayer.Name = "StarterCharacter"
end
tool:Destroy()
end)

4 comments
Also if you want the name of the character to be not the usernane and actually in disguise, edit the Character’s Display name in the Humanoiid by adding a new line and type “AveragePlayer.Humanoid.DisplayName = “Type any name here”
It appears to say "Player Is not a valid member of DataModel "game"
Nevermind It worked! I just founded out that In line 6 you typed "game.players" you accidently made the P lowercase
ye lol