local success , result = xpcall( self:RenewGui(),
function(err)
warn(tostring(err) .. "\n" .. debug.traceback())
return false, err
end)
From this i was expecting to get the error from the line in which the function for self:RenewGui() is, but traceback starts at the line in which xpcall happens for some reason, not in the line in which the actual error occurs.