just a simple script that wont seem to work
local Players = game:GetService("Players") local function onCharacterAdded(character) local player = Players:GetPlayerFromCharacter(character) print(player.DisplayName) end
we all know this is supposed to print your name in the console but instead it does nothing no errors no prints so im kinda at a stand still here
its a function you have to call it after and if your trying to call it whyen character is added you have to do this
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) onCharacterAdded(char) end) end)