How do I spawn different starter characters for other people?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want people to spawn as the player they pick

  1. What is the issue? Include screenshots / videos if possible!

When they try to spawn in as a character they only spawn as the first spawned character. Also I’m pretty new so I don’t really know how to script…

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried to destroy() the startercharacter right after they spawned in, but destroying them causes alot of problems. Is there any thing else that I can do to make others spawn as a certain startercharacter other than destroying them?

Server Script:

local rp = game:GetService(“ReplicatedStorage”)
local Class = rp:WaitForChild(“Class”)

local SS = game:GetService(“ServerStorage”)
local Classes = SS:WaitForChild(“Classes”)

local Rider = Classes:WaitForChild(“Rider”)
local Iska = Rider:WaitForChild(“Iskandar”)

Class.OnServerEvent:Connect(function(player,className)

local character = game.StarterPlayer

local picker = Classes:FindFirstChild(className) -- code finds class name
print (className)

local function SpawnAlex()
	print("Iskandar has been spawned")
	player.Character = nil
	Iska.Name = "StarterCharacter"
	Iska.Parent = character
	player:LoadCharacter()
	wait(0.2)
	Iska:Destroy()
end

if picker == Rider then
	SpawnAlex()
end

end)

it’s something like this I just removed the other class options to make it shorter.