Can u use the same code from 1 function in another function. For example.

function ?()
player = game.Players:PlayerAdded()
end

function player()
player.CharacterAutoLoads = true
end