Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to change a Player's Character?

Asked by 4 years ago

I want to change a Player's Character to a custom character that I have created, i don't want Players to change into it when they join so don't tell me to put it into StarterPlayer, My game requires a random Player selected and the Player's Character changed into that character

1 answer

Log in to vote
1
Answered by 4 years ago

Stuff like this is kinda tedious to work with, but I'll help you regardless.

local targetCharacter --Assign this to your desired player
local newCharacter --Assign this to the desired model
newCharacter = newCharacter :Clone()
newCharacter .Name = targetCharacter .Name
newCharacter .Parent = workspace
targetCharacter = newCharacter

In a localscript somewhere you need to fix their camera

local camera = workspace.CurrentCamera
camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
camera.CameraType = Enum.CameraType.Custom
1
I was able to easily work with this, thanks Lord_WitherAlt 206 — 4y
1
no problem! Utter_Incompetence 856 — 4y
Ad

Answer this question