Player Speed Will Not save

I have a speed changer in my game, but my friends keep telling me I need to make it where if you die it saves your speed so you’re the same speed as you were before. here is what I did but it never worked.


image

just use:
game.Players.LocalPlayer.CharacterAdded:Connect(function()

– Code In Here
end)

That didn’t work when I tried it.