Your problem is that GetPlayerFromCharacter is a method of the Players service, so you must use it like this:
game.Players:GetPlayerFromCharacter()
This takes one argument (that is, the thing in the parentheses), a Character model. It then attempts to find the Player that's operating the given Character. If it's successful in doing this, it returns the Player. Otherwise it returns nil.
If your Left Leg made the event fire, that means Left Leg is hit. Therefore hit.Parent must be your Character. Knowing this we can write
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
and it will return your Player.
But the Part might have been touched by something else that's Parent isn't a Character, so we need to make sure that GetPlayerFromCharacter didn't return nil.
if player then
end