I am sometimes getting an error when calling this function:
The error is attempt to call method 'GetComponent' (a string value):Code:local takeDamage = character:GetComponent("TakeDamage")
How would i go about checking if GetComponent is a string or not before i call the method?
Solved Attempt to call method 'GetComponent' (a string value)
Discussion in 'Rust Development' started by Rusty, Aug 1, 2015.