So I made a folder full with 3 characters I made and I want it to make so I spawn with one of them and it doesn't work.
please help! thanks.
So I made a folder full with 3 characters I made and I want it to make so I spawn with one of them and it doesn't work.
please help! thanks.
Please insert the model inside StarterPlayer and not in StarterCharacterScripts nor StarterPlayerScripts. I believe you can only insert 1 model. Also note that insert the model and not the folder. Reply back if this doesn't work.
ServerScriptStorage - Script
local CharacterModel = game.Workspace.FolderName
local function chooseCharacter()
local chosen = math.random(1, #CharacterModel:GetChildren())
return chosen
end
local chosenCharacter = chooseCharacter()
local cloneCharacter = CharacterModel[chosenCharacter]:Clone()
cloneCharacter.Parent = game.StarterPlayer
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
yes, I know but I thing is I want to make a script that picks a random character from the folder and inserts it to the starter player thanks for the reply.
I edited and made a script for it, you can copy.
alr i will try using the script
It doesn't spawn me as any character i spawned as my deafault roblox character maybe i did something wrong but i don't think so, would you mind maybe making an uncopylocked game for it or do something to help me. Thanks