game.Players.PlayerAdded:connect(function(player) function NVG() for _,p in next, game.Players:GetPlayers() do Instance.new('SelectionBox',p.Character).Adornee=p.Character end end end) NVG()
Why wont it work, it should create a blue box around your player. But, sadly it wont work!
--game.Players.PlayerAdded:connect(function(player) --function NVG() --for _,p in next, game.Players:GetPlayers() do --Instance.new('SelectionBox',p[i].Character).Adornee=p[i].Character end -- You needed the index --value for the player. --end --end) --NVG()
Wait for in next? Huh?
Scratch everything above;
game.Players.PlayerAdded:connect(function(player) p = game.Players:GetPlayers() function NVG() for i=1, #p do Instance.new('SelectionBox',p[i].Character).Adornee=p[i].Character end end end) NVG()