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

How to find only character models in workspace?

Hey im trying to find a way to only find models with humanoids in workspace (players), but i can't seem to find a function for that, or get all character models from game:GetService("Players") , i know that every player in that list has a property called Character, but i dont know how to find the Character of everyone else, to clone into only one model (lighting), can someone help me?

1 answer

✓ Accepted answer
for _,plr in pairs(game.Players:GetPlayers()) do
	plr.Character:Clone().Parent = game.Lighting.Model
end

Is a simple way of doing it. Goes through all the players, clones their characters and moves it to a model in Lighting.

1 comment

0

Thank you!

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