The first function does activate, but the second only when i respawn. This code is not mine, im using it to understand.
function onPlayerEntered(player)
repeat wait() until player.Character ~= nil
print(player.Character)
local scr = script.TrySprintScript:Clone()
scr.Parent = player.Character
scr.Disabled = false
player.CharacterAdded:Connect(function(char)
print(char)
local scr = script.TrySprintScript:Clone()
scr.Parent = char
scr.Disabled = false
end)
end

2 comments
There is only one function though?
johnoscarbhv1 I believe they're talking about the anonymous function that is Connected to player.CharacterAdded