Starter Character Help

I’m currently working on having a set of basic starter characters for 4 teams in my games and I’ve tried and tested and altered various ones I’ve seen online and haven’t been able to have one which is actually works.

I originally had the problem of my camera being fixed in the air and the animations not working, however now my camera works with some genius find on the forums, but the animations simply won’t work!

In the future, I would like to make it so in the menu you can select the team, but for now I just want the starter character to be assigned to the player (depending on their randomly assigned team)

Above you can see my team’s starter character mid run.
I’ve done parenting the original characters animation and health scripts but it still won’t do anything, I’ve copy pasted my character ones into StarterCharacterScripts and into the actual starter character model, can anyone help me, its been bothering me for a while.

My Server Script in ServerScriptStorage ^ (i tried fusing various other peoples scripts and some code of mine to try and make it work)

image

And worker explorer ^

The model is correct (I believe), as in nothing is anchored (aka the HumanoidRootPart).
There is another script involved which just sets the camera to the character to fix it from floating in mid air.

Any help and advice is welcome and appreciated it !!

try this function

local function RespawnPlayer(plr, model, SpawningPoint)
	local oldModel : Model = plr.Character
	local newModel = model:Clone()
	newModel.Name = plr.Name
	
	plr.Character = newModel
	
	newModel.Parent = game.Workspace 
	newModel:SetPrimaryPartCFrame(SpawningPoint.CFrame) -- replace Spawn with the respawing part location
	for _, object in ipairs(game.StarterPlayer.StarterCharacterScripts:GetChildren()) do -- this just copies all the scripts from startercharacterscripts, you can do this with player scripts too.
		local newObject = object:Clone()
		newObject.Parent = newModel
	end
	oldModel:Destroy()
end
1 Like

Sadly it doesn’t work still, tried calling the function after OnCharacterAdded, and then tried to just copy the code beneath it and it also wouldn’t work. Sometimes the camera would fully break again, also would create a lot of errors, but appreciate the help!

1 Like

Are the Motor6D instances named correctly and in their place?

Maybe you could use ApplyHumanoidDescription() keep the normal player’s character but depending on what the player chooses Apply the Humanoid Description of the selected Character?

I’m guessing so, I’ve tried other starter character models and had the same problems, so it must be a problem with the script I reckon…
I’m guessing the model doesn’t have to be also named “StarterCharacter”

is the animate script r6 ?
,

I don’t think scripts run if they are being parented i believe they only run at runtime or when called you could make a custom animate module and put it inside your startercharacters if you really don’t want to use HumanoidDescription.

I’ve just tested it, I forgot to put an animate script into the startercharacter with the other script posted here, and it works but only client side.

What do you mean by client side?

It would play on my side, however on other people’s computers (client-side) and server it wouldn’t play.

try making the script serverside

Then it sadly doesn’t play the animations at all.

image
are these things inside it?

Don’t you with HumanoidDescription have to be a whole dictionary including hats, accessories, skin colours to do it? Or can you simply just request any humanoid rig’s humanoid description?

Yes, I just copied the local script’s children and copy pasted the code over.

try putting it in startercharacter as localscript maybe

you forgot the Animator
image
copy this into the new character or create a new one

2 Likes

So strange, I thought humanoids already had animators? Thanks for the solution!

yeah same. Roblox is supposed to create it with the humanoid but for some reason it decided not to