Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help with models please read my question?

I am making a game and I want models of everyone playing because I want to do a scene like in "Survivor" how you see the models walking to eliminations. I don't know if that is even models they are using. If you know how they did it, can you please tell me. Thank you! :)

2 answers

You can clone the players character model in-game or you can reposition their characters to where you want them.

First off, cloning them.

local Players = game.Players:GetChildren()

local CharacterModels = {}

for i=1,#Players do
	local CharacterModels[i] = Players[i].Character:Clone()
end

First get all the players, this can be done many ways, for this I'll get the children of Players.

The local CharacterModels = {} is to establish a table that we can use later.

Then we need to iterate through the players to get their character models and clone them. This is done by using a for loop that executes once for every item in the Players table, using the # operator you can count how many items are in a table. Inside the for loop we go through each player by using [i] which selects the item in the table corespondent to the number in i. We get the character of the player with .Character and clone it with :Clone()

That will create a table named CharacterModels with all of the player's models stored in it.

Second, moving them.

Moving them is too long to explain, I'll start you off with :Move().

The game actually doesn't clone characters at all.. it just makes the characters walk towards a position (most likely using Pathfinding).. a humanoid is an object that controls many aspects of a player's character.. including Walkspeed, Jump power, etc..

learn more about pathfinding here, and the humanoid here

Good luck (:

This discussion is preserved as it was. New answers, comments, and votes are closed.