so basically i want to detect everyone's character in the server and i dont know how. i would put a script but i legit dont know where to begin
To get every player's character inside of a server, I would search the workspace for the names of the children of game.Players. Here's an example snippet of code for you:
1 | for i,v in pairs (game.Players:GetChildren()) do |
2 | if workspace:FindFirstChild(v.Name) then |
3 | local Character = workspace:FindFirstChild(v.Name) |
4 | --do code here |
5 | end |
6 | end |