I am trying to make a dev console for my game, which will include several different commands/controls. One of the things that I am trying to do is to turn into a custom character. I have noticed that when I go ahead and put the starter character in the starter pack, you load as the custom character, the custom character has your player name, and you can use userinputservice. However, when I load the character manually via script, the starter character is simply called “T_Rex” instead of my name, and while I am the rex, I cannot access userinputservice. This is my script:
game.ReplicatedStorage.Remotes.changerex.OnServerEvent:Connect(function(player)
local x = player.Character
local model = game.ReplicatedStorage.StarterCharacter
local model2 = model:Clone()
player.Character = model2
model2.Parent = game.Workspace
end)