In a game I'm working on, when a round begins, a model will be cloned at the position of each player. How exactly would I do that?
Something along these lines:
local model = pathToTheModel for num, player in ipairs( game.Players:GetPlayers() ) do if player.Character and player.Character:FindFirstChild( "Torso" ) then local copy = model:clone() copy.Parent = game.Workspace copy:MoveTo( player.Character.Torso.Position ) end end
If you want the model to be in front of player, replace the player.Character.Torso.Position
with this: (player.Character.Torso.CFrame * CFrame.new( 0, 0, 5 )).p
.
Also, you will have to set primary part for the model.