1. I am sometimes getting an error when calling this function:

    Code:
    local takeDamage = character:GetComponent("TakeDamage")
    The error is attempt to call method 'GetComponent' (a string value):

    How would i go about checking if GetComponent is a string or not before i call the method?
     
  2. Check if character is nil of course.
     
  3. I did but it still messes up sometimes. I found a workaround anyway. SOLVED.