This function demonstrates the usage of the isscriptable API.
Example:
-- Check if an object is scriptablelocalmyObject=Instance.new("Part")localis_scriptable=isscriptable(myObject)ifis_scriptablethenprint("Object is scriptable")elseprint("Object is not scriptable")end