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)
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 !!
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
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!
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”
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.
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?